diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-07-10 21:31:58 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 18:47:00 -0400 |
| commit | 459e61b53910be3c6dff4d97ae95bb6116ee65dd (patch) | |
| tree | dcc78de24df0396569111b6fdc8b3ec431c7f7be /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 1d8cfeb69daa863a70134b8ed6df8055c418a5b0 (diff) | |
drm/amd/display: Fix writeback completion timing
[WHY]
The out fence was signalled on the first vblank after arming, before the
DMA finished copying, and the old code worked around this with an
mdelay() in the IRQ handler.
[HOW]
Hold a vblank reference while writeback is pending and signal the out
fence on the second vblank instead of using mdelay(). Add
amdgpu_dm_crtc_complete_writeback() to finish and clean up writeback
from both the IRQ and teardown paths.
This can be verified by running IGT's kms_writeback 20 times without
timeout errors.
Assisted-by: Copilot:Claude-Opus-4.8
Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
