drm/i915: Split g4x_compute_pipe_wm() into two
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jun 2022 15:54:44 +0000 (18:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Sep 2022 14:17:37 +0000 (17:17 +0300)
commit543ba9d6873b47982aa32c88a18177427e51ae25
tree95816a8c0e170f351bc2dd2b923d44a8dddf040c
parentbde544e1d7017f3169b4d97b2e19c2d28066d87c
drm/i915: Split g4x_compute_pipe_wm() into two

Split g4x_compute_pipe_wm() into two halves. The first half computes
the new raw watermarks, and the second half munges those up into real
watermarks for the particular pipe.

We can reuse the second half for watermark sanitation as well.

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