]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/cx0: Verify C10/C20 pll dividers
authorMika Kahola <mika.kahola@intel.com>
Mon, 19 Jan 2026 09:37:52 +0000 (09:37 +0000)
committerMika Kahola <mika.kahola@intel.com>
Tue, 20 Jan 2026 08:52:58 +0000 (10:52 +0200)
commit58213c1d781cb4f5a4f6cadedf296dc6fc43b3a6
tree90de6462397f2cff41d40e58b23b53341eeaddc7
parent50ad932880feaf6a526e0cfc314a4caf83310cd3
drm/i915/cx0: Verify C10/C20 pll dividers

Add verification for pll table dividers. The port clock
is computed based on pll tables and, for hdmi case, the
algorithmic model is applied to calculate pll dividers.
If port clock differs more than +-1 kHz from expected value
an drm_warn() is thrown and pll divider differences are
printed out for debugging purposes.

v2:
- Move clock derivation from dividers in intel_cx0pll_enable()
  earlier in the patchset.
- Keep intel_cx0_pll_power_save_wa() in intel_dpll_sanitize_state()
- Use tables[i].name != NULL as a terminating condition.
- Drop duplicate intel_cx0pll_clock_matches() declaration in header.
- 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-12-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_cx0_phy.h
drivers/gpu/drm/i915/display/intel_dpll_mgr.c