drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 8 May 2026 06:51:20 +0000 (12:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:07:03 +0000 (18:07 -0400)
commit3aab50410653fe7eb35eb6f9c2b27e3549ab09e6
tree6b31c4859b49fedc8bacd1efba9dd61a9c568fce
parent1f863fe67343e2f45fc0af75ac94c3705bdf6537
drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr

To access the bo from vm mapping first lock the root bo and
then the object bo of the mapping to make sure both locks
are taken safely.

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_fence.c