]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42947be163f42027d88702a90760161d65e1d99a
treebbab4d8671dfe9d78f10a34088f3cae997dd7196
parent61cf2079f4c43afe4dab65c181564af675702d26
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