diff options
author | pding <Pixel.Ding@amd.com> | 2017-10-30 07:07:24 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-04 22:41:42 +0100 |
commit | 5ffa61c1bdc35895f60ef7b553b43266d3fda469 (patch) | |
tree | 6ff87c263234105f1e7aae9c2091439d58871c86 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | drm/amdgpu: return error when sriov access requests get timeout (diff) | |
download | linux-5ffa61c1bdc35895f60ef7b553b43266d3fda469.tar.xz linux-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 <Pixel.Ding@amd.com>
Reviewed-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
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++) { |