drm/amd/powerplay: show uvd/vce power gate enablement for tonga.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 1 Mar 2016 09:04:12 +0000 (17:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Mar 2016 16:02:12 +0000 (12:02 -0400)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c

index bc83fa35ec462b07376073b35b088622f565cf75..4f4833b14c48566e23ee0865b5066dfcdfddb194 100644 (file)
@@ -5170,7 +5170,6 @@ tonga_print_current_perforce_level(struct pp_hwmgr *hwmgr, struct seq_file *m)
        mclk = cgs_read_register(hwmgr->device, mmSMC_MSG_ARG_0);
        seq_printf(m, "\n [  mclk  ]: %u MHz\n\n [  sclk  ]: %u MHz\n", mclk/100, sclk/100);
 
-
        offset = data->soft_regs_start + offsetof(SMU72_SoftRegisters, AverageGraphicsActivity);
        activity_percent = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset);
        activity_percent += 0x80;
@@ -5178,6 +5177,9 @@ tonga_print_current_perforce_level(struct pp_hwmgr *hwmgr, struct seq_file *m)
 
        seq_printf(m, "\n [GPU load]: %u%%\n\n", activity_percent > 100 ? 100 : activity_percent);
 
+       seq_printf(m, "uvd    %sabled\n", data->uvd_power_gated ? "dis" : "en");
+
+       seq_printf(m, "vce    %sabled\n", data->vce_power_gated ? "dis" : "en");
 }
 
 static int tonga_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, const void *input)