drm/i915: add i915_lp_ring_sync helper
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Sep 2009 20:57:32 +0000 (22:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Dec 2009 11:05:32 +0000 (12:05 +0100)
commit6ed947d662a3c6ac75cf5978831047a75aaf7ceb
tree1064b340dc12b567ca1e4ea8b7f0b51fa99cc958
parent22763c5cf3690a681551162c15d34d935308c8d7
drm/i915: add i915_lp_ring_sync helper

This just waits until the hw passed the current ring position with
cmd execution. This slightly changes the existing i915_wait_request
function to make uninterruptible waiting possible - no point in
returning to userspace while mucking around with the overlay, that
piece of hw is just too fragile.

Also replace a magic 0 with the symbolic constant (and kill the then
superflous comment) while I was looking at the code.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
include/drm/drm_os_linux.h