aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-06-08 07:42:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-06-21 10:22:40 -0400
commit9a3c1b342be28a14006f644528dd9baad43db443 (patch)
tree2912bafa538afb84a447790c1eeced428feb4f7a
parent40787ef21c2889fc3d96a11775fa412e715d7d48 (diff)
drm/amd/powrplay: enable stutter_mode for polaris.
To minimize the dram power expenditure during static -screen Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
index 5ecde13e4893..c2f5bec272c4 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
@@ -1296,7 +1296,6 @@ static int polaris10_populate_single_memory_level(struct pp_hwmgr *hwmgr,
1296 } 1296 }
1297 1297
1298 mem_level->MclkFrequency = clock; 1298 mem_level->MclkFrequency = clock;
1299 mem_level->StutterEnable = 0;
1300 mem_level->EnabledForThrottle = 1; 1299 mem_level->EnabledForThrottle = 1;
1301 mem_level->EnabledForActivity = 0; 1300 mem_level->EnabledForActivity = 0;
1302 mem_level->UpHyst = 0; 1301 mem_level->UpHyst = 0;
@@ -1363,7 +1362,7 @@ static int polaris10_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
1363 * a higher state by default such that we are not effected by 1362 * a higher state by default such that we are not effected by
1364 * up threshold or and MCLK DPM latency. 1363 * up threshold or and MCLK DPM latency.
1365 */ 1364 */
1366 levels[0].ActivityLevel = (uint16_t)data->mclk_dpm0_activity_target; 1365 levels[0].ActivityLevel = 0x1f;
1367 CONVERT_FROM_HOST_TO_SMC_US(levels[0].ActivityLevel); 1366 CONVERT_FROM_HOST_TO_SMC_US(levels[0].ActivityLevel);
1368 1367
1369 data->smc_state_table.MemoryDpmLevelCount = 1368 data->smc_state_table.MemoryDpmLevelCount =
@@ -2951,6 +2950,7 @@ int polaris10_hwmgr_backend_init(struct pp_hwmgr *hwmgr)
2951 data->enable_tdc_limit_feature = true; 2950 data->enable_tdc_limit_feature = true;
2952 data->enable_pkg_pwr_tracking_feature = true; 2951 data->enable_pkg_pwr_tracking_feature = true;
2953 data->force_pcie_gen = PP_PCIEGenInvalid; 2952 data->force_pcie_gen = PP_PCIEGenInvalid;
2953 data->mclk_stutter_mode_threshold = 40000;
2954 2954
2955 if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr, 2955 if (atomctrl_is_voltage_controled_by_gpio_v3(hwmgr,
2956 VOLTAGE_TYPE_VDDC, VOLTAGE_OBJ_SVID2)) 2956 VOLTAGE_TYPE_VDDC, VOLTAGE_OBJ_SVID2))