summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThang Tran <thuutran@amperecomputing.com>2024-04-26 06:03:51 +0300
committerThang Tran <thuutran@amperecomputing.com>2024-04-26 06:03:51 +0300
commitfda17ca3b11c191946d824623321bef8f820fe71 (patch)
treea58331b23f8f4f865eb82348446b10ab82d194e2
parent07a7e40070d8601df7962c1751de300c23d04573 (diff)
downloadopenbmc-fda17ca3b11c191946d824623321bef8f820fe71.tar.xz
meta-ampere: mtmitchell: update CPU presence object paths
Currently, the gpio-presence is configured to create CPU_1/2 object paths when sokets 0/1 are presented. But in the SMBIOS service, it is creating cpu0/1 object paths to indicate sockets 0/1 are presented. By the missmatch between gpio-presence and SMIBIOS services, adc sensors that depend on the "CPURequired" property in EM can be missed. This commit updates the object path of CPU presence to synchronize gpio-presence and SMBIOS services. Tested: 1. PLDM sensors work correctly on both 1P and 2P systems. 2. ADC sensors are shown correctly. Change-Id: Idc317b9a6280391aff7eb1aeebc70667acc29b28 Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json b/meta-ampere/meta-mitchell/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json
index 2ff86f8c25..04c01c5df3 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json
@@ -1,15 +1,15 @@
[
{
- "Name": "CPU_1",
+ "Name": "CPU01",
"LineName": "presence-cpu0",
"ActiveLow": true,
- "Inventory": "/system/chassis/motherboard/CPU_1"
+ "Inventory": "/system/chassis/motherboard/cpu0"
},
{
- "Name": "CPU_2",
+ "Name": "CPU02",
"LineName": "presence-cpu1",
"ActiveLow": true,
- "Inventory": "/system/chassis/motherboard/CPU_2"
+ "Inventory": "/system/chassis/motherboard/cpu1"
},
{
"Name": "PSU0",