drm/i915/ringbuffer: Write the value passed in to the tail register
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Oct 2010 16:02:41 +0000 (17:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Oct 2010 16:57:43 +0000 (17:57 +0100)
commit297b0c5be3b6e08890cbd7149313408847e81715
tree0a7dd5febbe0904eed9424bc861c807dba76be95
parent85ccc35b7e4a5e7894570fe9b4e4b56d82fc3181
drm/i915/ringbuffer: Write the value passed in to the tail register

This should fix the error along the reset path were we tried to clear the
tail register by setting it to 0, but were in fact setting it to the
current value and complaining when it did not reset to 0.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h