]> git.baikalelectronics.ru Git - kernel.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)
committerEric Anholt <eric@anholt.net>
Mon, 7 Dec 2009 23:29:04 +0000 (15:29 -0800)
commitb8e9a7d2f8045d737137bbe14b67fc9db35fa5de
tree2711786140a63cbbbf7154ac1e5d2f1bc11e2b86
parentc9fe905368a6a4d8c034494033cac32b203e0a75
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