Skip to content

Commit

Permalink
drm/radeon/ci: add uvd/vce info to dpm debugfs output
Browse files Browse the repository at this point in the history
Track whether UVD or VCE are enabled in debugfs.

Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
alexdeucher committed Oct 3, 2014
1 parent 831b696 commit 3e15c35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/radeon/ci_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3e15c35

Please sign in to comment.