]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check the CPU cached value in HWS of seqno after waking the waiter
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:22 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 20:00:54 +0000 (21:00 +0100)
commit35794757b32079533e4936c4933b496133626086
tree0faada890779390eadda15dcc3d99952035a06a1
parenteec1947e4fd34a091880c7c89f2e8d7f262d6aa6
drm/i915: Check the CPU cached value in HWS of seqno after waking the waiter

If we have multiple waiters, we may find that many complete on the same
wake up. If we first inspect the seqno from the CPU cache, we may reduce
the number of heavyweight coherent seqno reads we require.

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-13-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h