From fda17ca3b11c191946d824623321bef8f820fe71 Mon Sep 17 00:00:00 2001 From: Thang Tran Date: Fri, 26 Apr 2024 10:03:51 +0700 Subject: 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 --- .../gpio/phosphor-gpio-monitor/phosphor-multi-gpio-presence.json | 8 ++++---- 1 file 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", -- cgit v1.2.3