]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30d38dfd9f9d4a635e533325dda77402429cb692
tree093957c23972628674a5da9a9876ff89d9bf8993
parentb840f4f7b87e621d70c6604ef5577c57f8dccae9
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