Commit ecc9b6e1 authored by Gavin Wan's avatar Gavin Wan Committed by Alex Deucher
Browse files

drm/amdgpu: Ignore stop rlc on SRIOV environment.



For SRIOV, the guest driver should not do stop rlc. The host
handles programing RLC.

On SRIOV, the stop rlc will be hang (RLC related registers are
blocked by policy) when the RLCG interface is not enabled.

Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGavin Wan <Gavin.Wan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4864f2ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1518,7 +1518,7 @@ static int smu_disable_dpms(struct smu_context *smu)
	}

	if (adev->ip_versions[GC_HWIP][0] >= IP_VERSION(9, 4, 2) &&
	    adev->gfx.rlc.funcs->stop)
	    !amdgpu_sriov_vf(adev) && adev->gfx.rlc.funcs->stop)
		adev->gfx.rlc.funcs->stop(adev);

	return ret;