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)
commit7ec2c73b1dbe1cd83c52e4a386b2070331c5414c
tree0faada890779390eadda15dcc3d99952035a06a1
parentf8973c217f07903247d222ab92ad37e2529aff2e
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