]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/breadcrumbs: Assert that we do not shortcut the current bottom-half
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Mar 2017 21:07:25 +0000 (21:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Mar 2017 21:45:40 +0000 (21:45 +0000)
commit303e6d073078f7cf74ce609b4b30f37d00d6b704
treeec8f41b8b5c3eed6cdb804863f003a51ebd8926e
parentafc0b44f688467aeaefb60a58b1dec90f791a7d4
drm/i915/breadcrumbs: Assert that we do not shortcut the current bottom-half

We need to ensure that we always serialize updates to the bottom-half
using the breadcrumbs.irq_lock so that we don't race with a concurrent
interrupt handler. This is most important just prior to leaving the
waiter (when the intel_wait will be overwritten), so make sure we are
not the current bottom-half when skipping the irq locks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170315210726.12095-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c