int queue_id;
int ret = 0;
- userq_funcs = adev->userq_funcs[AMDGPU_HW_IP_GFX];
-
/* Resume all the queues for this process */
- idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id)
+ idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) {
+ userq_funcs = adev->userq_funcs[queue->queue_type];
ret = userq_funcs->resume(uq_mgr, queue);
+ }
if (ret)
DRM_ERROR("Failed to resume all the queue\n");
int queue_id;
int ret = 0;
- userq_funcs = adev->userq_funcs[AMDGPU_HW_IP_GFX];
-
/* Try to suspend all the queues in this process ctx */
- idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id)
+ idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) {
+ userq_funcs = adev->userq_funcs[queue->queue_type];
ret += userq_funcs->suspend(uq_mgr, queue);
+ }
if (ret)
DRM_ERROR("Couldn't suspend all the queues\n");