]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow interrupts when taking the timeline->mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Jun 2019 10:36:10 +0000 (11:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Jun 2019 16:31:47 +0000 (17:31 +0100)
commitc2bdbb7e179efeb8d4678a03ec6d8735749871c4
tree1e78431937f4dda80935b7c2fe4efce3a4d5e68c
parenteb9edfa5f79244413a003bcf9a0d2ce5e48cbc77
drm/i915: Allow interrupts when taking the timeline->mutex

Before we commit ourselves to writing commands into the
ringbuffer and submitting the request, allow signals to interrupt
acquisition of the timeline mutex. We allow ourselves to be interrupted
at any time later if we need to block for space in the ring, anyway.

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/20190610103610.19883-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.h
drivers/gpu/drm/i915/i915_request.c