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