drm/i915: Finish the wait-for-wedge by retiring all the inflight requests
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Mar 2018 13:42:21 +0000 (13:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Mar 2018 14:13:25 +0000 (14:13 +0000)
commit2d4ecace3a7861c6071235a6cc88067b8c3eec4a
treebbab4d8671dfe9d78f10a34088f3cae997dd7196
parent1e6aa7e55c28ecd842b8b4599e4273c2429ee061
drm/i915: Finish the wait-for-wedge by retiring all the inflight requests

Before we reset the GPU after marking the device as wedged, we wait for
all the remaining requests to be completed (and marked as EIO).
Afterwards, we should flush the request lists so the next batch start
with the driver in an idle state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180307134226.25492-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c