]> Git Repo - linux.git/commitdiff
drm/amdgpu/sriov : Don't resume RLCG for SRIOV guest
authorshaoyunl <[email protected]>
Tue, 17 Mar 2020 16:46:34 +0000 (12:46 -0400)
committerAlex Deucher <[email protected]>
Fri, 20 Mar 2020 14:45:00 +0000 (10:45 -0400)
RLCG is enabled by host driver, no need to enable it in guest for none-PSP load path

Signed-off-by: shaoyunl <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 42bbc0070831c425774491b807ff35b09e7b81f0..c8f2aa1db13b9a4c7099f8a463777a9cf58c854a 100644 (file)
@@ -1940,6 +1940,11 @@ static int gfx_v10_0_rlc_resume(struct amdgpu_device *adev)
                if (!amdgpu_sriov_vf(adev)) /* enable RLC SRM */
                        gfx_v10_0_rlc_enable_srm(adev);
        } else {
+               if (amdgpu_sriov_vf(adev)) {
+                       gfx_v10_0_init_csb(adev);
+                       return 0;
+               }
+
                adev->gfx.rlc.funcs->stop(adev);
 
                /* disable CG */
This page took 0.061019 seconds and 4 git commands to generate.