]> git.hungrycats.org Git - linux/commit
drm/amdgpu: reserve TTM move fences slot for rearming eviction fences
authorPrike Liang <Prike.Liang@amd.com>
Tue, 26 May 2026 08:42:14 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:49:29 +0000 (13:49 -0400)
commit113fa3ca614a865776f81759bb245dabf99859a7
treee653a5e35ba3cc6d890303d49f77916a64abd048
parentc04b0430a9b9291ac2ad23a46cd6216c7ef8964f
drm/amdgpu: reserve TTM move fences slot for rearming eviction fences

The eviction rearming does not cover possible TTM move fences. If TTM
moves the BO and consumes move fence slots, the later eviction fence
add can hit the dma_resv_add_fence() BUG.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c