[Intel-gfx] [PATCH 6/7] drm/i915: Add unclaimed mmio check to runtime pm get/put

Mika Kuoppala mika.kuoppala at linux.intel.com
Tue Dec 15 06:25:11 PST 2015


This is a natural boundary to peek if our power domain
management is accurate.

Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
 drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 2c2151f..5eea177 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -2230,6 +2230,7 @@ void intel_runtime_pm_get(struct drm_i915_private *dev_priv)
 		return;
 
 	pm_runtime_get_sync(device);
+	WARN_ON(intel_uncore_arm_unclaimed_mmio_detection(dev_priv));
 	WARN(dev_priv->pm.suspended, "Device still suspended.\n");
 }
 
@@ -2275,6 +2276,8 @@ void intel_runtime_pm_put(struct drm_i915_private *dev_priv)
 	struct drm_device *dev = dev_priv->dev;
 	struct device *device = &dev->pdev->dev;
 
+	WARN_ON(intel_uncore_arm_unclaimed_mmio_detection(dev_priv));
+
 	if (!HAS_RUNTIME_PM(dev))
 		return;
 
-- 
2.5.0



More information about the Intel-gfx mailing list