Skip to content

Commit

Permalink
memory: Add NUMA associtivity information to DT
Browse files Browse the repository at this point in the history
The ibm,chip-id property is not sufficent for Linux to work out the NUMA
node that a pmem region is placed on. Add any nodes that are compatible
with "pmem-region" to the pass where we add affinity information to the
normal memory@ nodes.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
oohal committed Nov 4, 2019
1 parent 6cf9ace commit 1c28288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/mem_region.c
Expand Up @@ -1068,7 +1068,8 @@ void mem_region_init(void)
* done by add_chip_dev_associativity()
*/
dt_for_each_node(dt_root, i) {
if (!dt_has_node_property(i, "device_type", "memory"))
if (!dt_has_node_property(i, "device_type", "memory") &&
!dt_has_node_property(i, "compatible", "pmem-region"))
continue;

/* Add associativity properties */
Expand Down

0 comments on commit 1c28288

Please sign in to comment.