[PATCH 17/37] x86, lmb: Add lmb_memory_in_range()
It will return memory size in specified range according to lmb.memory.region Try to share some code with lmb_free_memory_in_range() by passing get_free to __lmb_memory_in_range(). -v2: Ben want _in_range in the name instead of size Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/lmb... 16 Jun 2010 02:22
[PATCH 03/37] lmb: Print new doubled array location info
so will have more idea where it is, use lmb_debug to controll it Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- lib/lmb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index bbdb1ec..7a6e11a 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -192,8 +192,6 @... 16 Jun 2010 02:22
[PATCH 27/37] x86: Have nobootmem version setup_bootmem_allocator()
We can reduce #ifdef number from 3 to one in init_32.c Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/mm/init_32.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index e3ae067..f172aa3 100644 --- a/arch/x86/mm... 16 Jun 2010 02:22
[PATCH 19/37] x86, lmb: Add x86 version of lmb_find_in_range()
Generic version is going from high to low, and it seems it can not find right area compact enough. the x86 version will go from goal to limit and just like the way We used for early_res use ARCH_FIND_LMB_AREA to select from them. -v2: default to no Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arc... 16 Jun 2010 02:22
[PATCH 18/37] x86, lmb: Use lmb_debug to control debug message print out
Also let lmb_reserve_range/lmb_free_range could print out name if lmb=debug is specified will also print ther name when reserve_lmb_area/free_lmb_area are called. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/mm/lmb.c | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletio... 16 Jun 2010 02:22
[PATCH -v18 00/37] Use lmb with x86
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 up, ... 16 Jun 2010 02:22
[PATCH 25/37] mm: move contig_page_data define to bootmem.c/nobootmem.c
We can remove #ifdef in mm/page_alloc.c Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- mm/bootmem.c | 7 +++++++ mm/nobootmem.c | 5 +++++ mm/page_alloc.c | 9 --------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index 2741c34..ff55ad7 100644... 16 Jun 2010 02:22
[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... 16 Jun 2010 02:22
[PATCH 15/37] x86, lmb: Add lmb_find_in_range_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_in_range(), with node range. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/lmb.h | 1 + arch/x86/mm/lmb.c | 15 ++++++++++... 16 Jun 2010 02:22
[PATCH 28/37] x86: Put 64 bit numa node memmap above 16M
Do not use 0x8000 hard code value anymore. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/mm/numa_64.c | 2 +- arch/x86/mm/srat_64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 92c01a5..93a1e07 100644 --- a/a... 16 Jun 2010 02:22