mutex_unlock(&uq_mgr->userq_mutex);
if (ret)
- drm_file_err(uq_mgr->file, "Failed to map all the queues\n");
+ drm_file_err(uq_mgr->file,
+ "Failed to map all the queues, restore failed ret=%d\n", ret);
return ret;
}
ret = amdgpu_userq_vm_validate(uq_mgr);
if (ret) {
- drm_file_err(uq_mgr->file, "Failed to validate BOs to restore\n");
+ drm_file_err(uq_mgr->file, "Failed to validate BOs to restore ret=%d\n", ret);
goto put_fence;
}
- ret = amdgpu_userq_restore_all(uq_mgr);
- if (ret)
- drm_file_err(uq_mgr->file, "Failed to restore all queues\n");
+ amdgpu_userq_restore_all(uq_mgr);
put_fence:
dma_fence_put(ev_fence);