diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-10-02 10:37:21 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-10-03 09:19:18 -0400 |
commit | 369283bfbd953a5d34c919746b3587737c0a47c8 (patch) | |
tree | 203617ce94b249d1c8f8cd5da257cc622d199741 | |
parent | 3e15c35374305cea79ed73dec66143b569ee9204 (diff) |
drm/radeon/kv: 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>
-rw-r--r-- | drivers/gpu/drm/radeon/kv_dpm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c index 8b58e11b64fa..7b129d2b44be 100644 --- a/drivers/gpu/drm/radeon/kv_dpm.c +++ b/drivers/gpu/drm/radeon/kv_dpm.c | |||
@@ -2773,6 +2773,8 @@ void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, | |||
2773 | tmp = (RREG32_SMC(SMU_VOLTAGE_STATUS) & SMU_VOLTAGE_CURRENT_LEVEL_MASK) >> | 2773 | tmp = (RREG32_SMC(SMU_VOLTAGE_STATUS) & SMU_VOLTAGE_CURRENT_LEVEL_MASK) >> |
2774 | SMU_VOLTAGE_CURRENT_LEVEL_SHIFT; | 2774 | SMU_VOLTAGE_CURRENT_LEVEL_SHIFT; |
2775 | vddc = kv_convert_8bit_index_to_voltage(rdev, (u16)tmp); | 2775 | vddc = kv_convert_8bit_index_to_voltage(rdev, (u16)tmp); |
2776 | seq_printf(m, "uvd %sabled\n", pi->uvd_power_gated ? "dis" : "en"); | ||
2777 | seq_printf(m, "vce %sabled\n", pi->vce_power_gated ? "dis" : "en"); | ||
2776 | seq_printf(m, "power level %d sclk: %u vddc: %u\n", | 2778 | seq_printf(m, "power level %d sclk: %u vddc: %u\n", |
2777 | current_index, sclk, vddc); | 2779 | current_index, sclk, vddc); |
2778 | } | 2780 | } |