drm/i915/ringbuffer: Handle wrapping of the autoreported HEAD
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Dec 2010 12:56:37 +0000 (12:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Dec 2010 12:53:19 +0000 (12:53 +0000)
If the tail advances beyond the autoreport HEAD value, then we need to
fallback to an uncached read of the HEAD register in order to ascertain
the correct amount of remaining space in the ringbuffer.

Reported-by: Fang, Xun <xunx.fang@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32259
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

No differences found