Skip to content

Add support for memmap on memory feature on ppc64

Aneesh Kumar K.V linux-mm linuxppc-dev 8 versions – Applied

Status from this message: [merged mm-stable] mm-memory_hotplug-embed-vmem_altmap-details-in-memory-block.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 0 repliesApplied 6/6
  2. v77 patches 24 repliesSuperseded
  3. v67 patches 9 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v57 patches11 repliesSuperseded
v46 patches12 repliesSuperseded
v37 patches20 repliesSuperseded
v25 patches18 repliesSuperseded
v1 RFC5 patches0 repliesSuperseded

Changes in v8 from the cover letter

* Drop patch 7 because we are still discussing a runtime update of this feature is useful.

Patches in v8 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/memory_hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfigarch/arm64/Kconfig arch/x86/Kconfig mm/Kconfig+5 -60 repliesApplied
2/6mm/memory_hotplug: Allow memmap on memory hotplug request to fallbackdrivers/acpi/acpi_memhotplug.c include/linux/memory_hotplug.h mm/memory_hotplug.c+9 -100 repliesApplied
3/6mm/memory_hotplug: Allow architecture to override memmap on memory support checkmm/memory_hotplug.c+20 -40 repliesApplied
4/6mm/memory_hotplug: Support memmap_on_memory when memmap is not aligned to pageblocksDocumentation/admin-guide/mm/memory-hotplug.rst mm/memory_hotplug.c+113 -190 repliesApplied
5/6powerpc/book3s64/memhotplug: Enable memmap on memory for radixarch/powerpc/Kconfig arch/powerpc/include/asm/pgtable.h arch/powerpc/platforms/pseries/hotplug-memory.c+23 -10 repliesApplied
6/6mm/memory_hotplug: Embed vmem_altmap details in memory blockdrivers/base/memory.c include/linux/memory.h mm/memory_hotplug.c+52 -370 repliesApplied

Reviews trailers per patch

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

PatchMichal HockoDavid Hildenbrand
1/6A-b A-b
2/6A-b A-b
3/6A-b A-b
4/6A-b A-b
5/6R-b
6/6A-b A-b

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

Read the v8 thread

Cover letter [PATCH v8 0/6] Add support for memmap on memory feature on ppc64

This patch series update memmap on memory feature to fall back to memmap allocation outside the memory block if the alignment rules are not met. This makes the feature more useful on architectures like ppc64 where alignment rules are different with 64K page size.

This patch series is dependent on dax vmemmap optimization series posted here
https://lore.kernel.org/linux-mm/[email protected]/

Changes from v7:
* Drop patch 7 because we are still discussing a runtime update of this feature is useful.

Changes from v6:
* Update comments in the code
* Update commit message for patch 7

Changes from v5:
* Update commit message
* Move memory alloc/free to the callers in patch 6
* Address review feedback w.r.t patch 4

Changes from v4:
* Use altmap.free instead of altmap.reserve
* Address review feedback

Changes from v3:
* Extend the module parameter memmap_on_memory to force allocation even though we can waste hotplug memory.

Changes from v2:
* Rebase to latest linus tree
* Redo the series based on review feedback. Multiple changes to the patchset.

Changes from v1:
* update the memblock to store vmemmap_altmap details. This is required so that when we remove the memory we can find the altmap details which is needed on some architectures.
* rebase to latest linus tree

Aneesh Kumar K.V (6):
mm/memory_hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig mm/memory_hotplug: Allow memmap on memory hotplug request to fallback mm/memory_hotplug: Allow architecture to override memmap on memory
support check
mm/memory_hotplug: Support memmap_on_memory when memmap is not aligned
to pageblocks
powerpc/book3s64/memhotplug: Enable memmap on memory for radix mm/memory_hotplug: Embed vmem_altmap details in memory block

 .../admin-guide/mm/memory-hotplug.rst         |  12 ++
 arch/arm64/Kconfig                            |   4 +-
 arch/powerpc/Kconfig                          |   1 +
 arch/powerpc/include/asm/pgtable.h            |  21 ++
 .../platforms/pseries/hotplug-memory.c        |   2 +-
 arch/x86/Kconfig                              |   4 +-
 drivers/acpi/acpi_memhotplug.c                |   3 +-
 drivers/base/memory.c                         |  27 ++-
 include/linux/memory.h                        |   8 +-
 include/linux/memory_hotplug.h                |   3 +-
 mm/Kconfig                                    |   3 +
 mm/memory_hotplug.c                           | 185 ++++++++++++++----
 12 files changed, 209 insertions(+), 64 deletions(-)
Signature · 1 line
2.41.0