drm/amdgpu: don't swallow errors in amdgpu_userqueue_resume_all()
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Apr 2025 17:17:08 +0000 (13:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:49:32 +0000 (10:49 -0400)
since we loop through the queues |= the errors.

Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c

index f5c2489baae4322ceb8b6313e8df67e5b40c77f8..aa7222137c31dce32e91a0eb9fe95a10d9542e26 100644 (file)
@@ -423,7 +423,7 @@ amdgpu_userqueue_resume_all(struct amdgpu_userq_mgr *uq_mgr)
        /* Resume all the queues for this process */
        idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) {
                userq_funcs = adev->userq_funcs[queue->queue_type];
-               ret = userq_funcs->map(uq_mgr, queue);
+               ret |= userq_funcs->map(uq_mgr, queue);
        }
 
        if (ret)