Skip to content

Commit 0cd2bdb

Browse files
committed
drm/i915/psr: Perform scanline indication check for Panel Replay as well
Scanline indication needs to be checked and configure for both PSR2 and Panel Replay Selective Update. Move this check to intel_sel_update_config_valid. Signed-off-by: Jouni Högander <[email protected]> Reviewed-by: Animesh Manna <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a18114e commit 0cd2bdb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,12 +1429,6 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp,
14291429
return false;
14301430
}
14311431

1432-
if (!_compute_psr2_sdp_prior_scanline_indication(intel_dp, crtc_state)) {
1433-
drm_dbg_kms(&dev_priv->drm,
1434-
"PSR2 not enabled, PSR2 SDP indication do not fit in hblank\n");
1435-
return false;
1436-
}
1437-
14381432
if (!alpm_config_valid(intel_dp, crtc_state, false))
14391433
return false;
14401434

@@ -1476,6 +1470,12 @@ static bool intel_sel_update_config_valid(struct intel_dp *intel_dp,
14761470
if (!crtc_state->has_panel_replay && !intel_psr2_config_valid(intel_dp, crtc_state))
14771471
goto unsupported;
14781472

1473+
if (!_compute_psr2_sdp_prior_scanline_indication(intel_dp, crtc_state)) {
1474+
drm_dbg_kms(&dev_priv->drm,
1475+
"Selective update not enabled, SDP indication do not fit in hblank\n");
1476+
goto unsupported;
1477+
}
1478+
14791479
if (crtc_state->has_panel_replay && (DISPLAY_VER(dev_priv) < 14 ||
14801480
!intel_dp->psr.sink_panel_replay_su_support))
14811481
goto unsupported;

0 commit comments

Comments
 (0)