]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/psr: Allow async flip when Selective Fetch enabled
authorJouni Högander <jouni.hogander@intel.com>
Thu, 4 Dec 2025 07:07:18 +0000 (09:07 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 10 Dec 2025 13:04:47 +0000 (15:04 +0200)
Now as Selective Fetch is performing full frame update on async flip and
vblank evasion is done as needed we can allow async flip even when
Selective Fetch is enabled.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251204070718.1090778-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index 9c6d3ecdb589e08be617f3fb602e6cb33369a9a3..d5947cc9b94c550858baebc2b58d6c0f01108e8c 100644 (file)
@@ -6026,14 +6026,6 @@ static int intel_async_flip_check_uapi(struct intel_atomic_state *state,
                return -EINVAL;
        }
 
-       /* FIXME: selective fetch should be disabled for async flips */
-       if (new_crtc_state->enable_psr2_sel_fetch) {
-               drm_dbg_kms(display->drm,
-                           "[CRTC:%d:%s] async flip disallowed with PSR2 selective fetch\n",
-                           crtc->base.base.id, crtc->base.name);
-               return -EINVAL;
-       }
-
        for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state,
                                             new_plane_state, i) {
                if (plane->pipe != crtc->pipe)