]> git.baikalelectronics.ru Git - 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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:57:39 +0000 (16:57 +1100)
commit44d4d9bd87ea9ac7a6143a7c5e03faf1395f97c9
tree8562d7b8f5d4926b70dfa3d507264f35b9210f78
parentf981c814e0c6b6f14d47bfd59268f9367cd7073b
powerpc/pseries: Introduce memory hotplug READD operation

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>
arch/powerpc/include/asm/rtas.h
arch/powerpc/platforms/pseries/hotplug-memory.c