]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/psr: eDP Panel Replay is not supported on pipes other than A and B
authorJouni Högander <jouni.hogander@intel.com>
Mon, 16 Sep 2024 08:57:06 +0000 (11:57 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 18 Sep 2024 06:47:14 +0000 (09:47 +0300)
Do not allow Panel Replay if pipe is other than A or B.

Bspec: 68920

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2736
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/20240916085706.2160511-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 4f29ac32ff85bc16d926130673ebcc5e2b176f81..5ed446f1e3bab88e1147991bc4fe968e3589b049 100644 (file)
@@ -1601,6 +1601,10 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
 
        /* Remaining checks are for eDP only */
 
+       if (to_intel_crtc(crtc_state->uapi.crtc)->pipe != PIPE_A &&
+           to_intel_crtc(crtc_state->uapi.crtc)->pipe != PIPE_B)
+               return false;
+
        /* 128b/132b Panel Replay is not supported on eDP */
        if (intel_dp_is_uhbr(crtc_state)) {
                drm_dbg_kms(display->drm,