Commit c65b5da
committed
SUNLIGHT: drm/amd/display: Clean up stale page flip state on timeout
Description:
- When a page flip times out waiting for hw_done or flip_done completion,
the event and pflip_status are left in a stale state. This causes
WARN_ON triggers in prepare_flip_isr on subsequent commits because the
hardware never signaled completion of the previous flip.
Add cleanup logic to manually send the vblank event, release the vblank
reference, and reset pflip_status to AMDGPU_FLIP_NONE when a timeout
occurs. This prevents state corruption and eliminates spurious warnings
on future commits.
Change-Id: I2c59946fadf179f071f999291b4cc30225fcb9a6
Signed-off-by: Ionut Nechita <[email protected]>1 parent 2d676b4 commit c65b5da
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10685 | 10685 | | |
10686 | 10686 | | |
10687 | 10687 | | |
10688 | | - | |
| 10688 | + | |
| 10689 | + | |
| 10690 | + | |
| 10691 | + | |
10689 | 10692 | | |
10690 | 10693 | | |
10691 | 10694 | | |
| 10695 | + | |
| 10696 | + | |
| 10697 | + | |
| 10698 | + | |
| 10699 | + | |
| 10700 | + | |
| 10701 | + | |
| 10702 | + | |
| 10703 | + | |
| 10704 | + | |
| 10705 | + | |
| 10706 | + | |
| 10707 | + | |
| 10708 | + | |
| 10709 | + | |
| 10710 | + | |
10692 | 10711 | | |
10693 | 10712 | | |
10694 | 10713 | | |
| |||
0 commit comments