Blame SOURCES/0007-Fix-DIMM-info-for-older-IBM-POWER-systems.patch

510200
From 35b4524d85843fa60e9f10133cfdb1c75cbb6c02 Mon Sep 17 00:00:00 2001
510200
From: Dan Callaghan <dcallagh@redhat.com>
510200
Date: Wed, 11 Jul 2018 13:34:55 +1000
510200
Subject: [PATCH 07/10] Fix DIMM info for older IBM POWER systems
510200
510200
Commit f95aa917 applied the patch from #695, adding the
510200
scan_devtree_memory_ibm() function, but it called the function in the
510200
wrong place. The function finds memory-controller@* nodes on older IBM
510200
POWER systems, not newer OPAL firmware based ones.
510200
510200
This patch has the side effect of reordering CPU nodes before memory
510200
nodes on non-IBM device-tree-based hardware (like Calxeda Highbank and
510200
other unusual stuff). That is in line with other platforms.
510200
510200
---
510200
 src/core/device-tree.cc | 7 +++----
510200
 1 file changed, 3 insertions(+), 4 deletions(-)
510200
510200
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
510200
index 7903622..dea4140 100644
510200
--- a/src/core/device-tree.cc
510200
+++ b/src/core/device-tree.cc
510200
@@ -1396,7 +1396,6 @@ bool scan_device_tree(hwNode & n)
510200
       core->addHint("icon", string("board"));
510200
       scan_devtree_root(*core);
510200
       scan_devtree_cpu_power(*core);
510200
-      scan_devtree_memory_ibm(*core);
510200
       scan_devtree_memory_powernv(*core);
510200
       scan_devtree_firmware_powernv(*core);
510200
       n.addCapability("powernv", "Non-virtualized");
510200
@@ -1449,12 +1448,12 @@ bool scan_device_tree(hwNode & n)
510200
       if (exists(DEVICETREE "/ibm,lpar-capable")) {
510200
         n.setDescription("pSeries LPAR");
510200
         scan_devtree_cpu_power(*core);
510200
-        scan_devtree_memory(*core);
510200
       }
510200
       else {
510200
-        scan_devtree_memory(*core);
510200
         scan_devtree_cpu(*core);
510200
-     }
510200
+      }
510200
+      scan_devtree_memory(*core);
510200
+      scan_devtree_memory_ibm(*core);
510200
     }
510200
   }
510200
 
510200
-- 
510200
2.17.1
510200