Panel Replay requires the AS SDP transmission time to be written into PANEL_REPLAY_CONFIG3. This field was previously not programmed.
Use the AS SDP transmission-time helper to populate CONFIG3. Signed-off-by: Ankit Nautiyal <[email protected]> --- drivers/gpu/drm/i915/display/intel_psr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index ee6e26abd05e..9add6e0d6f04 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -781,7 +781,8 @@ static void _panel_replay_enable_sink(struct intel_dp *intel_dp, DP_PANEL_REPLAY_RFB_STORAGE_ERROR_EN | DP_PANEL_REPLAY_ACTIVE_FRAME_CRC_ERROR_EN; u8 panel_replay_config2 = DP_PANEL_REPLAY_CRC_VERIFICATION; - u8 buf[2]; + u8 panel_replay_config3 = DP_PR_AS_SDP_SETUP_TIME(intel_dp_as_sdp_transmission_time()); + u8 buf[3]; int ret; if (crtc_state->has_sel_update) @@ -796,6 +797,7 @@ static void _panel_replay_enable_sink(struct intel_dp *intel_dp, buf[0] = panel_replay_config; buf[1] = panel_replay_config2; + buf[2] = panel_replay_config3; ret = drm_dp_dpcd_write(&intel_dp->aux, PANEL_REPLAY_CONFIG, buf, sizeof(buf)); -- 2.45.2
