]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/psr: Prevent Panel Replay if CRC calculation is enabled
authorJouni Högander <jouni.hogander@intel.com>
Mon, 19 Aug 2024 09:25:49 +0000 (12:25 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 21 Aug 2024 10:55:02 +0000 (13:55 +0300)
Similarly as for PSR2 CRC calculation seems to timeout when Panel Replay is
enabled. Fix this by falling back to PSR if CRC calculation is enabled.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2266
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240819092549.1298233-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 9cb1cdaaeefa7ded758cd74d1c02fa8eb0d96c97..572dcdf77453cbecf409de9229614481a7e867cc 100644 (file)
@@ -1586,6 +1586,12 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
        if (!alpm_config_valid(intel_dp, crtc_state, true))
                return false;
 
+       if (crtc_state->crc_enabled) {
+               drm_dbg_kms(&i915->drm,
+                           "Panel Replay not enabled because it would inhibit pipe CRC calculation\n");
+               return false;
+       }
+
        return true;
 }