pdr: Sensor support for various fault LEDS.
Also, added powersupply 2 and 3 support in 11.json
In this commit sensor fault LEDs support is added for connectors,
cablecard, processor, dasd_pyramid, ddimm, nvme, pcieslot,
planar, battery and tpm_wilson.
Testing Result:
Note: Test results are mentioned based on the random LED assert true/false
operation for the specific LED type.
processor
==========
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cpu0_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 114 -r 1
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
Power Converter
==============
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cpu1_vrm0_fault xyz.openbmc_project.Led.Group Asserted b false
pldmtool platform GetStateSensorReadings -i 117 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Normal"
}
Drive backplane
====================
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/dasd_pyramid0_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 118 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
System Board
=================
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/planar_fault xyz.openbmc_project.Led.Group Asserted b false
pldmtool platform GetStateSensorReadings -i 196 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Normal"
}
Battery
=========
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/rtc_battery_fault xyz.openbmc_project.Led.Group Asserted b false
pldmtool platform GetStateSensorReadings -i 201 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Normal"
}
power supply
==========
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/powersupply3_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 200 -r 0 {
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
Dimm
=========
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/ddimm2_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 123 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
NVMe
======
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/nvme23_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 183 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
PCIe slot
=============
busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/pcieslot0_fault xyz.openbmc_project.Led.Group Asserted b true
pldmtool platform GetStateSensorReadings -i 184 -r 0
{
"compositeSensorCount": 1,
"sensorOpState[0]": "Sensor Enabled",
"presentState[0]": "Sensor Normal",
"previousState[0]": "Sensor Unknown",
"eventState[0]": "Sensor Warning"
}
Change-Id: I795b075dd6cb3d18e6d8243b4540d2f0bb64b80b
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/configurations/pdr/11.json b/configurations/pdr/11.json
index a2d4e61..e06ab13 100644
--- a/configurations/pdr/11.json
+++ b/configurations/pdr/11.json
@@ -1654,6 +1654,40 @@
}]
},
{
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply2",
+ "effecters" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/powersupply2_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [false, true]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply3",
+ "effecters" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/powersupply3_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [false, true]
+ }
+ }]
+ },
+ {
"entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery",
"effecters" : [{
"set" : {
@@ -1843,6 +1877,40 @@
}]
},
{
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply2",
+ "effecters" : [{
+ "set" : {
+ "id" : 10,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply2",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property_name": "Functional",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply3",
+ "effecters" : [{
+ "set" : {
+ "id" : 10,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply3",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property_name": "Functional",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
"type" : 45,
"instance" : 0,
"container" : 0,