Skip to content

Commit 36b0bc1

Browse files
committed
drm/amdgpu/userq: unmap queues amdgpu_userq_mgr_fini()
This was missed when the map and unmap were split out of the mqd create and destroy functions. Fixes: b0db33c ("drm/amdgpu/userq: rework front end call sequence") Reviewed-by: Prike Liang <Prike.Liang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e67b95f commit 36b0bc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,10 @@ void amdgpu_userq_mgr_fini(struct amdgpu_userq_mgr *userq_mgr)
779779
cancel_delayed_work(&userq_mgr->resume_work);
780780

781781
mutex_lock(&userq_mgr->userq_mutex);
782-
idr_for_each_entry(&userq_mgr->userq_idr, queue, queue_id)
782+
idr_for_each_entry(&userq_mgr->userq_idr, queue, queue_id) {
783+
amdgpu_userqueue_unmap_helper(userq_mgr, queue);
783784
amdgpu_userqueue_cleanup(userq_mgr, queue, queue_id);
785+
}
784786
mutex_lock(&adev->userq_mutex);
785787
list_for_each_entry_safe(uqm, tmp, &adev->userq_mgr_list, list) {
786788
if (uqm == userq_mgr) {

0 commit comments

Comments
 (0)