On 3/5/26 23:21, [email protected] wrote:
From: Leo Li <[email protected]>
[Why]
It's suspected that there's a race condition where cursor-only updates
can race with page-flip updates when updating the amdgpu_crtc->event,
which is used to track the pending vblank event until it's send by the
interrupt handler.
Theoretically, DRM should prevent concurrent updates on the same CRTC.
But evidently, according to findings[1] on a previous attemp to fix
this, there is a race.
[How]
Save pending vblank events from cursor-only updates seperately in
amdgpu_crtc->cursor_event. Since cursor updates won't arm the pflip_irq
to fire, we'll send it in crtc/vupdate_irq handlers.
[1]
https://lore.kernel.org/amd-gfx/[email protected]/
fyi i am testing this patch, looking good so far but i'd give it another
24 hours to be sure