x86, mm: Set memblock initial limit to 1M
authorYinghai Lu <[email protected]>
Sat, 17 Nov 2012 03:38:46 +0000 (19:38 -0800)
committerH. Peter Anvin <[email protected]>
Sat, 17 Nov 2012 19:59:07 +0000 (11:59 -0800)
memblock_x86_fill() could double memory array.
If we set memblock.current_limit to 512M, so memory array could be around 512M.
So kdump will not get big range (like 512M) under 1024M.

Try to put it down under 1M, it would use about 4k or so, and that is limited.

Signed-off-by: Yinghai Lu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/kernel/setup.c

index 23b079fb93fc0e237438aed52b3a1b46e8ab33b8..4bd89218cbc3799613ccaf8316f1cbb87fa86103 100644 (file)
@@ -890,7 +890,7 @@ void __init setup_arch(char **cmdline_p)
 
        cleanup_highmap();
 
-       memblock.current_limit = get_max_mapped();
+       memblock.current_limit = ISA_END_ADDRESS;
        memblock_x86_fill();
 
        /*