Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/ltphy: Return true for TBT scenario during lt_phy_state compare

TBT PHY is enablement/disablement is handled by its own TBT module.
We do not play a big part in it's state management, that being take care
by it's own TBT modeule.
The PHY/PLL TypeC mode (TBT, DP-alt) can change after the PLL state was
computed for a modeset, so the state verification after the modeset
sequence would indicate a mismatch in case the mode changed from DP-alt
to TBT, or from TBT to DP-alt mode. To avoid such a mismatch error the
verification is skipped if the mode for either the read-out or the
computed state is TBT (where that TBT PLL state doesn't reflect anyway
the PLL's actual HW state).
Simply return true when we are in tbt mode.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260204023247.1560196-1-suraj.kandpal@intel.com

+3
+3
drivers/gpu/drm/i915/display/intel_lt_phy.c
··· 2158 2158 intel_lt_phy_pll_compare_hw_state(const struct intel_lt_phy_pll_state *a, 2159 2159 const struct intel_lt_phy_pll_state *b) 2160 2160 { 2161 + if (a->tbt_mode || b->tbt_mode) 2162 + return true; 2163 + 2161 2164 /* 2162 2165 * With LT PHY values other than VDR0_CONFIG and VDR2_CONFIG are 2163 2166 * unreliable. They cannot always be read back since internally