drm/amd/powerplay: drop redundant soft min/max settings
authorEvan Quan <evan.quan@amd.com>
Wed, 20 Feb 2019 08:12:03 +0000 (16:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Feb 2019 03:19:17 +0000 (22:19 -0500)
As these are already set during apply_clocks_adjust_rules.

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

index fae95d9ebd7a828fd5817f4fb411fd1e3edf2824..8ca49c3cf6db61353e1c3968c2e242d76955a57e 100644 (file)
@@ -2314,32 +2314,8 @@ static int vega20_force_dpm_lowest(struct pp_hwmgr *hwmgr)
 
 static int vega20_unforce_dpm_levels(struct pp_hwmgr *hwmgr)
 {
-       struct vega20_hwmgr *data =
-                       (struct vega20_hwmgr *)(hwmgr->backend);
-       uint32_t soft_min_level, soft_max_level;
        int ret = 0;
 
-       soft_min_level = vega20_find_lowest_dpm_level(&(data->dpm_table.gfx_table));
-       soft_max_level = vega20_find_highest_dpm_level(&(data->dpm_table.gfx_table));
-       data->dpm_table.gfx_table.dpm_state.soft_min_level =
-               data->dpm_table.gfx_table.dpm_levels[soft_min_level].value;
-       data->dpm_table.gfx_table.dpm_state.soft_max_level =
-               data->dpm_table.gfx_table.dpm_levels[soft_max_level].value;
-
-       soft_min_level = vega20_find_lowest_dpm_level(&(data->dpm_table.mem_table));
-       soft_max_level = vega20_find_highest_dpm_level(&(data->dpm_table.mem_table));
-       data->dpm_table.mem_table.dpm_state.soft_min_level =
-               data->dpm_table.mem_table.dpm_levels[soft_min_level].value;
-       data->dpm_table.mem_table.dpm_state.soft_max_level =
-               data->dpm_table.mem_table.dpm_levels[soft_max_level].value;
-
-       soft_min_level = vega20_find_lowest_dpm_level(&(data->dpm_table.soc_table));
-       soft_max_level = vega20_find_highest_dpm_level(&(data->dpm_table.soc_table));
-       data->dpm_table.soc_table.dpm_state.soft_min_level =
-               data->dpm_table.soc_table.dpm_levels[soft_min_level].value;
-       data->dpm_table.soc_table.dpm_state.soft_max_level =
-               data->dpm_table.soc_table.dpm_levels[soft_max_level].value;
-
        ret = vega20_upload_dpm_min_level(hwmgr, 0xFFFFFFFF);
        PP_ASSERT_WITH_CODE(!ret,
                        "Failed to upload DPM Bootup Levels!",