]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: track ring state associated with a fence
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 28 May 2025 01:35:00 +0000 (21:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jul 2025 20:14:11 +0000 (16:14 -0400)
commit77cc0da39c7ce203cd3ce6bc5696421947a979d7
treeaaf3c1215b83f8a2b712dfb53a10b60d344217c2
parentbc29c03b28159bac846ea61033dad09e33f4a338
drm/amdgpu: track ring state associated with a fence

We need to know the wptr and sequence number associated
with a fence so that we can re-emit the unprocessed state
after a ring reset.  Pre-allocate storage space for
the ring buffer contents and add helpers to save off
and re-emit the unprocessed state so that it can be
re-emitted after the queue is reset.

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_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c