Blame SOURCES/0003-devtree-Parse-spd-data.patch
|
|
21ef37 |
From 06229e401aa0cd2c525f9af616b9bb95c2dd7abf Mon Sep 17 00:00:00 2001
|
|
|
21ef37 |
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
|
21ef37 |
Date: Tue, 22 Aug 2017 22:08:43 +0530
|
|
|
21ef37 |
Subject: [PATCH 3/5] devtree: Parse spd data
|
|
|
21ef37 |
|
|
|
21ef37 |
In some Power system (like P9 system), spd data is available under
|
|
|
21ef37 |
ms-dimm node in device tree. Hence call add_memory_bank_spd() from
|
|
|
21ef37 |
ms-dimm section as well.
|
|
|
21ef37 |
|
|
|
21ef37 |
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
|
21ef37 |
---
|
|
|
21ef37 |
src/core/device-tree.cc | 4 ++++
|
|
|
21ef37 |
1 file changed, 4 insertions(+)
|
|
|
21ef37 |
|
|
|
21ef37 |
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
|
|
|
21ef37 |
index 2981130..6bcc52d 100644
|
|
|
21ef37 |
--- a/src/core/device-tree.cc
|
|
|
21ef37 |
+++ b/src/core/device-tree.cc
|
|
|
21ef37 |
@@ -1086,6 +1086,10 @@ static void add_memory_bank(string name, string path, hwNode & core)
|
|
|
21ef37 |
if (size > 0)
|
|
|
21ef37 |
bank.setSize(size);
|
|
|
21ef37 |
|
|
|
21ef37 |
+ // Parse Memory SPD data
|
|
|
21ef37 |
+ if (exists("spd"))
|
|
|
21ef37 |
+ add_memory_bank_spd(path + "/" + name + "/spd", bank);
|
|
|
21ef37 |
+
|
|
|
21ef37 |
memory->addChild(bank);
|
|
|
21ef37 |
} else if(name.substr(0, 4) == "dimm") {
|
|
|
21ef37 |
hwNode bank("bank", hw::memory);
|
|
|
21ef37 |
--
|
|
|
21ef37 |
1.8.3.1
|
|
|
21ef37 |
|