]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: set an error on all fences from a bad context
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Sep 2025 17:48:23 +0000 (13:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:15 +0000 (14:14 -0400)
commitff780f4f80323148d43198f2052c14160c8428d3
tree4d27bc841bcccb71beb95ae9bbfd09e14886f55d
parent1f22fcb88bfef26a966e9eb242c692c6bf253d47
drm/amdgpu: set an error on all fences from a bad context

When we backup ring contents to reemit after a queue reset,
we don't backup ring contents from the bad context.  When
we signal the fences, we should set an error on those
fences as well.

v2: misc cleanups
v3: add locking for fence error, fix comment (Christian)
v4: fix wrap around, locking (Christian)

Fixes: 77cc0da39c7c ("drm/amdgpu: track ring state associated with a fence")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h