Commit 96358810 authored by Jack Zhang's avatar Jack Zhang Committed by Alex Deucher

amd/amdgpu/sriov swSMU disable for sriov

For boards greater than ARCTURUS, and under sriov platform,
swSMU is not supported because smu ip block is commented at
guest driver.

Generally for sriov, initialization of smu is moved to host driver.
Thus, smu sw_init and hw_init will not be executed at guest driver.

Without sw structure being initialized in guest driver, swSMU cannot
declare to be supported.
Signed-off-by: default avatarJack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a501e22c
...@@ -530,9 +530,12 @@ bool is_support_sw_smu(struct amdgpu_device *adev) ...@@ -530,9 +530,12 @@ 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) {
return true; if (amdgpu_sriov_vf(adev))
else return false;
else
return true;
} else
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment