]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Detect a failed GPU reset+recovery
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jan 2017 15:59:06 +0000 (17:59 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Jan 2017 10:47:26 +0000 (10:47 +0000)
commitaf36d844076b7fcdec8d95e104d15639aad6229e
tree6c51af91668b6b356e3c3faead97ee8dd92d2239
parent82c3e96d826a7597a8fc300009ffa1c0f4c98c35
drm/i915: Detect a failed GPU reset+recovery

If we can't recover the GPU after the reset, mark it as wedged to cancel
the outstanding tasks and to prevent new users from trying to use the
broken GPU.

v2: Check the same ring is hung again before declaring the reset broken.
v3: use engine_stalled (Mika)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1484668747-9120-6-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c