summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_psr.c
diff options
context:
space:
mode:
authorJouni Högander <jouni.hogander@intel.com>2024-06-20 13:33:12 +0300
committerJouni Högander <jouni.hogander@intel.com>2024-06-24 07:31:56 +0300
commit582e372f068c813c852a48000f27c175fb11bb61 (patch)
tree16730c817ac30168d87dab77d93d121695d66968 /drivers/gpu/drm/i915/display/intel_psr.c
parentb1d90a862c890152bbaf847b7a78fc59af54159b (diff)
drm/i915/psr: Set DP_PSR_SU_REGION_SCANLINE_CAPTURE bit when needed
Setting DP_PSR_SU_REGION_SCANLINE_CAPTURE (Selective Update Region Scan Line Capture Indication in spec) bit was dropped when psr_enable_sink was split to _psr_enable_sink and _panel_replay_enable_sink. Add setting it back. Fixes: 32f0045f905c ("drm/i915/psr: Split enabling sink for PSR and Panel Replay") Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240620103312.903977-1-jouni.hogander@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_psr.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_psr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index a9d9383e4ee5..0dbcaf644624 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -732,6 +732,9 @@ static void _psr_enable_sink(struct intel_dp *intel_dp,
val |= DP_PSR_CRC_VERIFICATION;
}
+ if (crtc_state->req_psr2_sdp_prior_scanline)
+ val |= DP_PSR_SU_REGION_SCANLINE_CAPTURE;
+
if (crtc_state->enable_psr2_su_region_et)
val |= DP_PANEL_REPLAY_ENABLE_SU_REGION_ET;