Skip to content

powerpc/pseries: Update affinity index during memory dlpar

Nathan Fontenot linuxppc-dev 1 version Applied

Status from this message: Applied to powerpc next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3powerpc/pseries: Refactor dlpar_add_lmb() codearch/powerpc/platforms/pseries/hotplug-memory.c+20 -141 reply
2/3powerpc/pseries: Update LMB associativity index during DLPAR add/removearch/powerpc/platforms/pseries/hotplug-memory.c+162 -311 reply
3/3powerpc/pseries: Cleanup property cloning in memory dlpararch/powerpc/platforms/pseries/hotplug-memory.c+32 -473 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] powerpc/pseries: Update affinity index during memory dlpar

When adding or removing a LMB the associativity index for the LMB needs to be updated in the device tree property ibm,dynamic-memory.

Without updating the associativity index for a LMB before adding the LMB it could be added with the incorrect affinity. For LMBs that are not present at boot the associativity index in the device tree property is set to 0xffffffff, the result being that the LMB is added to the first online node. For an LMB that was present at boot but was later DLPAR removed, the LMB associativity may be stale causing the LMB to be added to the incorrect node.

This set of patches updates the memory DLPAR add path to discover the associativity index for a LMB and update the device tree property prior to adding the memory for that LMB. This also updates the DLPAR remove path to set the associativity back to 0xffffffff when a LMB is removed.

Patch 1/3 refactors the dlpar LMB add code to make further updates easier, there are no functional changes.

Patch 2/3 updates the add and remove paths to modify the associativity index for the LMB being added or removed.

Patch 3/3 removes some no longer needed conversions of the device tree property from BE to cpu format.

-Nathan

 hotplug-memory.c |  306 ++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 214 insertions(+), 92 deletions(-)