drm/i915: Make pc8_status report status for all runtime PM platforms
Subsystems (2)
PATCH 1/2 drm/i915: Make pc8_status report status for all runtime PM platforms
--- drivers/gpu/drm/i915/i915_debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +3 -3
@@ -2479,13 +2479,13 @@ static int i915_energy_uJ(struct seq_file *m, void *data)return 0 ; } -static int i915_pc8_status (struct seq_file *m,void *unused) +static int i915_runtime_pm_status (struct seq_file *m,void *unused) {struct drm_info_node *node = m->private;struct drm_device *dev = node->minor->dev;struct drm_i915_private *dev_priv = dev->dev_private; -if (!IS_HASWELL (dev) && !IS_BROADWELL (dev)) { +if (!HAS_RUNTIME_PM (dev)) {seq_puts (m,"not supported\n" );return 0 ; }
@@ -5066,7 +5066,7 @@ static const struct drm_info_list i915_debugfs_list[] = { {"i915_edp_psr_status", i915_edp_psr_status, 0}, {"i915_sink_crc_eDP1", i915_sink_crc, 0}, {"i915_energy_uJ", i915_energy_uJ, 0}, - {"i915_pc8_status", i915_pc8_status, 0}, + {"i915_runtime_pm_status", i915_runtime_pm_status, 0}, {"i915_power_domain_info", i915_power_domain_info, 0}, {"i915_display_info", i915_display_info, 0}, {"i915_semaphore_status", i915_semaphore_status, 0},
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +2 -0
@@ -2493,6 +2493,8 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)seq_printf (m,"GPU idle: %s\n" ,yesno (!dev_priv->mm.busy));seq_printf (m,"IRQs disabled: %s\n" ,yesno (!intel_irqs_enabled (dev_priv))); +seq_printf (m,"Usage count: %d\n" , +atomic_read (&dev->dev->power.usage_count));return 0 ; }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-04 14:23 GMT-03:00 Damien Lespiau <[email protected]>:
Quoted 1 line
Signed-off-by Damien Lespiau <[email protected]>
For both patches: Reviewed-by: Paulo Zanoni <[email protected]>
Quoted 24 lines
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/i915_debugfs.c +2
-1@@ -2493,6 +2493,8 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)seq_printf (m,"GPU idle: %s\n" ,yesno (!dev_priv->mm.busy));seq_printf (m,"IRQs disabled: %s\n" ,yesno (!intel_irqs_enabled (dev_priv))); +seq_printf (m,"Usage count: %d\n" , +atomic_read (&dev->dev->power.usage_count));return 0 ; } --2.1.0
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Paulo Zanoni _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
Quoted 4 lines · Paulo Zanoni
2015-06-04 14:23 GMT-03:00 Damien Lespiau <[email protected]>:
Quoted 1 line
Signed-off-by Damien Lespiau <[email protected]>For both patches: Reviewed-by: Paulo Zanoni <[email protected]>
Pushed to drm-intel-next-queued, thanks for the patches and review.
BR,
Jani.
Quoted 34 lines
Quoted 25 lines
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/i915_debugfs.c +2
-1@@ -2493,6 +2493,8 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)seq_printf (m,"GPU idle: %s\n" ,yesno (!dev_priv->mm.busy));seq_printf (m,"IRQs disabled: %s\n" ,yesno (!intel_irqs_enabled (dev_priv))); +seq_printf (m,"Usage count: %d\n" , +atomic_read (&dev->dev->power.usage_count));return 0 ; } --2.1.0
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 5 lines
Paulo Zanoni _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
In reply to Damien LespiauTask id: 6540 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV -1 270/270 269/270
ILK 303/303 303/303 SNB 312/312 312/312 IVB 343/343 343/343 BYT 287/287 287/287 BDW 318/318 318/318
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
*PNV igt@gem_tiled_pread_pwrite PASS(1) FAIL(1)
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
Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
In reply to Damien LespiauQuoted 10 lines · Damien Lespiau
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/i915_debugfs.c +0
-0
drivers/gpu/drm/i915/i915_debugfs.c static int i915_runtime_pm_status(struct seq_file *m, void *unused) · line 2497
Quoted 5 lines
drivers/gpu/drm/i915/i915_debugfs.c +2
-0@@ -2493,6 +2493,8 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)seq_printf (m,"GPU idle: %s\n" ,yesno (!dev_priv->mm.busy));seq_printf (m,"IRQs disabled: %s\n" ,yesno (!intel_irqs_enabled (dev_priv))); +seq_printf (m,"Usage count: %d\n" , +atomic_read (&dev->dev->power.usage_count));
Needs a check for CONFIG_PM. Since I pulled in what Jani merged as a merge commit, can you please do a follow-up patch?
Thanks, Daniel
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
Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
Quoted 6 lines · Daniel Vetter
Quoted 5 lines · Damien Lespiau
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
drivers/gpu/drm/i915/i915_debugfs.c static int i915_runtime_pm_status(struct seq_file *m, void *unused) · line 2497
Quoted 10 lines
drivers/gpu/drm/i915/i915_debugfs.c +2
-0@@ -2493,6 +2493,8 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)seq_printf (m,"GPU idle: %s\n" ,yesno (!dev_priv->mm.busy));seq_printf (m,"IRQs disabled: %s\n" ,yesno (!intel_irqs_enabled (dev_priv))); +seq_printf (m,"Usage count: %d\n" , +atomic_read (&dev->dev->power.usage_count));Needs a check for
CONFIG_PM. Since I pulled in what Jani merged as a merge commit, can you please do a follow-up patch?
Ooops indeed, Chris just sent one.
Signature · 5 lines
Damien _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx