diff options
| author | Ankit Nautiyal <ankit.k.nautiyal@intel.com> | 2026-05-27 07:10:44 +0300 |
|---|---|---|
| committer | Ankit Nautiyal <ankit.k.nautiyal@intel.com> | 2026-05-28 14:18:05 +0300 |
| commit | c3ea3fd4b4cf2dc321c7abbd81b7340577d0b4ee (patch) | |
| tree | 1000d1b1a8cb54f9de78c7a900e5ac8fffa04526 | |
| parent | 200bf467d4375067729744483fa3d338bb3b145d (diff) | |
| download | linux-c3ea3fd4b4cf2dc321c7abbd81b7340577d0b4ee.tar.xz | |
drm/i915/psr: Program Panel Replay CONFIG3 using AS SDP transmission time
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 <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260527041050.601735-7-ankit.k.nautiyal@intel.com
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_psr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index ebacd3e74ad8..e138982dc91f 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -794,6 +794,7 @@ static void _panel_replay_enable_sink(struct intel_dp *intel_dp, const struct intel_crtc_state *crtc_state) { u8 panel_replay_config[2]; + u8 panel_replay_config_3; panel_replay_config[0] = DP_PANEL_REPLAY_ENABLE | DP_PANEL_REPLAY_VSC_SDP_CRC_EN | @@ -801,7 +802,6 @@ 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; panel_replay_config[1] = DP_PANEL_REPLAY_CRC_VERIFICATION; - if (crtc_state->has_sel_update) panel_replay_config[0] |= DP_PANEL_REPLAY_SU_ENABLE; @@ -814,6 +814,9 @@ static void _panel_replay_enable_sink(struct intel_dp *intel_dp, drm_dp_dpcd_write(&intel_dp->aux, PANEL_REPLAY_CONFIG, panel_replay_config, sizeof(panel_replay_config)); + + panel_replay_config_3 = intel_dp_as_sdp_transmission_time(); + drm_dp_dpcd_writeb(&intel_dp->aux, PANEL_REPLAY_CONFIG3, panel_replay_config_3); } static void _psr_enable_sink(struct intel_dp *intel_dp, |
