drm/i915: Refine i915_reset.lock_map
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 07:09:46 +0000 (08:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 14:17:54 +0000 (15:17 +0100)
commit84383d2e8d7c50dc344a1acf7b5b4d32cd1569fc
tree51c31f27a597e67f2365cfee3dd2a7d2a1ca543c
parent6e4e9708614aaf743fd9eb29cc2738ab7b501c3f
drm/i915: Refine i915_reset.lock_map

We already use a mutex to serialise i915_reset() and wedging, so all we
need it to link that into i915_request_wait() and we have our lock cycle
detection.

v2.5: Take error mutex for selftests

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190614071023.17929-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c