drm/amd/powerplay: limit smu support to Arcturus for onevf
authorJiansong Chen <Jiansong.Chen@amd.com>
Mon, 20 Apr 2020 07:36:53 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:49 +0000 (18:11 -0400)
Under onevf mode the smu support to other chips is not well
verified yet.

Signed-off-by: Jiansong Chen <Jiansong.Chen@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index d4599fa..88b4e56 100644 (file)
@@ -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;