drm/i915: Move engine reset preparation to i915_gem_reset_prepare()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jan 2017 15:59:01 +0000 (17:59 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Jan 2017 10:44:20 +0000 (10:44 +0000)
commit4c9655436522eaf4ba35572851150ccb71f3866e
tree093957c23972628674a5da9a9876ff89d9bf8993
parent77affa31722be7c584b4b1be792423079e64a47d
drm/i915: Move engine reset preparation to i915_gem_reset_prepare()

Now that we have prepare/finish routines for the GEM reset, move the
disabling of the engine->irq_tasklet into them to reduce repetition. The
device irq enable/disable is split out to ensure it is run first and
last always (even if the GPU reset fails).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1484668747-9120-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c