Update CPU entity info for sensor LEDs
Testing Results:
Change-Id: I4f6740bd38d8debfef50c73e59fe31ac63ab0fc8
----------------
CPU Identify LED
==============
pldmtool platform getpdr -d 224
{
"nextRecordHandle": 225,
"responseCount": 27,
"recordHandle": 224,
"PDRHeaderVersion": 1,
"PDRType": "State Sensor PDR",
"recordChangeNumber": 0,
"dataLength": 17,
"PLDMTerminusHandle": 0,
"sensorID": 17,
"entityType": "[Physical] Processor",
"entityInstanceNumber": 3,
"containerID": 4,
"sensorInit": "noInit",
"sensorAuxiliaryNamesPDR": false,
"compositeSensorCount": 1,
"stateSetID[0]": "Identify State(17)",
"possibleStatesSize[0]": 1,
"possibleStates[0]": [
"Identify State Unasserted(1)",
"Identify State Asserted(2)"
]
}
pldmtool platform GetStateSensorReadings -i 17 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Normal"
}
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cpu1_identify xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 17 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
CPU fault LED
=============
pldmtool platform getpdr -d 323
{
"nextRecordHandle": 324,
"responseCount": 27,
"recordHandle": 323,
"PDRHeaderVersion": 1,
"PDRType": "State Sensor PDR",
"recordChangeNumber": 0,
"dataLength": 17,
"PLDMTerminusHandle": 0,
"sensorID": 116,
"entityType": "[Physical] Processor",
"entityInstanceNumber": 1,
"containerID": 4,
"sensorInit": "noInit",
"sensorAuxiliaryNamesPDR": false,
"compositeSensorCount": 1,
"stateSetID[0]": "Operational Fault Status(10)",
"possibleStatesSize[0]": 1,
"possibleStates[0]": [
"Normal(1)",
"Stressed(2)"
]
}
pldmtool platform GetStateSensorReadings -i 116 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cpu0_fault xyz.openbmc_project.Led.Group Asserted b false
pldmtool platform GetStateSensorReadings -i 116 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Normal"
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
Change-Id: Idea70b18a994923e8d6d13416a09c9b8bc0a384e
diff --git a/configurations/pdr/4.json b/configurations/pdr/4.json
index c42e8fb..eca7db6 100644
--- a/configurations/pdr/4.json
+++ b/configurations/pdr/4.json
@@ -252,7 +252,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0",
+ "type" : 135,
+ "instance" : 1,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 17,
@@ -269,7 +271,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1",
+ "type" : 135,
+ "instance" : 2,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 17,
@@ -286,7 +290,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu2",
+ "type" : 135,
+ "instance" : 3,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 17,
@@ -303,7 +309,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu3",
+ "type" : 135,
+ "instance" : 4,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 17,
@@ -2038,7 +2046,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0",
+ "type" : 135,
+ "instance" : 1,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 10,
@@ -2055,7 +2065,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1",
+ "type" : 135,
+ "instance" : 2,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 10,
@@ -2072,7 +2084,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu2",
+ "type" : 135,
+ "instance" : 3,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 10,
@@ -2089,7 +2103,9 @@
}]
},
{
- "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu3",
+ "type" : 135,
+ "instance" : 4,
+ "container" : 4,
"sensors" : [{
"set" : {
"id" : 10,