Commit 7cf7a392 authored by Jingwen Chen's avatar Jingwen Chen Committed by Alex Deucher

drm/amdgpu: skip power profile switch in sriov

power profile switch in vcn need to send SetWorkLoad msg to
smu, which is not supported in sriov.
Signed-off-by: default avatarJingwen Chen <Jingwen.Chen2@amd.com>
Reviewed-by: default avatarJiange Zhao <Jiange.Zhao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d503d8b8
...@@ -1168,6 +1168,9 @@ int amdgpu_dpm_switch_power_profile(struct amdgpu_device *adev, ...@@ -1168,6 +1168,9 @@ int amdgpu_dpm_switch_power_profile(struct amdgpu_device *adev,
{ {
int ret = 0; int ret = 0;
if (amdgpu_sriov_vf(adev))
return 0;
if (is_support_sw_smu(adev)) if (is_support_sw_smu(adev))
ret = smu_switch_power_profile(&adev->smu, type, en); ret = smu_switch_power_profile(&adev->smu, type, en);
else if (adev->powerplay.pp_funcs && else if (adev->powerplay.pp_funcs &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment