drm/i915: Fix up pixel_rate vs. clock confusion in wm calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Dec 2021 14:43:09 +0000 (16:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 26 Jan 2022 19:01:33 +0000 (21:01 +0200)
commit4be990af2f7ed8bf209cce3b86e1abac33742763
tree9b708a010d1805ebdce913e46240ccfa72bbd699
parentbc1ce503769c51c1c06f5ed126b07a545996d697
drm/i915: Fix up pixel_rate vs. clock confusion in wm calculations

Use pixel_rate rather than crtc_clock in the watermark calculations.
These are actually identical on gmch platforms for now since
we don't adjust the pixel rate based on pfit downscaling. But
pixel_rate is the thing we are actually interested here so use
the proper name for it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211209144311.3221-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c