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

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