Blame SOURCES/0003-devtree-Parse-spd-data.patch

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