mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 17:04:50 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user