Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: add back checking for i915_disable_power_well
@ 2013-10-29 17:09 Imre Deak
  2013-10-31 15:37 ` Paulo Zanoni
  0 siblings, 1 reply; 3+ messages in thread
From: Imre Deak @ 2013-10-29 17:09 UTC (permalink / raw)
  To: intel-gfx

In

commit 6efdf354ddb186c6604d1692075421e8d2c740e9
Author: Imre Deak <imre.deak@intel.com>
Date:   Wed Oct 16 17:25:52 2013 +0300

the check for i915_disable_power_well flag was removed by overlook,
so add it back now.

Reported-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index a0c907f..09ac9e7 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -5599,7 +5599,7 @@ static void __intel_power_well_put(struct drm_device *dev,
 				   struct i915_power_well *power_well)
 {
 	WARN_ON(!power_well->count);
-	if (!--power_well->count)
+	if (!--power_well->count && i915_disable_power_well)
 		__intel_set_power_well(dev, false);
 }
 
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: add back checking for i915_disable_power_well
  2013-10-29 17:09 [PATCH] drm/i915: add back checking for i915_disable_power_well Imre Deak
@ 2013-10-31 15:37 ` Paulo Zanoni
  2013-10-31 16:27   ` Daniel Vetter
  0 siblings, 1 reply; 3+ messages in thread
From: Paulo Zanoni @ 2013-10-31 15:37 UTC (permalink / raw)
  To: Imre Deak; +Cc: Intel Graphics Development

2013/10/29 Imre Deak <imre.deak@intel.com>:
> In
>
> commit 6efdf354ddb186c6604d1692075421e8d2c740e9
> Author: Imre Deak <imre.deak@intel.com>
> Date:   Wed Oct 16 17:25:52 2013 +0300
>
> the check for i915_disable_power_well flag was removed by overlook,
> so add it back now.
>
> Reported-by: Paulo Zanoni <paulo.zanoni@intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index a0c907f..09ac9e7 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -5599,7 +5599,7 @@ static void __intel_power_well_put(struct drm_device *dev,
>                                    struct i915_power_well *power_well)
>  {
>         WARN_ON(!power_well->count);
> -       if (!--power_well->count)
> +       if (!--power_well->count && i915_disable_power_well)
>                 __intel_set_power_well(dev, false);
>  }
>
> --
> 1.8.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: add back checking for i915_disable_power_well
  2013-10-31 15:37 ` Paulo Zanoni
@ 2013-10-31 16:27   ` Daniel Vetter
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2013-10-31 16:27 UTC (permalink / raw)
  To: Paulo Zanoni; +Cc: Intel Graphics Development

On Thu, Oct 31, 2013 at 01:37:26PM -0200, Paulo Zanoni wrote:
> 2013/10/29 Imre Deak <imre.deak@intel.com>:
> > In
> >
> > commit 6efdf354ddb186c6604d1692075421e8d2c740e9
> > Author: Imre Deak <imre.deak@intel.com>
> > Date:   Wed Oct 16 17:25:52 2013 +0300
> >
> > the check for i915_disable_power_well flag was removed by overlook,
> > so add it back now.
> >
> > Reported-by: Paulo Zanoni <paulo.zanoni@intel.com>
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> 
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-31 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 17:09 [PATCH] drm/i915: add back checking for i915_disable_power_well Imre Deak
2013-10-31 15:37 ` Paulo Zanoni
2013-10-31 16:27   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox