Skip to content

Generalize vmemmap_populate_hugepages to sparc

chengkaitao linux-mm lkml llvm oe-kbuild-all sparclinux 6 versions – Applied

Status from this message: [merged mm-stable] sparc-use-vmemmap_populate_hugepages-for-vmemmap_populate.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 4 repliesApplied 2/2
  2. v52 patches 5 repliesSuperseded
  3. v43 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches3 repliesSuperseded
v21 patch1 replySuperseded
v11 patch10 repliesSuperseded

Changes in v6 from the cover letter

- Ignore handling of altmap

Patches in v6 All 2 applied

#Subject and filesSizeRepliesApplied
1/2sparc: Use vmemmap_populate_hugepages for vmemmap_populatearch/sparc/mm/init_64.c+16 -311 replyApplied
2/2mm: Convert vmemmap_p?d_populate() to static functionsinclude/linux/mm.h mm/sparse-vmemmap.c+5 -123 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand (arm)Andreas Larsson
1/2T-b A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/2] Generalize vmemmap_populate_hugepages to sparc

Change sparc's implementation of vmemmap_populate() using vmemmap_populate_hugepages() to streamline the code. Another benefit is that it allows us to eliminate the external declarations of vmemmap_p?d_populate functions and convert them to static functions.

Since vmemmap_populate_hugepages may fallback to vmemmap_populate- _basepages, which differs from sparc's original implementation. During the v1 discussion with Mike Rapoport, sparc uses base pages in the kernel page tables, so it should be able to use them in vmemmap as well. Consequently, no additional special handling is required.

Changes in v6:
- Ignore handling of altmap

Changes in v5:
- Remove [PATCH v4 3/3] sparc: Remove unnecessary whitespace

Changes in v4:
- Add commit message
- Add verification that pmd actually maps a large page in the vmemmap_check_pmd function

Changes in v3:
- Allow sparc to fallback to vmemmap_populate_basepages
- Convert vmemmap_p?d_populate() to static functions
- Split the v1 patch

Changes in v2:
- Revert the whitespace deletions
- Change vmemmap_false_pmd to vmemmap_pte_fallback_allowed

Link to V5:
https://lore.kernel.org/all/[email protected]/
Link to V4:
https://lore.kernel.org/all/[email protected]/
Link to V3:
https://lore.kernel.org/all/[email protected]/
Link to V2:
https://lore.kernel.org/all/[email protected]/
Link to V1:
https://lore.kernel.org/all/[email protected]/

Chengkaitao (2):
sparc: Use vmemmap_populate_hugepages for vmemmap_populate
mm: Convert vmemmap_p?d_populate() to static functions

 arch/sparc/mm/init_64.c | 47 ++++++++++++++---------------------------
 include/linux/mm.h      |  7 ------
 mm/sparse-vmemmap.c     | 10 ++++-----
 3 files changed, 21 insertions(+), 43 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)