]> git.karo-electronics.de Git - karo-tx-linux.git/commit
agp/intel-agp: Clear entire GTT on startup
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 2 Dec 2009 11:00:05 +0000 (11:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:53 +0000 (10:19 -0800)
commit5877960869333e42ebeb733e8d9d5630ff96d350
treeb7c79b337b7e99fb42a090264f69df3ce8cfc466
parent5deb72edb39542650c73e3fa7bf4a4a3ef14cc63
agp/intel-agp: Clear entire GTT on startup

commit fc61901373987ad61851ed001fe971f3ee8d96a3 upstream.

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>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/intel-agp.c