]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only apply one barrier after a breadcrumb interrupt is posted
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:23 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 20:00:54 +0000 (21:00 +0100)
commit6a4b0f6eb807afdb5a6e8d86ad615070eee5a9f1
treecc05b709edc9aa5dee158b2a28631de5f8c35ae2
parent670eefb1b4f30cab684690f9c81fb4ce39680ffc
drm/i915: Only apply one barrier after a breadcrumb interrupt is posted

If we flag the seqno as potentially stale upon receiving an interrupt,
we can use that information to reduce the frequency that we apply the
heavyweight coherent seqno read (i.e. if we wake up a chain of waiters).

v2: Use cmpxchg to replace READ_ONCE/WRITE_ONCE for more explicit
control of the ordering wrt to interrupt generation and interrupt
checking in the bottom-half.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-14-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_ringbuffer.h