drm/radeon/ci: add uvd/vce info to dpm debugfs output
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Oct 2014 14:28:57 +0000 (10:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Oct 2014 13:19:17 +0000 (09:19 -0400)
Track whether UVD or VCE are enabled in debugfs.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ci_dpm.c

index d199be32d5dc5134c6b3ec834b1af5f30d6b8adc..f5c8c0445a94bd1b75a48c38be49a09301e8674b 100644 (file)
@@ -5267,9 +5267,13 @@ int ci_dpm_init(struct radeon_device *rdev)
 void ci_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev,
                                                    struct seq_file *m)
 {
+       struct ci_power_info *pi = ci_get_pi(rdev);
+       struct radeon_ps *rps = &pi->current_rps;
        u32 sclk = ci_get_average_sclk_freq(rdev);
        u32 mclk = ci_get_average_mclk_freq(rdev);
 
+       seq_printf(m, "uvd    %sabled\n", pi->uvd_enabled ? "en" : "dis");
+       seq_printf(m, "vce    %sabled\n", rps->vce_active ? "en" : "dis");
        seq_printf(m, "power level avg    sclk: %u mclk: %u\n",
                   sclk, mclk);
 }