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