lmb: Move __alloc_memory_core_early() to nobootmem.c
On Thu, 2010-05-13 at 17:19 -0700, Yinghai Lu wrote: We can remove #ifdef in mm/page_alloc.c and change that function to static Don't forget that nid allocation using your early_node_map[] will not work properly on sparc due to the scattered nature of page locality. Cheers, Ben. Signed-off-by: Yi... 13 May 2010 22:41
x86, lmb: Add lmb_reserve_area_overlap_ok()
On Thu, 2010-05-13 at 17:19 -0700, Yinghai Lu wrote: Some areas from firmware could be reserved several times from different callers. If these area are overlapped, We may have overlapped entries in lmb.reserved. Try to free the area at first, before rerserve them again. I have already told you to ma... 17 May 2010 19:07
ftrace syscalls: Allow arch specific syscall symbol matching
Excerpts from Benjamin Herrenschmidt's message of Fri May 14 09:54:56 +1000 2010: On Thu, 2010-05-13 at 17:43 +1000, Ian Munsie wrote: From: Ian Munsie <imunsie(a)au1.ibm.com> Some architectures have unusual symbol names and the generic code to match the symbol name with the function name for the ... 13 May 2010 22:40
[PATCH] radix-tree: fix radix_tree_prev_hole underflow case
radix_tree_prev_hole() used LONG_MAX to detect underflow; however, ULONG_MAX is clearly what was intended, both here and by its only user (count_history_pages at mm/readahead.c). Cc: Wu Fengguang <fengguang.wu(a)intel.com> Signed-off-by: Cesar Eduardo Barros <cesarb(a)cesarb.net> --- lib/radix-tree.c | 4 ++-- ... 13 May 2010 22:40
[PATCH 27/35] swiotlb: Use page alignment for early buffer allocation
for 2.6.34 We could call free_bootmem_late() if swiotlb is not used, and it will shrink to page alignement. So alloc them with page alignment at first, to avoid lose two pages before patch: [ 0.000000] lmb_reserve_area: [00d3600000, 00d7600000] swiotlb buffer [ 0.000000] lmb_reserve_area: [0... 13 May 2010 21:35
[PATCH 04/35] 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. -v2: Change name to lmb_find_area() according to Michael Ellerman -v3: Add generic weak version __lmb_find_area() so keep the path for fallback to x86 version th... 13 May 2010 21:35
[PATCH 14/35] 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 +++++++++++++++... 13 May 2010 21:35
[PATCH 26/35] 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 18d2296..b8438ac 100644 --- a/a... 13 May 2010 21:35
[PATCH 34/35] x86: Use walk_system_ream_range() instead of referring e820.map directly for tboot
So we can make e820 to be __initdata Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/kernel/tboot.c | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c index c2f1b26..20b9531 100644 --- a/arch/x86/kernel/... 13 May 2010 21:35
[PATCH 16/35] x86, lmb: Use lmb_debug to control debug message print out
Also let lmb_reserve_area/lmb_free_area 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 | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletio... 13 May 2010 21:35