Skip to content

Commit 02be064

Browse files
shaoyunlalexdeucher
authored andcommitted
drm/amdgpu/sriov : Don't resume RLCG for SRIOV guest
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]>
1 parent 43c4d57 commit 02be064

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,11 @@ static int gfx_v10_0_rlc_resume(struct amdgpu_device *adev)
19401940
if (!amdgpu_sriov_vf(adev)) /* enable RLC SRM */
19411941
gfx_v10_0_rlc_enable_srm(adev);
19421942
} else {
1943+
if (amdgpu_sriov_vf(adev)) {
1944+
gfx_v10_0_init_csb(adev);
1945+
return 0;
1946+
}
1947+
19431948
adev->gfx.rlc.funcs->stop(adev);
19441949

19451950
/* disable CG */

0 commit comments

Comments
 (0)