Skip to content

Commit 897d29c

Browse files
committed
drm/i915/psr: Check panel ALPM capability for eDP Panel Replay
Our HW doesn't support Panel Replay without AUX_LESS ALPM on eDP. Check panel support for this and prevent eDP panel replay if it doesn't exits. Bspec: 68920 v3: remove excessive parens v2: use intel_alpm_aux_less_wake_supported 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 a441c0a commit 897d29c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,13 @@ 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;
579+
}
580+
574581
intel_dp->psr.sink_panel_replay_support = true;
575582

576583
if (intel_dp->pr_dpcd & DP_PANEL_REPLAY_SU_SUPPORT)

0 commit comments

Comments
 (0)