drm/amd/powerplay: remove setting soc floor voltage before sending pptable
authorEvan Quan <evan.quan@amd.com>
Wed, 18 Jul 2018 02:59:02 +0000 (10:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:35 +0000 (11:10 -0500)
SOC voltage is not able to switch and forced to low 0.8V when running HEVC.
Thus the test failed.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Rex Zhu <rezhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h

index ed928c5d878c8ece26b75227229f3ef3e25f33d1..ad6ce148fb3fde151b92c24f3ca7e3d4afd0a492 100644 (file)
@@ -707,14 +707,7 @@ static int vega20_init_smc_table(struct pp_hwmgr *hwmgr)
        data->vbios_boot_state.vclock = boot_up_values.ulVClk;
        data->vbios_boot_state.dclock = boot_up_values.ulDClk;
        data->vbios_boot_state.uc_cooling_id = boot_up_values.ucCoolingID;
-       if (0 != boot_up_values.usVddc) {
-               smum_send_msg_to_smc_with_parameter(hwmgr,
-                                       PPSMC_MSG_SetFloorSocVoltage,
-                                       (boot_up_values.usVddc * 4));
-               data->vbios_boot_state.bsoc_vddc_lock = true;
-       } else {
-               data->vbios_boot_state.bsoc_vddc_lock = false;
-       }
+
        smum_send_msg_to_smc_with_parameter(hwmgr,
                        PPSMC_MSG_SetMinDeepSleepDcefclk,
                (uint32_t)(data->vbios_boot_state.dcef_clock / 100));
index 130052a330b301b673504549601f8a375e73c533..72e4f2a556414c84ee43296b1f9319c02103af3f 100644 (file)
@@ -203,7 +203,6 @@ struct vega20_dpmlevel_enable_mask {
 };
 
 struct vega20_vbios_boot_state {
-       bool        bsoc_vddc_lock;
        uint8_t     uc_cooling_id;
        uint16_t    vddc;
        uint16_t    vddci;