aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiansong Chen <[email protected]>2020-04-20 15:36:53 +0800
committerAlex Deucher <[email protected]>2020-04-22 18:11:49 -0400
commitf9b93c9ba605d8b0cf05e72102c3cf4a85aa6191 (patch)
treef95179a44fb0c911cabbae1443b4e85e0c890887
parent7aba19182e9958cce8d0c6b2f67807ceac31fd50 (diff)
drm/amd/powerplay: limit smu support to Arcturus for onevf
Under onevf mode the smu support to other chips is not well verified yet. Signed-off-by: Jiansong Chen <[email protected]> Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index d4599fa6dc0b..88b4e5642302 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -571,7 +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)&& !amdgpu_sriov_is_pp_one_vf(adev))
+ if (amdgpu_sriov_vf(adev) &&
+ !(adev->asic_type == CHIP_ARCTURUS &&
+ amdgpu_sriov_is_pp_one_vf(adev)))
+
return false;
else
return true;