Skip to content

Commit 5d9993f

Browse files
committed
drm/i915/psr: Check panel Early Transport capability for eDP PR
Our HW doesn't support panel replay without Early Transport on eDP. Bspec: 68920 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 67cf054 commit 5d9993f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,18 @@ static void _panel_replay_init_dpcd(struct intel_dp *intel_dp)
571571
{
572572
struct drm_i915_private *i915 = dp_to_i915(intel_dp);
573573

574-
if (intel_dp_is_edp(intel_dp) &&
575-
!intel_alpm_aux_less_wake_supported(intel_dp)) {
576-
drm_dbg_kms(&i915->drm,
577-
"Panel doesn't support AUX-less ALPM, eDP Panel Replay not possible\n");
578-
return;
574+
if (intel_dp_is_edp(intel_dp)) {
575+
if (!intel_alpm_aux_less_wake_supported(intel_dp)) {
576+
drm_dbg_kms(&i915->drm,
577+
"Panel doesn't support AUX-less ALPM, eDP Panel Replay not possible\n");
578+
return;
579+
}
580+
581+
if (!(intel_dp->pr_dpcd & DP_PANEL_REPLAY_EARLY_TRANSPORT_SUPPORT)) {
582+
drm_dbg_kms(&i915->drm,
583+
"Panel doesn't support early transport, eDP Panel Replay not possible\n");
584+
return;
585+
}
579586
}
580587

581588
intel_dp->psr.sink_panel_replay_support = true;

0 commit comments

Comments
 (0)