]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Move the breadcrumb to the signaler if completed upon cancel
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Nov 2020 14:04:07 +0000 (14:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Nov 2020 18:35:17 +0000 (18:35 +0000)
commitb9286fcba7a77685565eafca29bc5f5b73fedb18
tree9477d572738c0bc2ed022e3dee6e0b275201ff81
parent83bdda158d546ca0f56e75df44f05307d65035a3
drm/i915/gt: Move the breadcrumb to the signaler if completed upon cancel

If while we are cancelling the breadcrumb signaling, we find that the
request is already completed, move it to the irq signaler and let it be
signaled.

v2: Tweak reference counting so that we only acquire a new reference on
adding to a signal list, as opposed to a hidden i915_request_put of the
caller's reference.

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/20201126140407.31952-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c