[PATCH v2 0/3] powerpc/pseries: Perform PRRN topology updates in kernel

John Allen jallen at linux.vnet.ibm.com
Fri Dec 16 09:14:16 AEDT 2016


Formerly, when we received a PRRN rtas event, device tree updating was
performed in the kernel and the actual topology updating was performed in
userspace. This was necessary as in order to update the topology for memory,
we must perform a hot remove and a subsequent hot add and until recently,
memory hotplug was not included in the kernel. Since memory hotplug is now
available, this patchset moves the PRRN topology updating into the kernel.

Changes from v1:
-Introduce patch to separate the acquire and release drc from existing
 memory hotplug
-Create new function "dlpar_memory_readd_by_index" that consolidates the
 necessary steps of memory hot remove and hot add into a single function
-Remove conversion of phandle to BE
-Since error messages are already generated in the memory hotplug code,
 remove redundant error messages in pseries_prrn_update_node. Since we no
 longer use the return code from the hotplug event, remove the
 wait_for_completion infrastructure.

John Allen (3):
      powerpc/pseries: Make the acquire/release of the drc for memory a seperate step
      powerpc/pseries: Introduce memory hotplug READD operation
      powerpc/pseries: Update affinity for memory and cpus specified in a PRRN event

 arch/powerpc/include/asm/rtas.h                 |    1
 arch/powerpc/kernel/rtasd.c                     |    7 ++
 arch/powerpc/platforms/pseries/hotplug-memory.c |   75 +++++++++++++++++++----
 arch/powerpc/platforms/pseries/mobility.c       |   32 ++++++++++
 4 files changed, 102 insertions(+), 13 deletions(-)



More information about the Linuxppc-dev mailing list