Skip to content

Commit

Permalink
drm/radeon/kv: 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 3e15c35 commit 369283b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/radeon/kv_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,8 @@ void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev,
tmp = (RREG32_SMC(SMU_VOLTAGE_STATUS) & SMU_VOLTAGE_CURRENT_LEVEL_MASK) >>
SMU_VOLTAGE_CURRENT_LEVEL_SHIFT;
vddc = kv_convert_8bit_index_to_voltage(rdev, (u16)tmp);
seq_printf(m, "uvd %sabled\n", pi->uvd_power_gated ? "dis" : "en");
seq_printf(m, "vce %sabled\n", pi->vce_power_gated ? "dis" : "en");
seq_printf(m, "power level %d sclk: %u vddc: %u\n",
current_index, sclk, vddc);
}
Expand Down

0 comments on commit 369283b

Please sign in to comment.