]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.
authorJacob Shin <jacob.shin@amd.com>
Thu, 20 Oct 2011 21:15:26 +0000 (16:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:02:11 +0000 (10:02 -0700)
commitbd7bca8d191425ff8ad7e0f3a30abdb652aff77f
treef3f9bee95c373f3d7b191d74c85a08fb7f4c6006
parent2f3dc85d233fce3345eb1880ec44349d7b290211
x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.

commit 1bbbbe779aabe1f0768c2bf8f8c0a5583679b54a upstream.

On systems with very large memory (1 TB in our case), BIOS may report a
reserved region or a hole in the E820 map, even above the 4 GB range. Exclude
these from the direct mapping.

[ hpa: this should be done not just for > 4 GB but for everything above the legacy
  region (1 MB), at the very least.  That, however, turns out to require significant
  restructuring.  That work is well underway, but is not suitable for rc/stable. ]

Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Link: http://lkml.kernel.org/r/1319145326-13902-1-git-send-email-jacob.shin@amd.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/setup.c