[PATCH 1/2] drm/amdgpu: return error when sriov access requests get timeout

Pixel Ding Pixel.Ding at amd.com
Tue Oct 31 07:10:54 UTC 2017


From: pding <Pixel.Ding at amd.com>

Reported-by: Sun Gary <Gary.Sun at amd.com>
Signed-off-by: pding <Pixel.Ding at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
index 818ec0f..f291fb2 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
@@ -450,7 +450,7 @@ static int xgpu_vi_send_access_requests(struct amdgpu_device *adev,
 			pr_err("Doesn't get ack from pf, continue\n");
 	}
 
-	return 0;
+	return r;
 }
 
 static int xgpu_vi_request_reset(struct amdgpu_device *adev)
-- 
2.9.5



More information about the amd-gfx mailing list