]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Cache GT fifo count for SandyBridge
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 May 2011 21:17:09 +0000 (22:17 +0100)
committerKeith Packard <keithp@keithp.com>
Wed, 13 Jul 2011 18:28:07 +0000 (11:28 -0700)
commit95736720fc866eadb2ce1789631b907c0f38cb7c
tree5071fe60b3cdd5951e351e1565121287aa17675a
parentf5a3d0c4086d1854cbda545092c462b84cba20ce
drm/i915: Cache GT fifo count for SandyBridge

The read back of the available FIFO entries is vital for system
stability, but extremely costly. However, we only need a guide so as to
avoid eating into the reserved entries and since we are the only
consumer we can cache the read of the count from the last write.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h