]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] i386/x86-64: Check that MCFG points to an e820 reserved area
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 7 Apr 2006 17:49:30 +0000 (19:49 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 9 Apr 2006 18:53:51 +0000 (11:53 -0700)
commit946f2ee5c7312e8acac4f3ab6629e7e2d36a3646
tree0821a2f3f59a089b73d33f64f59331460e20355a
parent952223683ec989e86328c24808fdb962c4dbeb0a
[PATCH] i386/x86-64: Check that MCFG points to an e820 reserved area

This patch introduces a user for the e820_all_mapped function:

There have been several machines that don't have a working MMCONFIG,
often because of a buggy MCFG table in the ACPI bios.  This patch adds a
simple sanity check that detects a whole bunch of these cases, and when
it detects it, linux now boots rather than crash-and-burns.

The accuracy of this detection can in principle be improved if there was
a "is this entire range in e820 with THIS attribute", but no such
function exist and the complexity needed for this is not really worth
it; this simple check already catches most cases anyway.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/pci/mmconfig.c
arch/x86_64/pci/mmconfig.c