Blame SOURCES/0011-devtree-Add-chip-id-from-CPU-node.patch

e67e1d
From 872b0996df37aae586575ca8021c2509c05067b0 Mon Sep 17 00:00:00 2001
e67e1d
From: Shivaprasad G Bhat <sbhat@linux.ibm.com>
e67e1d
Date: Fri, 6 Mar 2020 04:41:33 -0600
e67e1d
Subject: [PATCH 11/17] devtree: Add chip-id from CPU node
e67e1d
e67e1d
Add chip-id from CPU node into the configuration if available. CPU's are
e67e1d
behind the CHIP on Power systems. By adding chip-id it helps to map what cpus
e67e1d
are sitting behind which chip.
e67e1d
e67e1d
Sample output:
e67e1d
     *-cpu:10
e67e1d
          description: POWER8E (raw), altivec supported
e67e1d
          product: 00FX746 FRU# 00FX522
e67e1d
          physical id: 176
e67e1d
          bus info: cpu@10
e67e1d
          version: 2.1 (pvr 004b 0201)
e67e1d
          ...
e67e1d
          configuration: chip-id=1 threads=8
e67e1d
e67e1d
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
e67e1d
---
e67e1d
 src/core/device-tree.cc | 2 ++
e67e1d
 1 file changed, 2 insertions(+)
e67e1d
e67e1d
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
e67e1d
index f43d34f072b6..af665a4d8e1a 100644
e67e1d
--- a/src/core/device-tree.cc
e67e1d
+++ b/src/core/device-tree.cc
e67e1d
@@ -492,6 +492,8 @@ static void fill_core_vpd(hwNode & cpu, string & basepath,
e67e1d
     return;
e67e1d
 
e67e1d
   chip_id = get_u32(basepath + "/ibm,chip-id");
e67e1d
+  cpu.setConfig("chip-id", chip_id);
e67e1d
+
e67e1d
   data = chip_vpd[chip_id];
e67e1d
   xscom_path = xscoms[chip_id];
e67e1d
 
e67e1d
-- 
e67e1d
2.17.1
e67e1d