drm/amdgpu: clear the messed up checking logic

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>
This commit is contained in:
Monk Liu 2020-04-23 14:57:40 +08:00 committed by Alex Deucher
parent c2ce6aebf0
commit b217e6f579

View File

@ -571,15 +571,10 @@ bool is_support_sw_smu(struct amdgpu_device *adev)
if (adev->asic_type == CHIP_VEGA20) if (adev->asic_type == CHIP_VEGA20)
return (amdgpu_dpm == 2) ? true : false; return (amdgpu_dpm == 2) ? true : false;
else if (adev->asic_type >= CHIP_ARCTURUS) { else if (adev->asic_type >= CHIP_ARCTURUS) {
if (amdgpu_sriov_vf(adev) && if (amdgpu_sriov_is_pp_one_vf(adev) || !amdgpu_sriov_vf(adev))
!(adev->asic_type == CHIP_ARCTURUS &&
amdgpu_sriov_is_pp_one_vf(adev)))
return false;
else
return true; return true;
} else }
return false; return false;
} }
bool is_support_sw_smu_xgmi(struct amdgpu_device *adev) bool is_support_sw_smu_xgmi(struct amdgpu_device *adev)