drm/i915: Split vlv_compute_pipe_wm() into two
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jun 2022 15:54:45 +0000 (18:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Sep 2022 14:17:56 +0000 (17:17 +0300)
commited57cfd9d54a772a1b60de6dd9f4e90fdba72a4a
tree6955173979d7c2d9a64f03f71ca072df0e91bd0c
parent543ba9d6873b47982aa32c88a18177427e51ae25
drm/i915: Split vlv_compute_pipe_wm() into two

Split vlv_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.

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