drm/amd/powerplay: delete duplicate code in smu7_hwmgr.c
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 2 Nov 2016 08:05:08 +0000 (16:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Nov 2016 15:21:03 +0000 (10:21 -0500)
Voltage Controller have been enabled (SMC message)
before ULV enablement.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index a50765d189497f42471c2d8babbfb5b0718e5120..e22046507e77f4b0e4b69a4c38d155fb8b67630d 100644 (file)
@@ -993,13 +993,6 @@ static int smu7_start_dpm(struct pp_hwmgr *hwmgr)
        PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__PCIE,
                        SWRST_COMMAND_1, RESETLC, 0x0);
 
-       PP_ASSERT_WITH_CODE(
-                       (0 == smum_send_msg_to_smc(hwmgr->smumgr,
-                                       PPSMC_MSG_Voltage_Cntl_Enable)),
-                       "Failed to enable voltage DPM during DPM Start Function!",
-                       return -EINVAL);
-
-
        if (smu7_enable_sclk_mclk_dpm(hwmgr)) {
                printk(KERN_ERR "Failed to enable Sclk DPM and Mclk DPM!");
                return -EINVAL;