]> git.baikalelectronics.ru Git - kernel.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)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 7 Apr 2010 12:36:30 +0000 (14:36 +0200)
commit0402452bf2b4a70a38ec24ef962e7d1f22dcd64b
tree49ae6049ff73abdb9c11c1c46ef40b634f3deb62
parentbe0ff1ad374e839421f00f4e62651e6c4e976661
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>
arch/x86/kernel/aperture_64.c
arch/x86/kernel/pci-gart_64.c