[PATCH 7/9] drm/amdgpu: don't swallow errors in amdgpu_userqueue_resume_all()
Alex Deucher
alexander.deucher at amd.com
Thu Apr 10 18:11:36 UTC 2025
since we loop through the queues |= the errors.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
index 48e2df6bdf63f..09c2b01955c58 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
@@ -422,7 +422,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)
--
2.49.0
More information about the amd-gfx
mailing list