diff options
| author | Jingwen Chen <[email protected]> | 2020-11-24 06:06:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-12-01 20:58:54 +0000 |
| commit | 7cf7a392af269fb83d8695be2ea92de3959bbd60 (patch) | |
| tree | 6f95b846308cdc600473260cbfc135fbeece42e1 /drivers/gpu/drm/amd/pm/amdgpu_dpm.c | |
| parent | drm/amd/pm: update driver if version for navy_flounder (diff) | |
| download | kernel-7cf7a392af269fb83d8695be2ea92de3959bbd60.tar.gz kernel-7cf7a392af269fb83d8695be2ea92de3959bbd60.zip | |
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: Jingwen Chen <[email protected]>
Reviewed-by: Jiange Zhao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c index 17a45baff638..8fb12afe3c96 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c @@ -1168,6 +1168,9 @@ int amdgpu_dpm_switch_power_profile(struct amdgpu_device *adev, { int ret = 0; + if (amdgpu_sriov_vf(adev)) + return 0; + if (is_support_sw_smu(adev)) ret = smu_switch_power_profile(&adev->smu, type, en); else if (adev->powerplay.pp_funcs && |
