]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/lt_phy: Add verification for lt phy pll dividers
authorMika Kahola <mika.kahola@intel.com>
Mon, 19 Jan 2026 09:37:53 +0000 (09:37 +0000)
committerMika Kahola <mika.kahola@intel.com>
Tue, 20 Jan 2026 08:52:59 +0000 (10:52 +0200)
commit10d187b3560a45e6cf829a9c52ee54c6dfb42f3a
tree090c2746fc6caf1fb5e79fa8388ebf35e1b3ec69
parent58213c1d781cb4f5a4f6cadedf296dc6fc43b3a6
drm/i915/lt_phy: Add verification for lt phy pll dividers

Add verification for lt phy pll dividers during boot. The port clock
is calculated from pll dividers and compared against the requested
port clock value. If there are a difference exceeding +-1 kHz an
drm_warn() is thrown out to indicate possible pll divider mismatch.

v2:
- Move the LT_PHY_PLL_PARAMS -> LT_PHY_PLL_DP/HDMI_PARAMS change
  earlier.
- Use tables[i].name != NULL as a terminating condition.
- Use state vs. params term consistently in intel_c10pll_verify_clock()
  and intel_c20pll_verify_clock().

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260119093757.2850233-13-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_lt_phy.c
drivers/gpu/drm/i915/display/intel_lt_phy.h