[Intel-gfx] [PATCH 2/3] drm/i915: Bring UP Power Wells before disabling RC6.
deepak.s at intel.com
deepak.s at intel.com
Sun Dec 8 09:22:46 CET 2013
From: Deepak S <deepak.s at intel.com>
Instead of waiting for HW to bringup the wells, We force the wells up
before disabling RC6. This is to avoid any register access when wells
are down.
Signed-off-by: Deepak S <deepak.s at intel.com>
---
drivers/gpu/drm/i915/intel_pm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 2e1340f..089712a 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3661,6 +3661,12 @@ static void gen6_disable_rps(struct drm_device *dev)
static void valleyview_disable_rps(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
+ unsigned long irqflags;
+
+ /* We need to bring up the wells before disabling the RC6 */
+ spin_lock_irqsave(&dev_priv->uncore.lock, irqflags);
+ dev_priv->uncore.funcs.force_wake_get(dev_priv, FORCEWAKE_ALL);
+ spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags);
I915_WRITE(GEN6_RC_CONTROL, 0);
--
1.8.4.2
More information about the Intel-gfx
mailing list