agp/intel: Flush the chipset write buffers when changing GTT base
commitc97689d8860f086125e7ff9cd730027a0057ca4f
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Dec 2010 10:40:38 +0000 (23 10:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 20:35:41 +0000 (11 20:35 +0000)
tree019ab7330af6c975ffba0d7016e0ed6243fbf6b0
parent55249baaa5cd188ebd9acdb047eeaed8092e4a93
agp/intel: Flush the chipset write buffers when changing GTT base

Flush the chipset write buffers before and after adjusting the GTT base
register, just in case. We only modify this value upon initialisation
(boot and resume) so there should be no outstanding writes, however
there are always those persistent PGTBL_ER that keep getting reported
upon resume.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-agp.h
drivers/char/agp/intel-gtt.c