Commit f4711033 authored by pding's avatar pding Committed by Alex Deucher

drm/amdgpu: return error when sriov access requests get timeout

Reported-by: default avatarSun Gary <Gary.Sun@amd.com>
Signed-off-by: default avatarpding <Pixel.Ding@amd.com>
Reviewed-by: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9817d5f5
...@@ -446,8 +446,10 @@ static int xgpu_vi_send_access_requests(struct amdgpu_device *adev, ...@@ -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_FINI_ACCESS ||
request == IDH_REQ_GPU_RESET_ACCESS) { request == IDH_REQ_GPU_RESET_ACCESS) {
r = xgpu_vi_poll_msg(adev, IDH_READY_TO_ACCESS_GPU); r = xgpu_vi_poll_msg(adev, IDH_READY_TO_ACCESS_GPU);
if (r) if (r) {
pr_err("Doesn't get ack from pf, continue\n"); pr_err("Doesn't get ack from pf, give up\n");
return r;
}
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment