]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: dont lock root bo with userq_mutex held
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 8 Apr 2026 11:46:24 +0000 (17:16 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:12 +0000 (15:41 -0400)
commit51358444d18d8b9905d7eb1a30686aa5610b2b5f
treeb361150c74cfbdf6523d096fdcc1fc408b5d3de3
parent1eb90c7403c4afae1d791a2671f4873fd8d44c34
drm/amdgpu/userq: dont lock root bo with userq_mutex held

Do not hold reservation lock for root bo if userq_mutex
is already held in the call flow this cause a lock
issue with ttm_bo_delayed_delete.

Its better to lock the vm->root.bo first and then go ahead
with userq_mutex so userq_mutex threads dont get stuck until
the reservation lock is held.

In this case it helps in the function amdgpu_userq_buffer_vas_mapped
for each queue during restore_all.

Signed-off-by: Sunil Khatri <sunil.khatri@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_userq.c