agp/intel-agp: Clear entire GTT on startup
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 2 Dec 2009 11:00:05 +0000 (11:00 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 7 Dec 2009 23:29:04 +0000 (15:29 -0800)
commitfc61901373987ad61851ed001fe971f3ee8d96a3
tree2711786140a63cbbbf7154ac1e5d2f1bc11e2b86
parentf2b115e69d46344ae7afcaad5823496d2a0d8650
agp/intel-agp: Clear entire GTT on startup

Some BIOSes fail to initialise the GTT, which will cause DMA faults when
the IOMMU is enabled. We need to clear the whole thing to point at the
scratch page, not just the part that Linux is going to use.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
[anholt: Note that this may also help with stability in the presence of
driver bugs, by not drawing to memory we don't own]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-agp.c