drm/i915: Arm the unclaimed mmio debugs on suspend path
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 8 Jan 2016 13:51:20 +0000 (15:51 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Mon, 11 Jan 2016 16:29:28 +0000 (18:29 +0200)
commitbc3b9346cd47148db8601fb425a4949902c475ec
tree062b822efd5f5a1dce40694477be9fc91f1bdfbf
parent9c053501b950cf4dcea3dbbcd42da65e376acce6
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
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c