Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/userq: remove queue from doorbell xa during clean up

If function amdgpu_userq_map_helper fails we do need to clean
up and remove the queue from the userq_doorbell_xa.

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>

authored by

Sunil Khatri and committed by
Alex Deucher
a978ed3d f0e46fd0

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 885 885 r = amdgpu_userq_map_helper(queue); 886 886 if (r) { 887 887 drm_file_err(uq_mgr->file, "Failed to map Queue\n"); 888 + xa_erase_irq(&adev->userq_doorbell_xa, index); 888 889 xa_erase(&uq_mgr->userq_xa, qid); 889 890 amdgpu_userq_fence_driver_free(queue); 890 891 uq_funcs->mqd_destroy(queue);