9b48341752
Fix checks that failed to realize that values are 4-kB-unit-sized (note the format strings in this same diff context which *do* realize the unit size, via appended "000"!). Also fix an incorrect below-1MB area check (as gathered from Jan Beulich's unapplied patch at http://www.ussg.iu.edu/hypermail/linux/kernel/0411.1/1378.html ) Update mtrr_add_page() docu to make 4-kB-sized calculation more obvious. Given several further items mentioned in Jan's patch mail, all in all MTRR code seems surprisingly buggy, for a surprisingly long period of time (many years). Further work/investigation would be useful. TBD Note that my patch is pretty much UNTESTED, since I can only verify that it TBD successfully boots my machine, but I cannot test against actual buggy TBD hardware which would require these (formerly broken) checks. Long -mm TBD simmering would make sense, especially since these now-working checks might TBD turn out to have adverse effects on unaffected hardware. Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Andi Kleen <ak@suse.de> Acked-by: Jan Beulich <jbeulich@novell.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> |
||
---|---|---|
.. | ||
acpi | ||
cpu | ||
.gitignore | ||
alternative.c | ||
apic.c | ||
apm.c | ||
asm-offsets.c | ||
bootflag.c | ||
cpuid.c | ||
crash_dump.c | ||
crash.c | ||
doublefault.c | ||
early_printk.c | ||
efi_stub.S | ||
efi.c | ||
entry.S | ||
head.S | ||
hpet.c | ||
i386_ksyms.c | ||
i387.c | ||
i8237.c | ||
i8253.c | ||
i8259.c | ||
init_task.c | ||
io_apic.c | ||
ioport.c | ||
irq.c | ||
kprobes.c | ||
ldt.c | ||
machine_kexec.c | ||
Makefile | ||
mca.c | ||
microcode.c | ||
module.c | ||
mpparse.c | ||
msr.c | ||
nmi.c | ||
numaq.c | ||
pci-dma.c | ||
process.c | ||
ptrace.c | ||
quirks.c | ||
reboot_fixups.c | ||
reboot.c | ||
relocate_kernel.S | ||
scx200.c | ||
setup.c | ||
sigframe.h | ||
signal.c | ||
smp.c | ||
smpboot.c | ||
srat.c | ||
summit.c | ||
sys_i386.c | ||
syscall_table.S | ||
sysenter.c | ||
time_hpet.c | ||
time.c | ||
topology.c | ||
trampoline.S | ||
traps.c | ||
tsc.c | ||
vm86.c | ||
vmlinux.lds.S | ||
vsyscall-int80.S | ||
vsyscall-note.S | ||
vsyscall-sigreturn.S | ||
vsyscall-sysenter.S | ||
vsyscall.lds.S | ||
vsyscall.S |