]> www.infradead.org Git - users/willy/xarray.git/commit
drm/i915/display: Calculate crtc clock rate based on PLL parameters
authorMika Kahola <mika.kahola@intel.com>
Thu, 2 May 2024 13:17:16 +0000 (16:17 +0300)
committerMika Kahola <mika.kahola@intel.com>
Fri, 3 May 2024 11:08:27 +0000 (14:08 +0300)
commit4b31961a1c6388ec67c05ce4033088d9bdf00f95
treef413055cc740a1c3e11e6da6cccbf3e019e8efd1
parent2081c6aec0a4f34e1414a6172b88ef3aaebb6120
drm/i915/display: Calculate crtc clock rate based on PLL parameters

With HDMI monitors we bumped up a case where the crtc clock rate
caused a mismatch on state verification. This was due to
assumption that the SW clock rate from PLL structure would match
the calculated counterpart from HW. This is not necessarily always
the case and therefore we would actually need to recalculate the
clock rate from SW PLL parameters. Then these SW and HW crtc clock
rates can be compared with each other.

The patch recalculates the crtc clock rate for SW state based on
SW PLL parameters and compares the crtc clock rate calculated
from the parameters found from the HW.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240502131716.504616-1-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c