]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: clear the messed up checking logic
authorMonk Liu <Monk.Liu@amd.com>
Thu, 23 Apr 2020 06:57:40 +0000 (14:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
for ARCTURUS+ ASICS, we always support SW_SMU for bare-metal
and for SRIOV one_vf_mode

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 2bb1e0c6f3445f38d1a05995ae7f582cdc213db2..361a5b6cbe3bb1124fd78e7070339ae86e4f680c 100644 (file)
@@ -571,15 +571,10 @@ bool is_support_sw_smu(struct amdgpu_device *adev)
        if (adev->asic_type == CHIP_VEGA20)
                return (amdgpu_dpm == 2) ? true : false;
        else if (adev->asic_type >= CHIP_ARCTURUS) {
-               if (amdgpu_sriov_vf(adev) &&
-                   !(adev->asic_type == CHIP_ARCTURUS &&
-                     amdgpu_sriov_is_pp_one_vf(adev)))
-
-                       return false;
-               else
+             if (amdgpu_sriov_is_pp_one_vf(adev) || !amdgpu_sriov_vf(adev))
                        return true;
-       } else
-               return false;
+       }
+       return false;
 }
 
 bool is_support_sw_smu_xgmi(struct amdgpu_device *adev)