This is the next version of the fixes for memory unplug on radix. The issues and the fix are described in the actual patches.
Changes in v1: ============== - Rebased to latest kernel. - Took care of p4d changes. - Addressed Aneesh's review feedback: - Added comments. - Indentation fixed. - Dropped the 1st patch (setting DRCONF_MEM_HOTREMOVABLE lmb flags) as it is debatable if this flag should be set in the device tree by OS and not by platform in case of hotplug. This can be looked at separately. (The fixes in this patchset remain valid without the dropped patch) - Dropped the last patch that removed split_kernel_mapping() to ensure that spilitting code is available for any radix guest running on platforms that don't set DRCONF_MEM_HOTREMOVABLE. v0: https://lore.kernel.org/linuxppc-dev/20200406034925.22586-1-bhar...@linux.ibm.com/ Bharata B Rao (3): 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 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 | 111 +++++++++++++++++-- arch/powerpc/mm/mem.c | 5 + arch/powerpc/mm/pgtable-frag.c | 9 +- 7 files changed, 157 insertions(+), 12 deletions(-) -- 2.21.3