]> Git Repo - linux.git/commitdiff
drm/amdgpu/sriov: Disable pm for multiple vf sriov
authorEmily Deng <[email protected]>
Thu, 11 Jun 2020 03:40:05 +0000 (11:40 +0800)
committerAlex Deucher <[email protected]>
Wed, 1 Jul 2020 05:59:19 +0000 (01:59 -0400)
Signed-off-by: Emily Deng <[email protected]>
Ack-by: Monk.liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 8415b383e7ae3473823b7ba341e09e9a300850f5..e514f02ca0d1d239aaa6840d8bb949c4661f9c77 100644 (file)
@@ -1271,8 +1271,10 @@ static int smu_hw_init(void *handle)
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
        struct smu_context *smu = &adev->smu;
 
-       if (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev))
+       if (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev)) {
+               smu->pm_enabled = false;
                return 0;
+       }
 
        ret = smu_start_smc_engine(smu);
        if (ret) {
This page took 0.077532 seconds and 4 git commands to generate.