Commit 36b0bc17 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: b0db33c8 ("drm/amdgpu/userq: rework front end call sequence")
Reviewed-by: default avatarPrike Liang <Prike.Liang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e67b95f0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -779,8 +779,10 @@ void amdgpu_userq_mgr_fini(struct amdgpu_userq_mgr *userq_mgr)
	cancel_delayed_work(&userq_mgr->resume_work);

	mutex_lock(&userq_mgr->userq_mutex);
	idr_for_each_entry(&userq_mgr->userq_idr, queue, queue_id)
	idr_for_each_entry(&userq_mgr->userq_idr, queue, queue_id) {
		amdgpu_userqueue_unmap_helper(userq_mgr, queue);
		amdgpu_userqueue_cleanup(userq_mgr, queue, queue_id);
	}
	mutex_lock(&adev->userq_mutex);
	list_for_each_entry_safe(uqm, tmp, &adev->userq_mgr_list, list) {
		if (uqm == userq_mgr) {