drm/i915: Simplify up g4x watermark sanitation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jun 2022 15:54:46 +0000 (18:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Sep 2022 14:18:50 +0000 (17:18 +0300)
commit6340120014e8a82263f38c724ea8f3611cc0d074
tree5fa8c32bc2e04477eef0f8b06930a4c9eb308a9e
parented57cfd9d54a772a1b60de6dd9f4e90fdba72a4a
drm/i915: Simplify up g4x watermark sanitation

We can simplify the g4x watermark sanitation by reusing the
second half of g4x_compute_pipe_wm() to convert the sanitized
raw watermarks into the proper form to be used as the
optimal/intermediate watermarks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220622155452.32587-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c