mm/sparse-vmemmap: Provide generic vmemmap_set_pmd() and vmemmap_check_pmd()
Status from this message: This series was applied to riscv/linux.git (fixes)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 13 repliesApplied 5/5
- v25 patches 6 repliesSuperseded 1 of 5 applied
- v15 patches 1 replySuperseded 2 of 5 applied
Changes in v3 from the cover letter
- Replace BUG_ON() with WARN_ON_ONCE() in patch 1
- Add Will Deacon's Acked-by to patch 2
Patches in v3 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | mm/sparse-vmemmap: provide generic vmemmap_set_pmd() and vmemmap_check_pmd()mm/ | +6 | 4 replies | Applied |
| 2/5 | arm64/mm: drop vmemmap_pmd helpers and use generic codearch/ | +0 | 2 replies | Applied |
| 3/5 | riscv/mm: drop vmemmap_pmd helpers and use generic codearch/ | +0 | 2 replies | Applied |
| 4/5 | loongarch/mm: drop vmemmap_check_pmd helper and use generic codearch/ | +0 | 3 replies | Applied |
| 5/5 | sparc/mm: drop vmemmap_check_pmd helper and use generic codearch/ | +0 | 2 replies | Applied |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Will Deacon | David Hildenbrand (Arm) | Oscar Salvador (SUSE) |
|---|---|---|---|
| 1/5 | A-b | A-b | |
| 2/5 | A-b | R-b | R-b |
| 3/5 | R-b | R-b | |
| 4/5 | R-b | R-b | |
| 5/5 | R-b | R-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 3 reviewers.
Cover letter [PATCH v3 0/5] mm/sparse-vmemmap: Provide generic vmemmap_set_pmd() and vmemmap_check_pmd()
The weak vmemmap_set_pmd() and vmemmap_check_pmd() hooks are currently no-ops in the generic code, which leaves architectures that need PMD-level handling to open-code the same logic locally.
This series provides generic implementations for both helpers in mm/sparse-vmemmap.c. vmemmap_set_pmd() installs a huge PMD with PAGE_KERNEL protection, and vmemmap_check_pmd() verifies a present leaf PMD before reusing the existing vmemmap_verify() helper.
With those generic helpers in place, patches 2-5 remove the now redundant arch-specific implementations from arm64, riscv, loongarch, and sparc.
v2 -> v3:
- Replace BUG_ON() with WARN_ON_ONCE() in patch 1
- Add Will Deacon's Acked-by to patch 2
Muchun Song (5):
mm/sparse-vmemmap: provide generic vmemmap_set_pmd() and
vmemmap_check_pmd()
arm64/mm: drop vmemmap_pmd helpers and use generic code riscv/mm: drop vmemmap_pmd helpers and use generic code loongarch/mm: drop vmemmap_check_pmd helper and use generic code sparc/mm: drop vmemmap_check_pmd helper and use generic code
arch/arm64/mm/mmu.c | 14 -------------- arch/loongarch/mm/init.c | 11 ----------- arch/riscv/mm/init.c | 13 ------------- arch/sparc/mm/init_64.c | 11 ----------- mm/sparse-vmemmap.c | 7 ++++++- 5 files changed, 6 insertions(+), 50 deletions(-)
base-commit: 7da7f07112610a520567421dd2ffcb51beaefbcc
Signature · 1 line
2.54.0