提交 f4711033 编写于 作者: P pding 提交者: Alex Deucher

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

Reported-by: NSun Gary <Gary.Sun@amd.com>
Signed-off-by: Npding <Pixel.Ding@amd.com>
Reviewed-by: NXiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 9817d5f5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册