drm/i915: Use LRI to update the semaphore registers
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 14 Nov 2012 09:15:14 +0000 (09:15 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:45:00 +0000 (17:45 +0100)
commit1c8b46fc8c865189f562c9ab163d63863759712f
tree8551738a17ff37e124518741ca261aae818498f4
parentae6935ddda178f6d2b327cd9bf09add133315f15
drm/i915: Use LRI to update the semaphore registers

The bspec was recently updated to remove the ability to update the
semaphore using the MI_SEMAPHORE_BOX command, the ability to wait upon
the semaphore value remained. Instead the advice is to update the
register using the MI_LOAD_REGISTER_IMM command. In cursory testing,
semaphores continue to function - the question is whether this fixes
some of the deadlocks where the semaphore registers contained stale
values?

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel J Blueman <daniel@quora.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c