[PATCH 03/22] lmb: Seperate __lmb_find_base() from __lmb_alloc_base()
So We can construct one generic __find_lmb_area() later -v2: Add LMB_ERROR according to Ben. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 1 + mm/lmb.c | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/include/linux/lmb.h... 8 May 2010 12:19
[PATCH 12/22] lmb: Add lmb_find_area_node()
It can be used to find NODE_DATA for numa. Need to make sure early_node_map[] is filled before it is called, otherwise it will fallback to lmb_find_area(), with node range. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 1 + mm/lmb.c | 15 +++++++++++++++ 2 files ch... 8 May 2010 12:18
[PATCH 01/22] lmb: Move lmb.c to mm/
lmb.c is memory related, so move it to mm/. It is suggested by Ingo Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> Acked-by: Benjamin Herrenschmidt <benh(a)kernel.crashing.org> --- lib/Makefile | 2 -- mm/Makefile | 2 ++ {lib => mm}/lmb.c | 0 3 files changed, 2 insertions(+), 2 deletions(-... 8 May 2010 12:18
[PATCH 07/22] 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> --- include/linux/lmb.h | 2 ++ mm/lmb.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 in... 8 May 2010 12:18
[PATCH -v14 00/22] 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 ... 8 May 2010 12:18
[PATCH 10/22] 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 85918a4..... 8 May 2010 12:18
[PATCH 19/22] x86, lmb: Add lmb_find_area_size()
size is returned according free range. Will be used to find free ranges for early_memtest and memory corruption check Do not mess it up with mm/lmb.c yet. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/mm/Makefile | 2 + arch/x86/mm/lmb.c | 88 ++++++++++++++++++++++++++++++++++++++++++++... 8 May 2010 12:18
[PATCH 13/22] lmb: Add lmb_free_memory_size()
It will return free memory size in specified range. We can not use memory_size - reserved_size here, because some reserved area may not be in the scope of lmb.memory.region. Use lmb.memory.region subtracting lmb.reserved.region to get free range array. then count size of all free ranges. Signed-off-by: Yingh... 8 May 2010 12:18
[PATCH 14/22] 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> --- include/linux/lmb.h | 1 + mm/lmb.c | 18 +++++++++++++++++- 2 files ... 8 May 2010 12:18
[PATCH 11/22] lmb: Add find_memory_core_early()
According to node range in early_node_map[] with __lmb_find_area to find free range. Will be used by lmb_find_area_node() lmb_find_area_node will be used to find right buffer for NODE_DATA Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/mm.h | 2 ++ mm/page_alloc.c | 29 ++++++++++... 8 May 2010 12:18