RB-by: Xiangliang Yu <[email protected]>

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Pixel 
Ding
Sent: Tuesday, October 31, 2017 3:11 PM
To: [email protected]
Cc: Ding, Pixel <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: retry init if exclusive mode request is failed

From: pding <[email protected]>

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]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index daa2098..ef01aa3 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++) {
--
2.9.5

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to