[Skiboot] [PATCH] memory: Add NUMA associtivity information to DT

Oliver O'Halloran oohall at gmail.com
Thu Oct 17 19:26:30 AEDT 2019


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 at gmail.com>
---
 core/mem_region.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/mem_region.c b/core/mem_region.c
index 47d754455e9b..06cef1b2b353 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -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 */
-- 
2.21.0



More information about the Skiboot mailing list