diff options
| author | pding <[email protected]> | 2017-10-30 05:51:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-12-04 21:41:41 +0000 |
| commit | f47110330c98e4d09dc45286942765f4181a0fb1 (patch) | |
| tree | 159d5794a9c640ee139d33dffb7c4ecdc4676ced /drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | |
| parent | drm/amd/display: Remove fb_location parameter from get_fb_info (diff) | |
| download | kernel-f47110330c98e4d09dc45286942765f4181a0fb1.tar.gz kernel-f47110330c98e4d09dc45286942765f4181a0fb1.zip | |
drm/amdgpu: return error when sriov access requests get timeout
Reported-by: Sun Gary <[email protected]>
Signed-off-by: pding <[email protected]>
Reviewed-by: Xiangliang Yu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c index 818ec0fe2f51..2b435c02ef44 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c @@ -446,8 +446,10 @@ static int xgpu_vi_send_access_requests(struct amdgpu_device *adev, request == IDH_REQ_GPU_FINI_ACCESS || request == IDH_REQ_GPU_RESET_ACCESS) { r = xgpu_vi_poll_msg(adev, IDH_READY_TO_ACCESS_GPU); - if (r) - pr_err("Doesn't get ack from pf, continue\n"); + if (r) { + pr_err("Doesn't get ack from pf, give up\n"); + return r; + } } return 0; |
