Skip to content

use lmb with x86

Yinghai Lu linux-arch lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29x86: Make e820_remove_range to handle all covered casearch/x86/kernel/e820.c+20 -40 replies
2/29lmb: Move lmb.c to mm/lib/Makefile mm/Makefile mm/lmb.c+2 -20 replies
3/29lmb: Seperate region array from lmb_region structinclude/linux/lmb.h mm/lmb.c+10 -20 replies
4/29lmb: Add lmb_find_area()include/linux/lmb.h mm/lmb.c+70 -40 replies
5/29lmb: Add lmb_reserve_area/lmb_free_areainclude/linux/lmb.h mm/lmb.c+70 -00 replies
6/29bootmem, 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
7/29lmb: Add lmb_to_bootmem()include/linux/lmb.h mm/lmb.c+34 -00 replies
8/29lmb: Add get_free_all_memory_range()include/linux/lmb.h mm/lmb.c+88 -10 replies
9/29lmb: Add lmb_register_active_regions() and lmb_hole_size()include/linux/lmb.h mm/lmb.c+72 -00 replies
10/29lmb: Prepare to include linux/lmb.h in core fileinclude/linux/lmb.h+3 -00 replies
11/29lmb: Add find_memory_core_early()include/linux/mm.h mm/page_alloc.c+31 -00 replies
12/29lmb: Add lmb_find_area_node()include/linux/lmb.h mm/lmb.c+16 -00 replies
13/29lmb: Add lmb_free_memory_size()include/linux/lmb.h mm/lmb.c+52 -00 replies
14/29lmb: Add lmb_memory_size()include/linux/lmb.h mm/lmb.c+18 -10 replies
15/29lmb: Add lmb_reserve_area_overlap_ok()include/linux/lmb.h mm/lmb.c+26 -20 replies
16/29lmb: Use lmb_debug to control debug message print outmm/lmb.c+21 -80 replies
17/29lmb: Add ARCH_DISCARD_LMB to put lmb code to .initinclude/linux/lmb.h mm/lmb.c+40 -220 replies
18/29x86: 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
19/29lmb: Add lmb_find_area_size()arch/x86/mm/Makefile arch/x86/mm/lmb.c+90 -00 replies
20/29x86: 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
21/29x86: 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
22/29x86: 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
23/29x86, 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
24/29x86: Align e820 ram range to pagearch/x86/kernel/e820.c+44 -00 replies
25/29x86: 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
26/29x86: 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
27/29x86: Make e820_any_mapped to __initarch/x86/kernel/e820.c+3 -30 replies
28/29x86: Use walk_system_ream_range()instead of referring e820.map directly for tbootarch/x86/kernel/tboot.c+9 -130 replies
29/29x86: 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 -v10 00/29] 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

our orginal find_lmb_area is from low to high, but this __lmb_alloc_base is from to low.

looks like it make bootmem have more segments

Please check

Thanks

Yinghai