]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabd1bc4891368fc9b84e4cd40bb9854f00e8ab4d
tree51c31f27a597e67f2365cfee3dd2a7d2a1ca543c
parent439c1080b02d1df6602bc5c006100f7a42dc9f0f
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