Skip to content

huge vmalloc mappings

Nicholas Piggin linux-arch linux-arm-kernel linux-mm linuxppc-dev lkml 14 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest14 patches 8 repliesIn review 13 of 14 applied
  2. v1214 patches 8 repliesSuperseded
  3. v1113 patches 12 repliesSuperseded
Earlier versions · 11
VersionPostedPatchesRepliesStatus
v1012 patches21 repliesSuperseded
v912 patches3 repliesSuperseded
v812 patches6 repliesSuperseded
v712 patches4 repliesSuperseded
v612 patches7 repliesSuperseded
v58 patches11 repliesSuperseded
v48 patches1 replySuperseded
v38 patches5 repliesSuperseded
v2 posting 2/24 patches18 repliesSuperseded
v2 posting 1/23 patches4 repliesSuperseded
v13 patches8 repliesSuperseded

Changes in v13 from the cover letter

- Use compound pages so it works with remap_vmalloc_range [noticed by Ding]
- Fix debug_vm_pgtable.c compile error.

Patches in v13 13 of 14 applied

#Subject and filesSizeRepliesApplied
1/14ARM: mm: add missing pud_page define to 2-level page tablesarch/arm/include/asm/pgtable-3level.h arch/arm/include/asm/pgtable.h+3 -20 repliesApplied
2/14mm/vmalloc: fix HUGE_VMAP regression by enabling huge pages in vmalloc_to_pagemm/vmalloc.c+26 -150 repliesApplied
3/14mm: apply_to_pte_range warn and fail if a large pte is encounteredmm/memory.c+49 -170 repliesApplied
4/14mm/vmalloc: rename vmap_*_range vmap_pages_*_rangemm/vmalloc.c+8 -80 repliesApplied
5/14mm/ioremap: rename ioremap_*_range to vmap_*_rangemm/ioremap.c+33 -310 repliesApplied
6/14mm: HUGE_VMAP arch support cleanuparch/arm64/include/asm/vmalloc.h arch/arm64/mm/mmu.c arch/powerpc/include/asm/vmalloc.h +8 more+87 -802 repliesApplied
7/14powerpc: inline huge vmap supported functionsarch/powerpc/include/asm/vmalloc.h arch/powerpc/mm/book3s64/radix_pgtable.c+16 -240 repliesApplied
8/14arm64: inline huge vmap supported functionsarch/arm64/include/asm/vmalloc.h arch/arm64/mm/mmu.c+20 -290 repliesApplied
9/14x86: inline huge vmap supported functionsarch/x86/include/asm/vmalloc.h arch/x86/mm/ioremap.c arch/x86/mm/pgtable.c+19 -370 repliesApplied
10/14mm/vmalloc: provide fallback arch huge vmap support functionsarch/arm64/include/asm/vmalloc.h arch/powerpc/include/asm/vmalloc.h arch/x86/include/asm/vmalloc.h +1 more+31 -200 repliesApplied
11/14mm: Move vmap_range from mm/ioremap.c to mm/vmalloc.cinclude/linux/vmalloc.h mm/ioremap.c mm/vmalloc.c+205 -2030 repliesApplied
12/14mm/vmalloc: add vmap_range_noflush variantmm/vmalloc.c+13 -30 repliesApplied
13/14mm/vmalloc: Hugepage vmalloc mappingsarch/Kconfig include/linux/vmalloc.h mm/page_alloc.c +1 more+206 -470 repliesApplied
14/14powerpc/64s/radix: Enable huge vmalloc mappingsDocumentation/admin-guide/kernel-parameters.txt arch/powerpc/Kconfig arch/powerpc/kernel/module.c+21 -44 replies

Reviews trailers per patch

10 of 14 patches have a Reviewed-by or Acked-by.

PatchMiaohe LinChristoph HellwigDing TianhongCatalin MarinasMichael Ellerman
1/14
2/14R-b R-b
3/14R-b R-b
4/14R-b R-b
5/14R-b R-b
6/14R-b A-b
7/14A-b
8/14A-b
9/14
10/14
11/14R-b
12/14R-b
13/14
14/14A-b

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

Read the v13 thread

Cover letter [PATCH v13 00/14] huge vmalloc mappings

Important compound page fix thanks to Ding Tianhong.

Thanks,
Nick

Since v12:
- Use compound pages so it works with remap_vmalloc_range [noticed by Ding]
- Fix debug_vm_pgtable.c compile error.

Since v11:
- ARM compile fix (patch 1)
- debug_vm_pgtable compile fix

Since v10:
- Fixed code style, most > 80 colums, tweak patch titles, etc [thanks Christoph]
- Made huge vmalloc code and data structure compile away if unselected [Christoph]
- Archs only have to provide arch_vmap_p?d_supported for levels they implement [Christoph]

Since v9:
- Fixed intermediate build breakage on x86-32 !PAE [thanks Ding]
- Fixed small page fallback case vm_struct double-free [thanks Ding]

Since v8:
- Fixed nommu compile.
- Added Kconfig option help text
- Added VM_NOHUGE which should help archs implement it [suggested by Rick]

Since v7:
- Rebase, added some acks, compile fix
- Removed "order=" from vmallocinfo, it's a bit confusing (nr_pages is in small page size for compatibility).
- Added arch_vmap_pmd_supported() test before starting to allocate the large page, rather than only testing it when doing the map, to avoid unsupported configs trying to allocate huge pages for no reason.

Since v6:
- Fixed a false positive warning introduced in patch 2, found by kbuild test robot.

Since v5:
- Split arch changes out better and make the constant folding work
- Avoid most of the 80 column wrap, fix a reference to lib/ioremap.c
- Fix compile error on some archs

*** BLURB HERE ***

Nicholas Piggin (14):
ARM: mm: add missing pud_page define to 2-level page tables mm/vmalloc: fix HUGE_VMAP regression by enabling huge pages in
vmalloc_to_page
mm: apply_to_pte_range warn and fail if a large pte is encountered mm/vmalloc: rename vmap_*_range vmap_pages_*_range mm/ioremap: rename ioremap_*_range to vmap_*_range
mm: HUGE_VMAP arch support cleanup
powerpc: inline huge vmap supported functions
arm64: inline huge vmap supported functions
x86: inline huge vmap supported functions
mm/vmalloc: provide fallback arch huge vmap support functions
mm: Move vmap_range from mm/ioremap.c to mm/vmalloc.c mm/vmalloc: add vmap_range_noflush variant
mm/vmalloc: Hugepage vmalloc mappings powerpc/64s/radix: Enable huge vmalloc mappings

 .../admin-guide/kernel-parameters.txt         |   2 +
 arch/Kconfig                                  |  11 +
 arch/arm/include/asm/pgtable-3level.h         |   2 -
 arch/arm/include/asm/pgtable.h                |   3 +
 arch/arm64/include/asm/vmalloc.h              |  24 +
 arch/arm64/mm/mmu.c                           |  26 -
 arch/powerpc/Kconfig                          |   1 +
 arch/powerpc/include/asm/vmalloc.h            |  20 +
 arch/powerpc/kernel/module.c                  |  22 +-
 arch/powerpc/mm/book3s64/radix_pgtable.c      |  21 -
 arch/x86/include/asm/vmalloc.h                |  20 +
 arch/x86/mm/ioremap.c                         |  19 -
 arch/x86/mm/pgtable.c                         |  13 -
 include/linux/io.h                            |   9 -
 include/linux/vmalloc.h                       |  46 ++
 init/main.c                                   |   1 -
 mm/debug_vm_pgtable.c                         |   4 +-
 mm/ioremap.c                                  | 225 +-------
 mm/memory.c                                   |  66 ++-
 mm/page_alloc.c                               |   5 +-
 mm/vmalloc.c                                  | 485 +++++++++++++++---
 21 files changed, 621 insertions(+), 404 deletions(-)
Signature · 1 line
2.23.0