drm/amdgpu:bypass RLC init for SRIOV
authorMonk Liu <Monk.Liu@amd.com>
Mon, 12 Dec 2016 09:18:37 +0000 (17:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:02 +0000 (23:55 -0400)
one issue unresolved for RLC:
rlc will go wrong completely if there is a soft_reset
before RLC ucode loading.

to workaround above issue, we can totally ignore RLC
in guest driver side due to there was already full
initialization on RLC side by GIM

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 9df3e834e7afc15ea6f6883f35ca4b1be39401c4..64bf70521af90ca8a4ba4b3f148652c80b5c30de 100644 (file)
@@ -1465,6 +1465,9 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
 {
        int r;
 
+       if (amdgpu_sriov_vf(adev))
+               return 0;
+
        gfx_v9_0_rlc_stop(adev);
 
        /* disable CG */