}
if (ret)
- drm_file_err(uq_mgr->file, "Couldn't unmap all the queues\n");
+ drm_file_err(uq_mgr->file,
+ "Couldn't unmap all the queues, eviction failed ret=%d\n", ret);
return ret;
}
void
amdgpu_userq_evict(struct amdgpu_userq_mgr *uq_mgr)
{
- struct amdgpu_device *adev = uq_mgr->adev;
- int ret;
-
/* Wait for any pending userqueue fence work to finish */
- ret = amdgpu_userq_wait_for_signal(uq_mgr);
- if (ret)
- dev_err(adev->dev, "Not evicting userqueue, timeout waiting for work\n");
-
- ret = amdgpu_userq_evict_all(uq_mgr);
- if (ret)
- dev_err(adev->dev, "Failed to evict userqueue\n");
-
+ amdgpu_userq_wait_for_signal(uq_mgr);
+ amdgpu_userq_evict_all(uq_mgr);
}
int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct drm_file *file_priv,