* [PATCH 1/2] drm/i915: Make pc8_status report status for all runtime PM platforms
@ 2015-06-04 17:23 Damien Lespiau
2015-06-04 17:23 ` [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status Damien Lespiau
0 siblings, 1 reply; 7+ messages in thread
From: Damien Lespiau @ 2015-06-04 17:23 UTC (permalink / raw)
To: intel-gfx
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/i915_debugfs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 47636f3..d8bd4e1 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -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},
--
2.1.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-04 17:23 [PATCH 1/2] drm/i915: Make pc8_status report status for all runtime PM platforms Damien Lespiau
@ 2015-06-04 17:23 ` Damien Lespiau
2015-06-05 12:24 ` Paulo Zanoni
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Damien Lespiau @ 2015-06-04 17:23 UTC (permalink / raw)
To: intel-gfx
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index d8bd4e1..92cf273 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -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
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-04 17:23 ` [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status Damien Lespiau
@ 2015-06-05 12:24 ` Paulo Zanoni
2015-06-10 13:56 ` Jani Nikula
2015-06-05 18:38 ` shuang.he
2015-06-15 12:44 ` Daniel Vetter
2 siblings, 1 reply; 7+ messages in thread
From: Paulo Zanoni @ 2015-06-05 12:24 UTC (permalink / raw)
To: Damien Lespiau; +Cc: Intel Graphics Development
2015-06-04 14:23 GMT-03:00 Damien Lespiau <damien.lespiau@intel.com>:
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
For both patches: Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
> ---
> drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index d8bd4e1..92cf273 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -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
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Paulo Zanoni
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-04 17:23 ` [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status Damien Lespiau
2015-06-05 12:24 ` Paulo Zanoni
@ 2015-06-05 18:38 ` shuang.he
2015-06-15 12:44 ` Daniel Vetter
2 siblings, 0 replies; 7+ messages in thread
From: shuang.he @ 2015-06-05 18:38 UTC (permalink / raw)
To: shuang.he, lei.a.liu, intel-gfx, damien.lespiau
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task 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
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-05 12:24 ` Paulo Zanoni
@ 2015-06-10 13:56 ` Jani Nikula
0 siblings, 0 replies; 7+ messages in thread
From: Jani Nikula @ 2015-06-10 13:56 UTC (permalink / raw)
To: Paulo Zanoni, Damien Lespiau; +Cc: Intel Graphics Development
On Fri, 05 Jun 2015, Paulo Zanoni <przanoni@gmail.com> wrote:
> 2015-06-04 14:23 GMT-03:00 Damien Lespiau <damien.lespiau@intel.com>:
>> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
>
> For both patches: Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Pushed to drm-intel-next-queued, thanks for the patches and review.
BR,
Jani.
>
>> ---
>> drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
>> index d8bd4e1..92cf273 100644
>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>> @@ -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
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
>
>
> --
> Paulo Zanoni
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-04 17:23 ` [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status Damien Lespiau
2015-06-05 12:24 ` Paulo Zanoni
2015-06-05 18:38 ` shuang.he
@ 2015-06-15 12:44 ` Daniel Vetter
2015-06-15 12:56 ` Damien Lespiau
2 siblings, 1 reply; 7+ messages in thread
From: Daniel Vetter @ 2015-06-15 12:44 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Thu, Jun 04, 2015 at 06:23:58PM +0100, Damien Lespiau wrote:
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index d8bd4e1..92cf273 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -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
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status
2015-06-15 12:44 ` Daniel Vetter
@ 2015-06-15 12:56 ` Damien Lespiau
0 siblings, 0 replies; 7+ messages in thread
From: Damien Lespiau @ 2015-06-15 12:56 UTC (permalink / raw)
To: Daniel Vetter; +Cc: intel-gfx
On Mon, Jun 15, 2015 at 02:44:05PM +0200, Daniel Vetter wrote:
> On Thu, Jun 04, 2015 at 06:23:58PM +0100, Damien Lespiau wrote:
> > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> > ---
> > drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> > index d8bd4e1..92cf273 100644
> > --- a/drivers/gpu/drm/i915/i915_debugfs.c
> > +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> > @@ -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.
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-15 12:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04 17:23 [PATCH 1/2] drm/i915: Make pc8_status report status for all runtime PM platforms Damien Lespiau
2015-06-04 17:23 ` [PATCH 2/2] drm/i915: Add runtime PM's usage_count in i915_runtime_pm_status Damien Lespiau
2015-06-05 12:24 ` Paulo Zanoni
2015-06-10 13:56 ` Jani Nikula
2015-06-05 18:38 ` shuang.he
2015-06-15 12:44 ` Daniel Vetter
2015-06-15 12:56 ` Damien Lespiau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.