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 Latest33 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33x86: Make e820_remove_range() to handle all covered casearch/x86/kernel/e820.c+20 -40 replies
2/33lmb: Move lmb.c to mm/lib/Makefile mm/Makefile mm/lmb.c+2 -20 replies
3/33lmb: Seperate region array from lmb_region structinclude/linux/lmb.h mm/lmb.c+10 -20 replies
4/33lmb: Seperate __lmb_find_base() from __lmb_alloc_base()mm/lmb.c+17 -40 replies
5/33lmb: Add lmb_find_area()include/linux/lmb.h mm/lmb.c+53 -00 replies
6/33lmb: Add lmb_reserve_area/lmb_free_areainclude/linux/lmb.h mm/lmb.c+70 -02 replies
7/33bootmem, 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
8/33lmb: Add lmb_to_bootmem()include/linux/lmb.h mm/lmb.c+34 -00 replies
9/33lmb: Add get_free_all_memory_range()include/linux/lmb.h mm/lmb.c+87 -10 replies
10/33lmb: Add lmb_register_active_regions() and lmb_hole_size()include/linux/lmb.h mm/lmb.c+72 -00 replies
11/33lmb: Prepare to include linux/lmb.h in core fileinclude/linux/lmb.h+3 -00 replies
12/33lmb: Add find_memory_core_early()include/linux/mm.h mm/page_alloc.c+31 -00 replies
13/33lmb: Add lmb_find_area_node()include/linux/lmb.h mm/lmb.c+16 -00 replies
14/33lmb: Add lmb_free_memory_size()include/linux/lmb.h mm/lmb.c+52 -00 replies
15/33lmb: Add lmb_memory_size()include/linux/lmb.h mm/lmb.c+18 -10 replies
16/33lmb: Add lmb_reserve_area_overlap_ok()include/linux/lmb.h mm/lmb.c+26 -20 replies
17/33lmb: Use lmb_debug to control debug message print outmm/lmb.c+21 -80 replies
18/33lmb: Add ARCH_DISCARD_LMB to put lmb code to .initinclude/linux/lmb.h mm/lmb.c+40 -220 replies
19/33x86: 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
20/33x86, lmb: Add lmb_find_area_size()arch/x86/mm/Makefile arch/x86/mm/lmb.c+90 -00 replies
21/33x86, lmb: Add x86 version of __lmb_find_area()arch/x86/Kconfig arch/x86/mm/lmb.c+65 -00 replies
22/33x86: Use lmb to replace early_resarch/x86/Kconfig arch/x86/include/asm/e820.h arch/x86/include/asm/lmb.h +13 more+124 -1890 replies
23/33x86: 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/33nobootmem: use lmb.default_alloc_limit in alloc_bootmem pathmm/page_alloc.c+3 -00 replies
25/33x86, lmb: turn off ARCH_LMB_FIND_AREAarch/x86/Kconfig+1 -12 replies
26/33x86: Remove not used early_res codearch/x86/include/asm/e820.h arch/x86/kernel/e820.c include/linux/early_res.h +1 more+0 -6630 replies
27/33x86, 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
28/33x86: Align e820 ram range to pagearch/x86/kernel/e820.c+44 -00 replies
29/33x86: 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
30/33x86: 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
31/33x86: Change e820_any_mapped() to __initarch/x86/kernel/e820.c+3 -30 replies
32/33x86: Use walk_system_ream_range() instead of referring e820.map directly for tbootarch/x86/kernel/tboot.c+9 -130 replies
33/33x86: make e820 to be __initdataarch/x86/include/asm/e820.h arch/x86/kernel/e820.c+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -v11 00/33] use lmb with x86

the new lmb could be used to early_res in x86.

Suggested by: David, Ben, and Thomas

First one 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
-v10:use lmb.rmo_size and ARCH_DISCARD_LMB according to Michael
change name to lmb_find_area/reserve_lmb_area/free_lmb_area,
according to Michael
update find_lmb_area to use __lmb_alloc_base according to ben
-v11:move find_lmb_area_size back to x86.
x86 has own find_lmb_area, and could be disabled by ARCH_LMB_FIND_AREA
because _lmb_find_base has different behavoir from x86's old one. one from high to high and one from low to high
need more test
tested for x86 32bit/64bit, numa/nonuma, nobootmem/bootmem.

still keep find_lmb_area, may replace those find_lmb_area will lmb_alloc, if everything go fine

Please consider to put them into tip to have more test coverage.

Thanks

Yinghai