diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-07 12:57:35 +0200 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-07 14:36:30 +0200 |
commit | 4b83873d3da0704987cb116833818ed96214ee29 (patch) | |
tree | 49ae6049ff73abdb9c11c1c46ef40b634f3deb62 /arch/x86/kernel/pci-gart_64.c | |
parent | 39a37ce1cc5eef420604fa68b776ff5dab400340 (diff) | |
download | op-kernel-dev-4b83873d3da0704987cb116833818ed96214ee29.zip op-kernel-dev-4b83873d3da0704987cb116833818ed96214ee29.tar.gz |
x86/gart: Disable GART explicitly before initialization
If we boot into a crash-kernel the gart might still be
enabled and its caches might be dirty. This can result in
undefined behavior later. Fix it by explicitly disabling the
gart hardware before initialization and flushing the caches
after enablement.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/pci-gart_64.c')
-rw-r--r-- | arch/x86/kernel/pci-gart_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index f3af115..0ae24d9b 100644 --- a/arch/x86/kernel/pci-gart_64.c +++ b/arch/x86/kernel/pci-gart_64.c @@ -564,6 +564,9 @@ static void enable_gart_translations(void) enable_gart_translation(dev, __pa(agp_gatt_table)); } + + /* Flush the GART-TLB to remove stale entries */ + k8_flush_garts(); } /* |