drm/i915: Mark all current requests as complete before resetting them
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:21:10 +0000 (09:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:29:53 +0000 (09:29 +0100)
commitc4b0930bf418d5fab1d75ab462f0a7ff155f1b33
treec9f779e05baa867c738ef186f20a7ffaacb0974a
parent9b5f4e5ed6fd58390ecad3772b80936357f1aba6
drm/i915: Mark all current requests as complete before resetting them

Following a GPU reset upon hang, we retire all the requests and then
mark them all as complete. If we mark them as complete first, we both
keep the normal retirement order (completed first then retired) and
provide a small optimisation for concurrent lookups.

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