]> err.no Git - linux-2.6/commit
x86: early memtest to find bad ram
authorYinghai Lu <yhlu.kernel.send@gmail.com>
Fri, 21 Mar 2008 06:58:33 +0000 (23:58 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:19 +0000 (17:41 +0200)
commit272b9cad6e7a2f61b13cfcd7dde0010e02e9376e
treece0983f52c1a34e1b048a766812dc17607655748
parenta5ae1c372dc5bbaee905bcede524d7180d22b362
x86: early memtest to find bad ram

do simple memtest after init_memory_mapping

use find_e820_area_size to find all ram range that is not reserved.

and do some simple bits test to find some bad ram.

if find some bad ram, use reserve_early to exclude that range.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820_64.c
arch/x86/mm/init_64.c
include/asm-x86/e820_64.h