diff options
author | Mika Kahola <mika.kahola@intel.com> | 2015-09-25 07:00:32 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-30 04:20:20 -0400 |
commit | 1170f28c0f7a450e1cb7f31ed2968e8be751b4fc (patch) | |
tree | 668ba7c681b55e842ee3b01cac8e6fa5900914ad | |
parent | 77179400cdf61f189fecb379e23347027b9ea68d (diff) |
drm/i915: Add CD and pixel clock information
This patch adds information of current and maximum CD clock
frequency and pixel clock frequency information on 'i915_debugfs.c'.
v2:
- combined seperate patches for current CD clock, maximum CD clock
and maximum pixel clock
- space added between the frequency value and the unit
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 7d88ecfe3e2b..afa79827f1f7 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -1309,6 +1309,10 @@ static int i915_frequency_info(struct seq_file *m, void *unused) | |||
1309 | seq_puts(m, "no P-state info available\n"); | 1309 | seq_puts(m, "no P-state info available\n"); |
1310 | } | 1310 | } |
1311 | 1311 | ||
1312 | seq_printf(m, "Current CD clock frequency: %d kHz\n", dev_priv->cdclk_freq); | ||
1313 | seq_printf(m, "Max CD clock frequency: %d kHz\n", dev_priv->max_cdclk_freq); | ||
1314 | seq_printf(m, "Max pixel clock frequency: %d kHz\n", dev_priv->max_dotclk_freq); | ||
1315 | |||
1312 | out: | 1316 | out: |
1313 | intel_runtime_pm_put(dev_priv); | 1317 | intel_runtime_pm_put(dev_priv); |
1314 | return ret; | 1318 | return ret; |