memory: Add NUMA associtivity information to DT
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.
@@ -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 */
