Skip to contentSkip to conversation

drm/i915: add back checking for i915_disable_power_well

PATCH Applied Imre Deak 3 participants 3 messages Oct 29, 2013 – Oct 31, 2013

Subsystems (2)
lore
Share & tools
lore

Imre Deak

author
#0 lore raw

PATCH 1/1 drm/i915: add back checking for i915_disable_power_well

In

commit 6efdf354ddb186c6604d1692075421e8d2c740e9

Author: Imre Deak <[email protected]>
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.

---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +1 -1
index a0c907f..09ac9e7 100644
@@ -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);
 }
 
Signature · 1 line
1.8.4
Reviewed-by on v1 1/1
#1 lore raw

2013/10/29 Imre Deak <[email protected]>:

Quoted 11 lines

In

commit 6efdf354ddb186c6604d1692075421e8d2c740e9

Author: Imre Deak <[email protected]>
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.

Quoted 24 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +1 -2
index a0c907f..09ac9e7 100644
@@ -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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 1 line
Paulo Zanoni
#2 lore raw
Quoted 7 lines · Paulo Zanoni

2013/10/29 Imre Deak <[email protected]>:

Quoted 6 lines

In

commit 6efdf354ddb186c6604d1692075421e8d2c740e9

Author: Imre Deak <[email protected]>
Date:   Wed Oct 16 17:25:52 2013 +0300
Quoted 7 lines
Quoted 5 lines

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

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch