]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Clear execlist port[] before updating seqno on wedging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jul 2017 12:32:25 +0000 (13:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:38:45 +0000 (09:38 +0200)
commit5e32d7482ee20738d3474151f365b0a522fba463
treef688fa0305bdd3e6a7d967403f63732266f3ca91
parentd6edb6e3b63faae5cd96993e0977d3807bd87be6
drm/i915: Clear execlist port[] before updating seqno on wedging

When we wedge the device, we clear out the in-flight requests and
advance the breadcrumb to indicate they are complete. However, the
breadcrumb advance includes an assert that the engine is idle, so that
advancement needs to be the last step to ensure we pass our own sanity
checks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170721123238.16428-7-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c