From: pding Date: Mon, 30 Oct 2017 05:51:54 +0000 (+0800) Subject: drm/amdgpu: return error when sriov access requests get timeout X-Git-Tag: v4.19~1610^2~33^2~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f47110330c98e4d09dc45286942765f4181a0fb1;p=platform%2Fkernel%2Flinux-rpi3.git drm/amdgpu: return error when sriov access requests get timeout Reported-by: Sun Gary Signed-off-by: pding Reviewed-by: Xiangliang Yu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c index 818ec0f..2b435c0 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;