]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Disable submission tasklet upon wedging
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 08:03:30 +0000 (09:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 10:25:54 +0000 (11:25 +0100)
commit5aea961c950eb054348fc1fd11ae489a9f075058
tree01b1822ff82e54ee50a3e63b8f70c7b58335db3d
parentcf229171e93c8c45e334f7a1d254455188a20d15
drm/i915/execlists: Disable submission tasklet upon wedging

If we declare the driver wedged before the GPU truly is, then we may see
the GPU complete some CS events following our cancellation. This leaves
us quite confused as we deleted all the bookkeeping and thus complain
about the inconsistent state.

We can just ignore the remaining events and let the GPU idle by not
feeding it, and so avoid trying to racily overwrite shared state. We
rely on there being a full GPU reset before unwedging, giving us the
opportunity to reset the shared state.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107188
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180716080332.32283-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c