]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: fix trimming e820 with MTRR holes.
authorYinghai Lu <yhlu.kernel.send@gmail.com>
Tue, 29 Apr 2008 08:59:49 +0000 (01:59 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 08:55:09 +0000 (10:55 +0200)
commit42651f15824d003e8357693ab72c4dbb3e280836
tree1114071a407bfeb38edc12b7c822039641cd5c13
parent95ffa2438d0e9c48779f0106b1c0eb36165e759c
x86: fix trimming e820 with MTRR holes.

converting MTRR layout from continous to discrete, some time could run out of
MTRRs. So add gran_sizek to prevent that by dumpping small RAM piece less than
gran_sizek.

previous trimming only can handle highest_pfn from mtrr to end_pfn from e820.
when have more than 4g RAM installed, there will be holes below 4g. so need to
check ram below 4g is coverred well.

need to be applied after
[PATCH] x86: mtrr cleanup for converting continuous to discrete layout v7

Signed-off-by: Yinghai Lu <yinghai.lu@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/mtrr/main.c
arch/x86/kernel/e820_32.c
arch/x86/kernel/e820_64.c
include/asm-x86/e820_32.h
include/asm-x86/e820_64.h