drm/i915: Consolidate reset_request()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 17:22:42 +0000 (17:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 20:49:29 +0000 (20:49 +0000)
commit2edc6e0df1c15c0cc665a8aa61dcf2c540e90a70
treeaafc3297fd9b5363ea80c83ff0cf1a7b49138b87
parent246ee524a2846fc0f32b8ac9d846bc93e38851e8
drm/i915: Consolidate reset_request()

Always reset the requests of the guilty context, including the hung
request that we tell the hardware to skip. This should help if the
reprogram fails entirely, but more importantly makes the guilty path
more uniform (and simplifies the subsequent patch to tweak the cancelled
requests).

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