drm/amdgpu: sriov is forbidden to call disable DPM

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Monk Liu 2020-04-22 12:15:23 +08:00 committed by Alex Deucher
parent 2f5a0a9119
commit c983361a72
1 changed files with 3 additions and 0 deletions

View File

@ -1403,6 +1403,9 @@ failed:
static int smu_stop_dpms(struct smu_context *smu)
{
if (amdgpu_sriov_vf(smu->adev))
return 0;
return smu_system_features_control(smu, false);
}