Skip to contentSkip to conversation

drm/i915: Add CD and pixel clock information

PATCH Superseded Mika Kahola 2 participants 6 messages Sep 24, 2015 – Sep 25, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover drm/i915: Add CD and pixel clock information

These patches add information of current and maximum CD clock frequency and pixel clock frequency information on 'i915_debugfs.c'.

Mika Kahola (3):
drm/i915: Add current CD clock frequency to debugfs drm/i915: Add max CD clock to debugfs drm/i915: Add max DOT clock frequency to debugfs

 drivers/gpu/drm/i915/i915_debugfs.c | 4 ++++
 1 file changed, 4 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/3 drm/i915: Add current CD clock frequency to debugfs

Add information on current CD clock frequency to
debugfs 'i915_frequency_info'

---
 drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +2 -0
index 5615d3d..674fefa 100644
@@ -1309,6 +1309,8 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 		seq_puts(m, "no P-state info available\n");
 	}
 
+	seq_printf(m, "Current CD clock freq: %dkHz\n", dev_priv->cdclk_freq);
+
 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
#2 lore raw

PATCH 2/3 drm/i915: Add max CD clock to debugfs

In reply to Mika Kahola

This adds information on maximum supported CD clock frequency to debugfs 'i915_frequency_info'

---
 drivers/gpu/drm/i915/i915_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
index 674fefa..6882455 100644
@@ -1310,6 +1310,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 	}
 
 	seq_printf(m, "Current CD clock freq: %dkHz\n", dev_priv->cdclk_freq);
+	seq_printf(m, "Max CD clock freq: %dkHz\n", dev_priv->max_cdclk_freq);
 
 out:
 	intel_runtime_pm_put(dev_priv);
Signature · 6 lines
1.9.1

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

PATCH 3/3 drm/i915: Add max DOT clock frequency to debugfs

In reply to Mika Kahola

Information on maximum supported pixel clock frequency to i915_frequency_info.

---
 drivers/gpu/drm/i915/i915_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
index 6882455..b418d9b 100644
@@ -1311,6 +1311,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 
 	seq_printf(m, "Current CD clock freq: %dkHz\n", dev_priv->cdclk_freq);
 	seq_printf(m, "Max CD clock freq: %dkHz\n", dev_priv->max_cdclk_freq);
+	seq_printf(m, "Max pixel clock freq: %dkHz\n", dev_priv->max_dotclk_freq);
 
 out:
 	intel_runtime_pm_put(dev_priv);
Signature · 6 lines
1.9.1

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

Re: [PATCH 3/3] drm/i915: Add max DOT clock frequency to debugfs

Quoted 13 lines · Mika Kahola

Information on maximum supported pixel clock frequency to i915_frequency_info.

---
 drivers/gpu/drm/i915/i915_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_debugfs.c +0 -0
index 6882455..b418d9b 100644

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

Quoted 4 lines
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -1311,6 +1311,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 
 	seq_printf(m, "Current CD clock freq: %dkHz\n", dev_priv->cdclk_freq);
 	seq_printf(m, "Max CD clock freq: %dkHz\n", dev_priv->max_cdclk_freq);
+	seq_printf(m, "Max pixel clock freq: %dkHz\n", dev_priv->max_dotclk_freq);

I would put a space between the number and units.

The rest of the stuff in there is about the gt stuff, so not sure if this is the best place for it. But if no one else objects, I won't either.

Could probably squash all three patches into just one, since they're all doing the same thing anyway.

With that these are:

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

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

Re: [PATCH 3/3] drm/i915: Add max DOT clock frequency to debugfs

Quoted 21 lines · Ville Syrjälä
Quoted 13 lines · Mika Kahola

Information on maximum supported pixel clock frequency to i915_frequency_info.

---
 drivers/gpu/drm/i915/i915_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_debugfs.c +0 -0
index 6882455..b418d9b 100644

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

Quoted 4 lines
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -1311,6 +1311,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)
 
 	seq_printf(m, "Current CD clock freq: %dkHz\n", dev_priv->cdclk_freq);
 	seq_printf(m, "Max CD clock freq: %dkHz\n", dev_priv->max_cdclk_freq);
+	seq_printf(m, "Max pixel clock freq: %dkHz\n", dev_priv->max_dotclk_freq);

I would put a space between the number and units.

Quoted 9 lines

The rest of the stuff in there is about the gt stuff, so not sure if this is the best place for it. But if no one else objects, I won't either.

Could probably squash all three patches into just one, since they're all doing the same thing anyway.

With that these are:

Thanks! These patches are leftovers from the CD clock and mode validity patch series. I'll combine all these three patches to one patch.

-Mika-

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

_______________________________________________
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