Commit b57c4f1c authored by Victor Zhao's avatar Victor Zhao Committed by Alex Deucher
Browse files

drm/amd/pm: Disallow managing power profiles on SRIOV for gc11.0.3



disable pp_power_profile_mode for sriov on gc11.0.3 as not supported
by smu

Signed-off-by: default avatarVictor Zhao <Victor.Zhao@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 709c3482
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2187,7 +2187,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
	} else if (DEVICE_ATTR_IS(pp_power_profile_mode)) {
		if (amdgpu_dpm_get_power_profile_mode(adev, NULL) == -EOPNOTSUPP)
			*states = ATTR_STATE_UNSUPPORTED;
		else if (gc_ver == IP_VERSION(10, 3, 0) && amdgpu_sriov_vf(adev))
		else if ((gc_ver == IP_VERSION(10, 3, 0) ||
			  gc_ver == IP_VERSION(11, 0, 3)) && amdgpu_sriov_vf(adev))
			*states = ATTR_STATE_UNSUPPORTED;
	} else if (DEVICE_ATTR_IS(xgmi_plpd_policy)) {
		if (amdgpu_dpm_get_xgmi_plpd_mode(adev, NULL) == XGMI_PLPD_NONE)