]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/userq: unpin and unref doorbell and wptr outside mutex
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 13 Apr 2026 12:53:06 +0000 (18:23 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:12 +0000 (15:41 -0400)
commitb250a43bf57e544071a834a7f4223dcc58270a6b
tree931d1bb4e1e4b183b1d5747b2c6c668e1c034908
parentd3a9fe4584ffb4717e5362d8259794c6220fc465
drm/amdgpu/userq: unpin and unref doorbell and wptr outside mutex

In amdgpu_userq_destroy once unmap_helpder is called within mutex
there is no need to hold mutex.

This helps in avoiding a deadlock between doorbell and wptr ww mutex
and we could unpin and unref these bos outside mutex 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.c