[PATCH v2 7/7] drm/i915/display: Generate PSR frame change event on cursor update
Jouni Högander
jouni.hogander at intel.com
Tue Oct 29 10:05:44 UTC 2024
On LunarLake and onwards we are using vrr send push mechanism to trigger
frame change event. Due to this we need to trigger it using
intel_vrr_psr_send_push provided by VRR code on legacy cursor update.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/i915/display/intel_cursor.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c
index 9ba77970dab7..178ce1962ebc 100644
--- a/drivers/gpu/drm/i915/display/intel_cursor.c
+++ b/drivers/gpu/drm/i915/display/intel_cursor.c
@@ -25,6 +25,7 @@
#include "intel_psr.h"
#include "intel_psr_regs.h"
#include "intel_vblank.h"
+#include "intel_vrr.h"
#include "skl_watermark.h"
/* Cursor formats */
@@ -917,6 +918,9 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
intel_plane_disable_arm(NULL, plane, crtc_state);
}
+ if (crtc_state->has_psr)
+ intel_vrr_psr_send_push(crtc);
+
local_irq_enable();
intel_psr_unlock(crtc_state);
--
2.34.1
More information about the Intel-gfx-trybot
mailing list