Skip to contentSkip to conversation

drm/i915: CD clock frequency to debugfs

PATCH New Mika Kahola 3 participants 5 messages Apr 24, 2015 – May 5, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: CD clock frequency to debugfs

This patch adds information on current CD clock
frequency to debugfs 'i915_frequency_info'.

Mika Kahola (1):
drm/i915: CD clock frequency on debugfs

 drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 1/1 drm/i915: CD clock frequency to debugfs

This patch adds information on current CD clock
frequency to debugfs i915_frequency_info

---
 drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +3 -0
index 9c2b9e4..18c7531 100644
@@ -1266,6 +1266,9 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 		seq_puts(m, "no P-state info available\n");
 	}
 
+	seq_printf(m, "CD clock freq: %dkHz\n",
+		   dev_priv->display.get_display_clock_speed(dev));
+
 out:
 	intel_runtime_pm_put(dev_priv);
 	return ret;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by on v1 1/1
#2 lore raw

Task id: 6259 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied

PNV                                  276/276              276/276
ILK                                  302/302              302/302
SNB                                  318/318              318/318
IVB                                  341/341              341/341
BYT                                  287/287              287/287
BDW                                  318/318              318/318

-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Mika Kahola
Quoted 13 lines · Mika Kahola

This patch adds information on current CD clock
frequency to debugfs i915_frequency_info

---
 drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +0 -0
index 9c2b9e4..18c7531 100644

drivers/gpu/drm/i915/i915_debugfs.c static int i915_frequency_info(struct seq_file *m, void *unused) · line 1270

Quoted 5 lines
drivers/gpu/drm/i915/i915_debugfs.c +2 -0
@@ -1266,6 +1266,9 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 		seq_puts(m, "no P-state info available\n");
 	}
 
+	seq_printf(m, "CD clock freq: %dkHz\n",
+		   dev_priv->display.get_display_clock_speed(dev));

Shouldn't we also dump the computed/requested cdclk in dev_priv->cdclk_freq while at it? Seems useful enough otherwise. -Daniel

Quoted 11 lines
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
+
 out:
 	intel_runtime_pm_put(dev_priv);
 	return ret;
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 17 lines · Daniel Vetter
Quoted 16 lines · Mika Kahola

This patch adds information on current CD clock
frequency to debugfs i915_frequency_info

---
 drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +0 -0
index 9c2b9e4..18c7531 100644
@@ -1266,6 +1266,9 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 		seq_puts(m, "no P-state info available\n");
 	}
 
Quoted 6 lines

drivers/gpu/drm/i915/i915_debugfs.c static int i915_frequency_info(struct seq_file *m, void *unused) · line 1270

Quoted 2 lines
drivers/gpu/drm/i915/i915_debugfs.c +2 -0
+	seq_printf(m, "CD clock freq: %dkHz\n",
+		   dev_priv->display.get_display_clock_speed(dev));

Shouldn't we also dump the computed/requested cdclk in dev_priv->cdclk_freq while at it? Seems useful enough otherwise. -Daniel

Yes, that would be useful information. I'll throw a patch that covers these clocks as well.

-Mika-

Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
+
 out:
 	intel_runtime_pm_put(dev_priv);
 	return ret;
Signature · 1 line
1.9.1
Quoted 5 lines
Quoted 4 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx