]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: sriov is forbidden to call disable DPM
authorMonk Liu <Monk.Liu@amd.com>
Wed, 22 Apr 2020 04:15:23 +0000 (12:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 88b4e56423026f239f30b72010b7651d03fb633e..2bb1e0c6f3445f38d1a05995ae7f582cdc213db2 100644 (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);
 }