[PATCH 0/2] powerpc/nodes/hotplug: Fix problem with memoryless nodes

From: Michael Bringmann
Date: Mon Sep 18 2017 - 14:28:23 EST


powerpc/nodes: Ensure enough nodes avail for operations.
On systems like PowerPC which allow 'hot-add' of CPU or memory
resources, it may occur that the new resources are to be inserted
into nodes that were not used for these resources at bootup. In
the kernel, any node that is used must be defined and initialized
at boot. This patch extracts the value of the lowest domain level
(number of allocable resources) from the "rtas" device tree property
"ibm,current-associativity-domains" or the device tree property
"ibm,max-associativity-domains" to use as the maximum number of nodes
to setup as possibly available in the system.

powerpc/hotplug: Fix CPU-only node bringup bug
On systems like PowerPC which allow 'hot-add' of CPU, it may occur
that the new resources are to be inserted into nodes that were not
used for memory resources at bootup. Many different configurations
of PowerPC resources may need to be supported depending upon the
environment. This patch fixes some problems encountered at runtime
with configurations that support memory-less nodes, but which allow
CPUs to be added at and after boot.

Signed-off-by: Michael Bringmann <mwb@xxxxxxxxxxxxxxxxxx>

Michael Bringmann (2):
powerpc/vphn: Ensure enough nodes avail for operations
powerpc/hotplug: Fix CPU-only node bringup bug