drm/amdgpu: retry init if it fails due to exclusive mode timeout (v3)
authorpding <Pixel.Ding@amd.com>
Mon, 23 Oct 2017 09:22:09 +0000 (17:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:14 +0000 (16:33 -0500)
commit8840a3878d40c9318b08932376fa31e763780dfe
treede5336b6e3257806425fd3511232ba104249e50f
parentb59142384ed6e2652004d2089bfd8f238bf7f0b9
drm/amdgpu: retry init if it fails due to exclusive mode timeout (v3)

The exclusive mode has real-time limitation in reality, such like being
done in 300ms. It's easy observed if running many VF/VMs in single host
with heavy CPU workload.

If we find the init fails due to exclusive mode timeout, try it again.

v2:
 - rewrite the condition for readable value.

v3:
 - fix typo, add comments for sleep

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: pding <Pixel.Ding@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c