drm/i915: Extend rpm wakelock during i915_handle_error()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Mar 2017 17:18:40 +0000 (17:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Mar 2017 15:44:36 +0000 (15:44 +0000)
commit1604a86d08053f936e2820208ed952807fb4c4f0
tree45fbed47889ea33b6f7458e8e0c3706e7a69f4c7
parent16f11f46964fda7c1f8ee0cd137689abea142365
drm/i915: Extend rpm wakelock during i915_handle_error()

We take the runtime pm wakelock during i915_handle_error() to ensure
that all paths that reach the error handler keep the device awake during
the hw reads. However, we need to extend that from the reset handler to
include the earlier capture routines.

Reported-by: Antonio Argenziano <antonio.argenziano@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170314171840.25706-1-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
drivers/gpu/drm/i915/i915_irq.c