diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-03-01 04:04:12 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-17 12:02:12 -0400 |
commit | d27d49410ea6452679c533d812704de6b9f76021 (patch) | |
tree | 12c54820555487f4490e18870630918aabf9ea92 | |
parent | 66f4854c347b96c9fca3d9ce3eaabc6567e84006 (diff) |
drm/amd/powerplay: show uvd/vce power gate enablement for tonga.
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/tonga_hwmgr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c index bc83fa35ec46..4f4833b14c48 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | |||
@@ -5170,7 +5170,6 @@ tonga_print_current_perforce_level(struct pp_hwmgr *hwmgr, struct seq_file *m) | |||
5170 | mclk = cgs_read_register(hwmgr->device, mmSMC_MSG_ARG_0); | 5170 | mclk = cgs_read_register(hwmgr->device, mmSMC_MSG_ARG_0); |
5171 | seq_printf(m, "\n [ mclk ]: %u MHz\n\n [ sclk ]: %u MHz\n", mclk/100, sclk/100); | 5171 | seq_printf(m, "\n [ mclk ]: %u MHz\n\n [ sclk ]: %u MHz\n", mclk/100, sclk/100); |
5172 | 5172 | ||
5173 | |||
5174 | offset = data->soft_regs_start + offsetof(SMU72_SoftRegisters, AverageGraphicsActivity); | 5173 | offset = data->soft_regs_start + offsetof(SMU72_SoftRegisters, AverageGraphicsActivity); |
5175 | activity_percent = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset); | 5174 | activity_percent = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset); |
5176 | activity_percent += 0x80; | 5175 | activity_percent += 0x80; |
@@ -5178,6 +5177,9 @@ tonga_print_current_perforce_level(struct pp_hwmgr *hwmgr, struct seq_file *m) | |||
5178 | 5177 | ||
5179 | seq_printf(m, "\n [GPU load]: %u%%\n\n", activity_percent > 100 ? 100 : activity_percent); | 5178 | seq_printf(m, "\n [GPU load]: %u%%\n\n", activity_percent > 100 ? 100 : activity_percent); |
5180 | 5179 | ||
5180 | seq_printf(m, "uvd %sabled\n", data->uvd_power_gated ? "dis" : "en"); | ||
5181 | |||
5182 | seq_printf(m, "vce %sabled\n", data->vce_power_gated ? "dis" : "en"); | ||
5181 | } | 5183 | } |
5182 | 5184 | ||
5183 | static int tonga_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, const void *input) | 5185 | static int tonga_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, const void *input) |