Skip to content

RFC powerpc/mm/radix: Memory unplug fixes

Bharata B Rao linuxppc-dev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 RFC Latest5 patches 7 repliesIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5powerpc/pseries/hotplug-memory: Set DRCONF_MEM_HOTREMOVABLE for hot-plugged memarch/powerpc/platforms/pseries/hotplug-memory.c+4 -20 replies
2/5powerpc/mm/radix: Create separate mappings for hot-plugged memoryarch/powerpc/mm/book3s64/radix_pgtable.c+12 -31 reply
3/5powerpc/mm/radix: Fix PTE/PMD fragment count for early page table mappingsarch/powerpc/include/asm/book3s/64/pgalloc.h arch/powerpc/include/asm/book3s/64/radix.h arch/powerpc/include/asm/sparsemem.h +4 more+121 -92 replies
4/5powerpc/mm/radix: Free PUD table when freeing pagetablearch/powerpc/mm/book3s64/radix_pgtable.c+16 -01 reply
5/5powerpc/mm/radix: Remove split_kernel_mapping()arch/powerpc/mm/book3s64/radix_pgtable.c+19 -741 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchAneesh Kumar K.V
1/5
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v0 thread

Cover letter [RFC PATCH v0 0/5] powerpc/mm/radix: Memory unplug fixes

Memory unplug has a few bugs which I had attempted to fix ealier at https://lists.ozlabs.org/pipermail/linuxppc-dev/2019-July/194087.html

Now with Leonardo's patch for PAPR changes that add a separate flag bit to LMB flags for explicitly identifying hot-removable memory
(https://lore.kernel.org/linuxppc-dev/[email protected]/T/#t),
a few other issues around memory unplug on radix can be fixed. This series is a combination of those fixes.

This series works on top of above mentioned Leonardo's patch.

Bharata B Rao (5):
powerpc/pseries/hotplug-memory: Set DRCONF_MEM_HOTREMOVABLE for
hot-plugged mem
powerpc/mm/radix: Create separate mappings for hot-plugged memory powerpc/mm/radix: Fix PTE/PMD fragment count for early page table
mappings
powerpc/mm/radix: Free PUD table when freeing pagetable powerpc/mm/radix: Remove split_kernel_mapping()

 arch/powerpc/include/asm/book3s/64/pgalloc.h  |  11 +-
 arch/powerpc/include/asm/book3s/64/radix.h    |   1 +
 arch/powerpc/include/asm/sparsemem.h          |   1 +
 arch/powerpc/mm/book3s64/pgtable.c            |  31 ++-
 arch/powerpc/mm/book3s64/radix_pgtable.c      | 186 +++++++++++-------
 arch/powerpc/mm/mem.c                         |   5 +
 arch/powerpc/mm/pgtable-frag.c                |   9 +-
 .../platforms/pseries/hotplug-memory.c        |   6 +-
 8 files changed, 167 insertions(+), 83 deletions(-)
Signature · 1 line
2.21.0