Message ID | 20200406034925.22586-1-bharata@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | powerpc/mm/radix: Memory unplug fixes | expand |
On Mon, Apr 06, 2020 at 09:19:20AM +0530, Bharata B Rao wrote: > 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/f55a7b65a43cc9dc7b22385cf9960f8b11d5ce2e.camel@linux.ibm.com/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() 3/5 in this series fixes long-standing bug and multiple versions of it has been posted outside of this series earlier. 4/5 fixes a memory leak. I included the above tow in this series because with the patches to explicitly mark the hotplugged memory (1/5 and 2/5), reproducing the bug fixed by 3/5 becomes easier. Hence 3/5 and 4/5 can be considered as standalone fixes too. Regards, Bharata.
Aneesh, Do these memory unplug fixes on radix look fine? Do you want these to be rebased on recent kernel? Would you like me to test any specific scenario with these fixes? Regards, Bharata. On Mon, Apr 06, 2020 at 09:19:20AM +0530, Bharata B Rao wrote: > 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/f55a7b65a43cc9dc7b22385cf9960f8b11d5ce2e.camel@linux.ibm.com/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(-) > > -- > 2.21.0