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

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