[PATCH 0/5 v2] Update memory dlpar for dynamic reconfiguration memory

Nathan Fontenot nfont at austin.ibm.com
Thu Jul 3 13:15:46 EST 2008


The following patchset corrects a set of issues for memory dlpar and the
representation of memory in the device tree under the 
ibm,dynamic-reconfiguration-memory node.

On newer hardware and kernels, the device tree has changed so that all
memory appears under the ibm,dynamic-reconfiguration-memory node in the
device tree.  This node has several properties that describe all possible
lmbs, lmb-size and numa affinity.

The ibm,dynamic-memory property is a list of all possible lmbs, where each
list entry contains the base address, drc index, associativity array index
and a set of flags.

The ibm,associativity-lookup-arrays property contains a list of associativity
arrays and the ibm,lmb-size property contains the size of the lmbs

For reference, each lmb available to the system was previously represented 
with a node in the device tree, of the form /proc/device-tree/memory at XXXXXXXX.
Each of these memory nodes had properties such as "ibm,my-drc-index" for the
drc index and "regs" which contained the base address and lmb size of the lmb.

With the new device tree layout, code associated with memory dlpar needs to
be updated to parse the new device tree layout and properly call the memory
hotplug notifier chains.  Additionally, numa associativity done during hotplug
add of memory needs an update for parsing the new device tree layout.

Signed-off-by: Nathan Fontenot <nfont at austin.ibm.com> 



More information about the Linuxppc-dev mailing list