drm/amdgpu/pp: switch the default dpm implementation for CI
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 31 May 2018 17:46:08 +0000 (12:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:30 +0000 (12:20 -0500)
Switch hawaii and bonaire to use powerplay rather than the old
dpm implementation.  Powerplay supports more features and is
better maintained.  Ultimately, we can drop the older dpm
implementation like we did for other older asics.

Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Rex Zhu <rezhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cik.c

index 8ff4c60d1b59599bfd6cee31e3cee1ede9d6a51c..702e257a483ffa6ae959616b0699fa2bd798a6c1 100644 (file)
@@ -2003,9 +2003,9 @@ int cik_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &gmc_v7_0_ip_block);
                amdgpu_device_ip_block_add(adev, &cik_ih_ip_block);
                if (amdgpu_dpm == -1)
-                       amdgpu_device_ip_block_add(adev, &ci_smu_ip_block);
-               else
                        amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
+               else
+                       amdgpu_device_ip_block_add(adev, &ci_smu_ip_block);
                if (adev->enable_virtual_display)
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)
@@ -2024,9 +2024,9 @@ int cik_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &gmc_v7_0_ip_block);
                amdgpu_device_ip_block_add(adev, &cik_ih_ip_block);
                if (amdgpu_dpm == -1)
-                       amdgpu_device_ip_block_add(adev, &ci_smu_ip_block);
-               else
                        amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
+               else
+                       amdgpu_device_ip_block_add(adev, &ci_smu_ip_block);
                if (adev->enable_virtual_display)
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)