drm/i915: Don't wait for a spinlock inside error capture
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Sep 2016 07:38:44 +0000 (08:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Sep 2016 08:25:03 +0000 (09:25 +0100)
commit19eb9189c55715b8e15401fb6d862c5766724220
treebce1e31258c233915d5205647fdde91ddbf7fd3a
parentfc32de9358c0a7b6f7c4639a3a8056b10a9b7669
drm/i915: Don't wait for a spinlock inside error capture

If we can't grab the breadcrumb's spinlock, possibly due to a driver
deadlock inside the waiters, ignore them. Like hangcheck, error
capturing must work no matter how the driver/GPU dies.

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