[PATCH 07/37] lmb: Add lmb_find_area()
it is a wrapper for lmb_find_base make it more easy for x86 to use lmb. ( rebase ) x86 early_res is using find/reserve pattern instead of alloc. keep it in weak version, so later We can use x86 own version if needed. also We need it in lib/lmb.c, so one called mm/page_alloc.c could get compiled -v2: Change n... 14 May 2010 16:07
[PATCH 13/37] x86, lmb: Add lmb_register_active_regions() and lmb_hole_size()
lmb_register_active_regions() will be used to fill early_node_map, the result will be lmb.memory.region AND numa data lmb_hole_size will be used to find hole size on lmb.memory.region with specified range. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/lmb.h | 4 ++ arch/x86/mm/l... 14 May 2010 16:07
[PATCH 37/37] x86: make e820 to be __initdata
Finally no user after init boot stage. We can free it to save some bytes. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/e820.h | 2 -- arch/x86/kernel/e820.c | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/inclu... 14 May 2010 16:07
[PATCH 26/37] lmb: Move __alloc_memory_core_early() to nobootmem.c
We can remove #ifdef in mm/page_alloc.c and change that function to static Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/mm.h | 2 -- mm/nobootmem.c | 21 +++++++++++++++++++++ mm/page_alloc.c | 24 ------------------------ 3 files changed, 21 insertions(+), 26 deletions(-) ... 14 May 2010 16:07
[PATCH -v17 00/37] Use lmb with x86
the new lmb could be used to replace early_res in x86. Suggested by: David, Ben, and Thomas -v6: change sequence as requested by Thomas -v7: seperate them to more patches -v8: add boundary checking to make sure not free partial page. -v9: use lmb_debug to control print out of reserve_lmb. add e820 clean ... 14 May 2010 16:07
[PATCH 01/37] lmb: lmb_find_base() should return LMB_ERROR on failing path
all callees assume it return LMB_ERROR when it fail to find a range Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- lib/lmb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index 2cd5aaa..0d4e4c0 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -154,7 +154,7 @@ ... 14 May 2010 16:07
[PATCH 09/37] bootmem, x86: Add weak version of reserve_bootmem_generic
It will be used lmb_to_bootmem converting It is an wrapper for reserve_bootmem, and x86 64bit is using special one. Also clean up that version for x86_64. We don't need to take care of numa path for that, bootmem can handle it how Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/mm/init_32.c | ... 14 May 2010 16:07
[PATCH 17/37] x86, lmb: Add lmb_memory_size()
It will return memory size in specified range according to lmb.memory.region Try to share some code with lmb_free_memory_size() by passing get_free to __lmb_memory_size(). Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/lmb.h | 1 + arch/x86/mm/lmb.c | 18 +++++++++++++++... 14 May 2010 16:07
[PATCH 10/37] x86, lmb: Add lmb_to_bootmem()
lmb_to_bootmem() will reserve lmb.reserved.region in bootmem after bootmem is set up. We can use it to with all arches that support lmb later. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/lmb.h | 1 + arch/x86/mm/lmb.c | 31 +++++++++++++++++++++++++++++++ 2 files ch... 14 May 2010 16:07
[PATCH 05/37] lmb: Prepare to include linux/lmb.h in core file
Need to add protection in linux/lmb.h, to prepare to include it in mm/page_alloc.c and mm/bootmem.c etc. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/lmb.h b/include/linux/lmb.h index d959d23..... 14 May 2010 16:07