]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/userq: unmap is to be called before freeing doorbell/wptr bo
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 13 Apr 2026 06:08:46 +0000 (11:38 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:12 +0000 (15:41 -0400)
commit810df8de2f1f4602c4279455db0a88307ece5c00
tree18eb09c37b86b00d3d94ec81174b9db991674236
parent85653fe2e52e19034db5914d65a4579dd7c4b275
drm/amdgpu/userq: unmap is to be called before freeing doorbell/wptr bo

Unmap the queue after freeing doorbell and wptr memory is completely
wrong. Any operation on the queue needs the doorbell and wptr to be
valid and hence fixing the ordering.

Also since we are using amdgpu_bo_reserve in non interruptrable mode
so there is no need to check for its return values.

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