]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/psr: Clear frontbuffer busy bits on flip
authorJouni Högander <jouni.hogander@intel.com>
Fri, 1 Sep 2023 09:34:58 +0000 (12:34 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 4 Sep 2023 09:03:40 +0000 (12:03 +0300)
We are planning to move flush performed from work queue. This
means it is possible to have invalidate -> flip -> flush sequence.
Handle this by clearing possible busy bits on flip.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901093500.3463046-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 79e57a5e173898c5a40bf5f3a2261803017a514a..b9e38acc513209ddb1573784af2a2579ca5017a1 100644 (file)
@@ -2230,6 +2230,12 @@ static void _intel_psr_post_plane_update(const struct intel_atomic_state *state,
                if (crtc_state->crc_enabled && psr->enabled)
                        psr_force_hw_tracking_exit(intel_dp);
 
+               /*
+                * Clear possible busy bits in case we have
+                * invalidate -> flip -> flush sequence.
+                */
+               intel_dp->psr.busy_frontbuffer_bits = 0;
+
                mutex_unlock(&psr->lock);
        }
 }