drm/amdgpu: enable vega20 powerplay support
authorEvan Quan <evan.quan@amd.com>
Wed, 2 May 2018 07:45:54 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:33 +0000 (11:10 -0500)
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 73c85a0282d01673b5c1bf1f7db0684207b0abdd..dd44b50242ac97e1ff41dc647758ac2d865da0b4 100644 (file)
@@ -520,9 +520,9 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &vega10_ih_ip_block);
                if (adev->asic_type != CHIP_VEGA20) {
                        amdgpu_device_ip_block_add(adev, &psp_v3_1_ip_block);
-                       if (!amdgpu_sriov_vf(adev))
-                               amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
                }
+               if (!amdgpu_sriov_vf(adev))
+                       amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
                if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)