diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-10-02 14:28:57 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-10-03 13:19:17 (GMT) |
commit | 3e15c35374305cea79ed73dec66143b569ee9204 (patch) | |
tree | b0eeb77ffc24bd72c060381ac21ccdb3f3336d92 /drivers | |
parent | 831b6966a60fe72d85ae3576056b4e4e0775b112 (diff) | |
download | linux-3e15c35374305cea79ed73dec66143b569ee9204.tar.xz |
drm/radeon/ci: add uvd/vce info to dpm debugfs output
Track whether UVD or VCE are enabled in debugfs.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/ci_dpm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c index d199be3..f5c8c04 100644 --- a/drivers/gpu/drm/radeon/ci_dpm.c +++ b/drivers/gpu/drm/radeon/ci_dpm.c @@ -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); } |