x86/gart: Disable GART explicitly before initialization
commit13739d986b5e4f8f9518617b03ae5b95b0781ce3
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 7 Apr 2010 10:57:35 +0000 (7 12:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:38 +0000 (26 07:41 -0700)
tree0ddb093f60862c49c562963dcc75f889785f5dab
parent3b2fc24246311090639173836e551b8a670f4b4b
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