Skip to content

Commit

Permalink
meta-ampere: mtmitchell: update CPU presence object paths
Browse files Browse the repository at this point in the history
Currently, the gpio-presence is configured to create CPU_1/2 object
paths when sockets 0/1 are present. But the SMBIOS service creates
cpu0/1 object paths to indicate sockets 0/1 are present.
By the mismatch 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 to avoid the issue.

Tested:
    1. PLDM sensors work correctly on both 1P and 2P systems.
    2. ADC sensors are shown correctly.

Signed-off-by: Thang Tran <[email protected]>
  • Loading branch information
thangtran-ampere authored and thangqn-ampere committed May 6, 2024
1 parent fd0f028 commit 29f12ca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 29f12ca

Please sign in to comment.