mirror of https://gitee.com/openkylin/linux.git
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 <shaoyun.liu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
43c4d57618
commit
02be064823
|
@ -1940,6 +1940,11 @@ static int gfx_v10_0_rlc_resume(struct amdgpu_device *adev)
|
||||||
if (!amdgpu_sriov_vf(adev)) /* enable RLC SRM */
|
if (!amdgpu_sriov_vf(adev)) /* enable RLC SRM */
|
||||||
gfx_v10_0_rlc_enable_srm(adev);
|
gfx_v10_0_rlc_enable_srm(adev);
|
||||||
} else {
|
} else {
|
||||||
|
if (amdgpu_sriov_vf(adev)) {
|
||||||
|
gfx_v10_0_init_csb(adev);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
adev->gfx.rlc.funcs->stop(adev);
|
adev->gfx.rlc.funcs->stop(adev);
|
||||||
|
|
||||||
/* disable CG */
|
/* disable CG */
|
||||||
|
|
Loading…
Reference in New Issue