[PATCH 10/10] wait for psr before cursor update
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Jan 12 19:28:34 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_cursor.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c
index eb23ced1daab..87d5f4601e90 100644
--- a/drivers/gpu/drm/i915/display/intel_cursor.c
+++ b/drivers/gpu/drm/i915/display/intel_cursor.c
@@ -768,9 +768,12 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
intel_vblank_evade_init(crtc_state, crtc_state, &evade);
+ intel_psr_lock(crtc_state);
+
local_irq_disable();
if (!drm_WARN_ON(&i915->drm, drm_crtc_vblank_get(&crtc->base))) {
+ intel_psr_wait_for_idle_locked(crtc_state);
intel_vblank_evade(&evade);
drm_crtc_vblank_put(&crtc->base);
}
@@ -784,6 +787,8 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
local_irq_enable();
+ intel_psr_unlock(crtc_state);
+
intel_plane_unpin_fb(old_plane_state);
out_free:
--
2.41.0
More information about the Intel-gfx-trybot
mailing list