aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorpding <[email protected]>2017-10-30 06:07:24 +0000
committerAlex Deucher <[email protected]>2017-12-04 21:41:42 +0000
commit5ffa61c1bdc35895f60ef7b553b43266d3fda469 (patch)
tree6ff87c263234105f1e7aae9c2091439d58871c86 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu: return error when sriov access requests get timeout (diff)
downloadkernel-5ffa61c1bdc35895f60ef7b553b43266d3fda469.tar.gz
kernel-5ffa61c1bdc35895f60ef7b553b43266d3fda469.zip
drm/amdgpu: retry init if exclusive mode request is failed
This is caused of that hypervisor fails to handle request, one known issue is MMIO unblocking timeout. In theory we can retry init here. 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/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 7af0d5d8cb1d..69e724c96442 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1625,7 +1625,7 @@ static int amdgpu_early_init(struct amdgpu_device *adev)
if (amdgpu_sriov_vf(adev)) {
r = amdgpu_virt_request_full_gpu(adev, true);
if (r)
- return r;
+ return -EAGAIN;
}
for (i = 0; i < adev->num_ip_blocks; i++) {