summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSuraj Kandpal <suraj.kandpal@intel.com>2026-01-05 11:29:35 +0530
committerSuraj Kandpal <suraj.kandpal@intel.com>2026-01-05 13:50:57 +0530
commitc7830b51c77f85b95bd538b2d79a8de02cc05db1 (patch)
treea473c934638fa16f4df0e1e5950e4387c1937d0a /drivers
parent65f329ff234705b07a6e4429499fdf578cccca49 (diff)
drm/i915/ltphy: Remove state verification for LT PHY fields
Currently we do state verification for all VDR Registers. Remove LT PHY State verification for all VDR register fields other than VDR0_CONFIG and VDR2_CONFIG. The reason being that VDR0_CONFIG and VDR2_CONFIG are the only reliable shadow register which hold onto their values over the course of power gatings which happen internally due to features like PSR/PR. Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/20260105055937.136522-1-suraj.kandpal@intel.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/display/intel_lt_phy.c30
1 files changed, 7 insertions, 23 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_lt_phy.c b/drivers/gpu/drm/i915/display/intel_lt_phy.c
index 939c8975fd4c..9501ac861712 100644
--- a/drivers/gpu/drm/i915/display/intel_lt_phy.c
+++ b/drivers/gpu/drm/i915/display/intel_lt_phy.c
@@ -2259,8 +2259,6 @@ void intel_lt_phy_pll_state_verify(struct intel_atomic_state *state,
struct intel_encoder *encoder;
struct intel_lt_phy_pll_state pll_hw_state = {};
const struct intel_lt_phy_pll_state *pll_sw_state = &new_crtc_state->dpll_hw_state.ltpll;
- int clock;
- int i, j;
if (DISPLAY_VER(display) < 35)
return;
@@ -2275,33 +2273,19 @@ void intel_lt_phy_pll_state_verify(struct intel_atomic_state *state,
encoder = intel_get_crtc_new_encoder(state, new_crtc_state);
intel_lt_phy_pll_readout_hw_state(encoder, new_crtc_state, &pll_hw_state);
- clock = intel_lt_phy_calc_port_clock(encoder, new_crtc_state);
dig_port = enc_to_dig_port(encoder);
if (intel_tc_port_in_tbt_alt_mode(dig_port))
return;
- INTEL_DISPLAY_STATE_WARN(display, pll_hw_state.clock != clock,
- "[CRTC:%d:%s] mismatch in LT PHY: Register CLOCK (expected %d, found %d)",
+ INTEL_DISPLAY_STATE_WARN(display, pll_hw_state.config[0] != pll_sw_state->config[0],
+ "[CRTC:%d:%s] mismatch in LT PHY PLL CONFIG 0: (expected 0x%04x, found 0x%04x)",
crtc->base.base.id, crtc->base.name,
- pll_sw_state->clock, pll_hw_state.clock);
-
- for (i = 0; i < 3; i++) {
- INTEL_DISPLAY_STATE_WARN(display, pll_hw_state.config[i] != pll_sw_state->config[i],
- "[CRTC:%d:%s] mismatch in LT PHY PLL CONFIG%d: (expected 0x%04x, found 0x%04x)",
- crtc->base.base.id, crtc->base.name, i,
- pll_sw_state->config[i], pll_hw_state.config[i]);
- }
-
- for (i = 0; i <= 12; i++) {
- for (j = 3; j >= 0; j--)
- INTEL_DISPLAY_STATE_WARN(display,
- pll_hw_state.data[i][j] !=
- pll_sw_state->data[i][j],
- "[CRTC:%d:%s] mismatch in LT PHY PLL DATA[%d][%d]: (expected 0x%04x, found 0x%04x)",
- crtc->base.base.id, crtc->base.name, i, j,
- pll_sw_state->data[i][j], pll_hw_state.data[i][j]);
- }
+ pll_sw_state->config[0], pll_hw_state.config[0]);
+ INTEL_DISPLAY_STATE_WARN(display, pll_hw_state.config[2] != pll_sw_state->config[2],
+ "[CRTC:%d:%s] mismatch in LT PHY PLL CONFIG 2: (expected 0x%04x, found 0x%04x)",
+ crtc->base.base.id, crtc->base.name,
+ pll_sw_state->config[2], pll_hw_state.config[2]);
}
void intel_xe3plpd_pll_enable(struct intel_encoder *encoder,