drm/amdgpu: always backup and reemit fences
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Nov 2025 19:12:10 +0000 (14:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:28:45 +0000 (17:28 -0500)
commit531b43260928a53f4190f3e61de788551af6157e
treeb88abf131a23c4b9abdcb9f6f1851546938af248
parent9fc27cbabee6d2e63b0268ca709ad3129b3ac50d
drm/amdgpu: always backup and reemit fences

If when we backup the ring contents for reemit before a
ring reset, we skip jobs associated with the bad
context, however, we need to make sure the fences
are reemited as unprocessed submissions may depend on
them.

v2: clean up fence handling, make helpers static

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 155a748f14bc0b72783994dea7c5a12276730342)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h