]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/gart: Disable GART explicitly before initialization
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 7 Apr 2010 10:57:35 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:06 +0000 (07:48 -0700)
commitf78a4090514f62d2db8085d56721c11333cf2796
treebaac1c850cbb3356772a32fdf1458ce5af697250
parent151b026f22691dfb64247f9505a259405b6a1d04
x86/gart: Disable GART explicitly before initialization

commit 4b83873d3da0704987cb116833818ed96214ee29 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/aperture_64.c
arch/x86/kernel/pci-gart_64.c