OSDN Git Service

drm/i915: Do request retirement before marking engines as wedged
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Mar 2017 14:50:36 +0000 (15:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Mar 2017 16:56:21 +0000 (17:56 +0100)
commit2c170af76cd77258ff41d7270a281e23c386c649
tree46483792e32a9a83ef47140f52c3bf31886234d1
parent17ab792ab1c10019ecc6ed594b6a6aae4cb52f78
drm/i915: Do request retirement before marking engines as wedged

As we declare an engine as wedged, we mark all of its active requests as
in error. However, we don't want to mark successfully completed requests
as in error, which requires us to retire those requests first.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170330145041.9005-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c