summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorMika Kuoppala2016-01-08 14:51:20 +0100
committerMika Kuoppala2016-01-11 17:29:28 +0100
commitbc3b9346cd47148db8601fb425a4949902c475ec (patch)
tree062b822efd5f5a1dce40694477be9fc91f1bdfbf /drivers/gpu/drm/i915/i915_drv.c
parentdrm/i915: Enable mmio_debug for vlv/chv (diff)
downloadkernel-qcow2-linux-bc3b9346cd47148db8601fb425a4949902c475ec.tar.gz
kernel-qcow2-linux-bc3b9346cd47148db8601fb425a4949902c475ec.tar.xz
kernel-qcow2-linux-bc3b9346cd47148db8601fb425a4949902c475ec.zip
drm/i915: Arm the unclaimed mmio debugs on suspend path
If we go into suspend with unclaimed access detected, it would be nice to catch that access on a next suspend path. So instead of just notifying about it, arm the unclaimed mmio checks on suspend side. We want to keep the asymmetry on resume, as if it was on resume path, it was not driver that is responsible so no point in arming mmio debugs. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/1452261080-6979-2-git-send-email-mika.kuoppala@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 288fec7691dc..9de993d5fed2 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1502,7 +1502,7 @@ static int intel_runtime_suspend(struct device *device)
enable_rpm_wakeref_asserts(dev_priv);
WARN_ON_ONCE(atomic_read(&dev_priv->pm.wakeref_count));
- if (intel_uncore_unclaimed_mmio(dev_priv))
+ if (intel_uncore_arm_unclaimed_mmio_detection(dev_priv))
DRM_ERROR("Unclaimed access detected prior to suspending\n");
dev_priv->pm.suspended = true;