drm/i915: Apply a big hammer to 865 GEM object CPU cache flushing.
commitcfa16a0de5392c54db553ec2233a7110e4b4da7a
authorEric Anholt <eric@anholt.net>
Wed, 27 May 2009 01:46:16 +0000 (26 18:46 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 27 May 2009 02:11:33 +0000 (26 19:11 -0700)
treedece86a45e71828827ef597b1bd3363149a6d655
parente76a16deb8785317a23cca7204331af053e0fb4e
drm/i915: Apply a big hammer to 865 GEM object CPU cache flushing.

On the 865, but not the 855, the clflush we do appears to not actually make
it out to the hardware all the time.  An easy way to safely reproduce was
X -retro, which would show that some of the blits involved in drawing the
lovely root weave didn't make it out to the hardware.  Those blits are 32
bytes each, and 1-2 would be missing at various points around the screen.
Other experimentation (doing more clflush, doing more AGP chipset flush,
poking at some more device registers to maybe trigger more flushing) didn't
help.  krh came up with the wbinvd as a way to successfully get all those
blits to appear.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c