Skip to content

use lmb with x86

Yinghai Lu linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest31 patches 41 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31x86: Make smp_locks end with page alignmentarch/x86/kernel/vmlinux.lds.S+1 -11 reply
2/31x86: Make sure free_init_pages() free pages in boundaryarch/x86/kernel/head32.c arch/x86/kernel/head64.c arch/x86/kernel/setup.c +1 more+36 -123 replies
3/31x86: Do not free zero sized per cpu areaskernel/early_res.c+6 -01 reply
4/31lmb: Move lmb.c to mm/lib/Makefile mm/Makefile mm/lmb.c+2 -20 replies
5/31lmb: Seperate region array from lmb_region structinclude/linux/lmb.h mm/lmb.c+10 -20 replies
6/31lmb: Add find_lmb_area()include/linux/lmb.h mm/lmb.c+85 -00 replies
7/31lmb: Add reserve_lmb/free_lmbinclude/linux/lmb.h mm/lmb.c+93 -020 replies
8/31lmb: Add find_lmb_area_size()include/linux/lmb.h mm/lmb.c+81 -00 replies
9/31bootmem, x86: Add weak version of reserve_bootmem_genericarch/x86/mm/init_32.c arch/x86/mm/init_64.c mm/bootmem.c+8 -240 replies
10/31lmb: Add lmb_to_bootmem()include/linux/lmb.h mm/lmb.c+34 -00 replies
11/31lmb: Add get_free_all_memory_range()include/linux/lmb.h mm/lmb.c+87 -10 replies
12/31lmb: Add lmb_register_active_regions() and lmb_hole_size()include/linux/lmb.h mm/lmb.c+72 -00 replies
13/31lmb: Prepare to include linux/lmb.h in core fileinclude/linux/lmb.h+3 -00 replies
14/31lmb: Add find_memory_core_early()include/linux/mm.h mm/page_alloc.c+31 -00 replies
15/31lmb: Add find_lmb_area_node()include/linux/lmb.h mm/lmb.c+16 -00 replies
16/31lmb: Add lmb_free_memory_size()include/linux/lmb.h mm/lmb.c+52 -00 replies
17/31lmb: Add lmb_memory_size()include/linux/lmb.h mm/lmb.c+18 -10 replies
18/31lmb: Add reserve_lmb_overlap_ok()include/linux/lmb.h mm/lmb.c+26 -20 replies
19/31lmb: Use lmb_debug to control debug message print outmm/lmb.c+21 -80 replies
20/31lmb: Add __NOT_KEEP_LMB to put lmb code to .initinclude/linux/lmb.h mm/lmb.c+40 -226 replies
21/31x86: Add sanitize_e820_map()arch/x86/include/asm/e820.h arch/x86/kernel/e820.c arch/x86/kernel/efi.c +2 more+27 -200 replies
22/31x86: Use lmb to replace early_resarch/x86/Kconfig arch/x86/include/asm/e820.h arch/x86/include/asm/lmb.h +13 more+111 -1810 replies
23/31x86: Replace e820_/_early string with lmb_arch/x86/include/asm/efi.h arch/x86/kernel/acpi/sleep.c arch/x86/kernel/apic/numaq_32.c +17 more+87 -750 replies
24/31x86: Remove not used early_res codearch/x86/include/asm/e820.h arch/x86/kernel/e820.c include/linux/early_res.h +1 more+0 -6620 replies
25/31x86, lmb: Use lmb_memory_size()/lmb_free_memory_size() to get correct dma_reservearch/x86/include/asm/e820.h arch/x86/kernel/e820.c arch/x86/kernel/setup.c +1 more+20 -70 replies
26/31x86: Align e820 ram range to pagearch/x86/kernel/e820.c+44 -00 replies
27/31x86: Use wake_system_ram_range instead of e820_any_mapped in agp patharch/x86/include/asm/gart.h arch/x86/kernel/aperture_64.c drivers/char/agp/amd64-agp.c+60 -230 replies
28/31x86: Add get_centaur_ram_top()arch/x86/include/asm/e820.h arch/x86/kernel/cpu/centaur.c arch/x86/kernel/e820.c +1 more+69 -510 replies
29/31x86: Make e820_any_mapped to __initarch/x86/kernel/e820.c+3 -30 replies
30/31x86: Use walk_system_ream_range()instead of e820.map directlyarch/x86/kernel/tboot.c+9 -130 replies
31/31x86: make e820 to be __initdataarch/x86/include/asm/e820.h arch/x86/kernel/e820.c+1 -30 replies

Reviews trailers per patch

3 of 31 patches have a Reviewed-by or Acked-by.

PatchJohannes WeinerStanislaw GruszkaKonrad Rzeszutek WilkJoel Becker
1/31A-b A-b
2/31A-b A-b T-b T-b
3/31A-b A-b T-b T-b T-b T-b T-b T-b
4/31
5/31
6/31
7/31
8/31
9/31
10/31
11/31
12/31
13/31
14/31
15/31
16/31
17/31
18/31
19/31
20/31
21/31
22/31
23/31
24/31
25/31
26/31
27/31
28/31
29/31
30/31
31/31

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH -v9 00/31] 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. -v9: use lmb_debug to control print out of reserve_lmb.
add e820 clean up, and e820 become __initdata

Quoted 1 line

size vmlinux.*

text data bss dec hex filename
20195694 4149812 12627536 36973042 23429f2 vmlinux.before_lmb_patchset
20198187 4163892 12614736 36976815 23438af vmlinux.after_lmb_patchset

Before:

[   12.124431] Freeing unused kernel memory: 2740k freed
After:
[   11.514822] Freeing unused kernel memory: 2764k freed

So We move about 24k to .init

Please check

Thanks

Yinghai