drm/amdgpu: userq_va_mapped should remain true once done
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 13 May 2026 07:59:35 +0000 (13:29 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 16:15:49 +0000 (12:15 -0400)
commitb6a28b77b88e776a8cc7739005718e03c4c9be57
tree73e80b565455e31b2efd7c33c2fb49079a3dc7c1
parentcd7cfcdb4dd45c79ef6825a3dc918782f604f5ed
drm/amdgpu: userq_va_mapped should remain true once done

Multiple queues needs these bo_va objects belonging to
the same uq_mgr. So once they are mapped lets not unmap
them as at any point of time any of the queues might be
using it.

Also userq_va_mapped should be a boolean than atomic.

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>
(cherry picked from commit 5c02889ea22575c3bcfdf212e65fac316cbc6c6a)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c