powerpc/pseries: Implement indexed-count hotplug memory add
authorSahil Mehta <sahilmehta17@gmail.com>
Wed, 15 Feb 2017 18:45:56 +0000 (13:45 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Feb 2017 06:57:30 +0000 (17:57 +1100)
commit333f7b76865bec24c66710cf352f892d69e3ba0a
tree0fab9fb29b3b62927c1113598e327b5a0069d67a
parenta90e883d8b8fb07ddea4d9618ce58bf72bce7f00
powerpc/pseries: Implement indexed-count hotplug memory add

Indexed-count add for memory hotplug guarantees that a contiguous block
of <count> lmbs beginning at a specified <drc index> will be assigned,
any LMBs in this range that are not already assigned will be DLPAR added.
Because of Qemu's per-DIMM memory management, the addition of a contiguous
block of memory currently requires a series of individual calls to add
each LMB in the block. Indexed-count add reduces this series of calls to
a single call for the entire block.

Signed-off-by: Sahil Mehta <sahilmehta17@gmail.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/rtas.h
arch/powerpc/platforms/pseries/dlpar.c
arch/powerpc/platforms/pseries/hotplug-memory.c