[PATCH -v8 00/24] use lmb with x86
the new lmb could be used to early_res in x86. Suggested by: David, Ben, and Thomas First three patches should go into 2.6.34 -v6: change sequence as requested by Thomas -v7: seperate them to more patches -v8: add boundary checking to make sure not free partial page. Please check them. Thanks Yingha... 26 Mar 2010 19:12
[PATCH 03/24] x86: Do not free zero sized per cpu areas
From: Ian Campbell <ian.campbell(a)citrix.com> This avoids an infinite loop in free_early_partial(). Add a warning to free_early_partial to catch future problems. -v5: put back start > end back into WARN_ONCE() -v6: use one line for warning according to linus -v7: more test by Signed-off-by: Ian Campbell <i... 26 Mar 2010 19:12
[PATCH 05/24] lmb: Seperate region array from lmb_region struct
lmb_init() will connect them back. Add nr_regions in struct lmb_region to track region array size. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 3 ++- mm/lmb.c | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/linux/lmb.h b/i... 26 Mar 2010 19:12
[PATCH 01/24] x86: Make smp_locks end with page alignment
Try to fix ------------[ cut here ]------------ WARNING: at arch/x86/mm/init.c:342 free_init_pages+0x4c/0xfa() free_init_pages: range [0x40daf000, 0x40db5c24] is not aligned Modules linked in: Pid: 0, comm: swapper Not tainted 2.6.34-rc2-tip-03946-g4f16b23-dirty #50 Call Trace: [<40232e9f>] warn_slowpath_common... 26 Mar 2010 19:12
[PATCH 14/24] lmb: Add find_memory_core_early()
According to node range in early_node_map[] with __find_lmb_area to find free range. Will be used by find_lmb_area_node() find_lmb_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 ++++++++++... 26 Mar 2010 19:12
[PATCH 10/24] lmb: Add lmb_to_bootmem()
lmb_to_bootmem() will reserve lmb.reserved.region in bootmem We can use it to with all arches that support lmb. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 2 ++ mm/lmb.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 0 deletions(-) d... 26 Mar 2010 19:12
[PATCH 13/24] 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 6568e9d..1... 26 Mar 2010 19:12
[PATCH 24/24] x86: Align e820 ram range to page
to workaround wrong BIOS map. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/kernel/e820.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index e0257b8..89b8bf9 100644 --- a/arch... 26 Mar 2010 19:12
[PATCH 17/24] 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 ... 26 Mar 2010 19:12
pciregions_read_proc() function results. [corrected]
I've implemented the pciregions_read_proc code as a debugging tool for video cards and I'm not sure if the output is correct I've listed the results below, are the results valid (typical of expected values)??? card1: BFG 7300 GS region 0: mask 0xFF000000, now at 0xA4000000 region 0: type mem, size 16777216 (... 26 Mar 2010 19:12