]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/pseries: Introduce memory hotplug READD operation
authorJohn Allen <jallen@linux.vnet.ibm.com>
Fri, 6 Jan 2017 19:27:26 +0000 (13:27 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 6 Mar 2017 21:20:13 +0000 (14:20 -0700)
commitade9ae7f60b57160f478ea941ceefebceec525d0
tree95b16ae8533f7633728c25d0809a2942314be13a
parent9d3e926c3c3cfeabdff393108a6d5d3f289034e7
powerpc/pseries: Introduce memory hotplug READD operation

BugLink: http://bugs.launchpad.net/bugs/1670315
Currently, memory must be hot removed and subsequently re-added in order
to dynamically update the affinity of LMBs specified by a PRRN event.
Earlier implementations of the PRRN event handler ran into issues in which
the hot remove would occur successfully, but a hotplug event would be
initiated from another source and grab the hotplug lock preventing the hot
add from occurring. To prevent this situation, this patch introduces the
notion of a hot "readd" action for memory which atomizes a hot remove and
a hot add into a single, serialized operation on the hotplug queue.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit e70d59700fc32c9249b26acd4120303c497e84f1)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/include/asm/rtas.h
arch/powerpc/platforms/pseries/hotplug-memory.c