[PATCH 1/2] drm/i915/psr: Configure Panel Replay on sink always when it's supported

Jouni Högander jouni.hogander at intel.com
Tue Nov 26 10:29:45 UTC 2024


Currently we are configuring Panel Replay on sink when it get's
enabled. This means we need to do full modeset when enabling Panel
Replay. This is required as DP specification is saying sink Panel Replay
needs to be configured before link training. Fix this by configuring Panel
Replay on sink always when it's supported by sink and the source.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 drivers/gpu/drm/i915/display/intel_ddi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index f3368cf52641..f1fdf8975c82 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -2877,7 +2877,7 @@ static void intel_ddi_pre_enable_dp(struct intel_atomic_state *state,
 					    crtc_state);
 
 	/* Panel replay has to be enabled in sink dpcd before link training. */
-	if (crtc_state->has_panel_replay)
+	if (CAN_PANEL_REPLAY(&enc_to_dig_port(encoder)->dp))
 		intel_psr_enable_sink(enc_to_intel_dp(encoder), crtc_state);
 
 	if (DISPLAY_VER(display) >= 14)
-- 
2.34.1



More information about the Intel-gfx-trybot mailing list