]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/userq: reserve root bo without interruption
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 18 May 2026 13:25:25 +0000 (18:55 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:40:19 +0000 (10:40 -0400)
Fix the code to make it an uninterruptible reservation
for root bo.

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

index 3a1d08032450654554cedb377d26808b938b830d..e5aa830f8a464b86ba50bc0b10d410ea450ae11c 100644 (file)
@@ -620,11 +620,7 @@ amdgpu_userq_destroy(struct amdgpu_userq_mgr *uq_mgr, struct amdgpu_usermode_que
        /* Cancel any pending hang detection work and cleanup */
        cancel_delayed_work_sync(&queue->hang_detect_work);
 
-       r = amdgpu_bo_reserve(vm->root.bo, false);
-       if (r) {
-               drm_file_err(uq_mgr->file, "Failed to reserve root bo during userqueue destroy\n");
-               return r;
-       }
+       amdgpu_bo_reserve(vm->root.bo, true);
        amdgpu_userq_buffer_vas_list_cleanup(adev, queue);
        amdgpu_bo_unreserve(vm->root.bo);