PDR/Sensor/Effecter for BMC owned LEDs
PDR:
root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 9
{
"nextRecordHandle": 10,
"responseCount": 29,
"recordHandle": 9,
"PDRHeaderVersion": 1,
"PDRType": "State Effecter PDR",
"recordChangeNumber": 0,
"dataLength": 19,
"PLDMTerminusHandle": 1,
"effecterID": 2,
"entityType": "19(OEM)",
"entityInstanceNumber": 0,
"containerID": 0,
"effecterSemanticID": 0,
"effecterInit": "noInit",
"effecterDescriptionPDR": false,
"compositeEffecterCount": 1,
"stateSetID": "17",
"possibleStatesSize": 1,
"possibleStates": " 1 1 2"
}
root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 10
{
"nextRecordHandle": 11,
"responseCount": 29,
"recordHandle": 10,
"PDRHeaderVersion": 1,
"PDRType": "State Effecter PDR",
"recordChangeNumber": 0,
"dataLength": 19,
"PLDMTerminusHandle": 1,
"effecterID": 3,
"entityType": "19(OEM)",
"entityInstanceNumber": 0,
"containerID": 0,
"effecterSemanticID": 0,
"effecterInit": "noInit",
"effecterDescriptionPDR": false,
"compositeEffecterCount": 1,
"stateSetID": "10",
"possibleStatesSize": 1,
"possibleStates": " 1 1 2"
}
root@w80:~# pldmtool platform GetPDR -d 14
{
"nextRecordHandle": 15,
"responseCount": 23,
"recordHandle": 14,
"PDRHeaderVersion": 1,
"PDRType": "State Sensor PDR",
"recordChangeNumber": 0,
"dataLength": 13,
"PLDMTerminusHandle": 0,
"sensorID": 1,
"entityType": "19(OEM)",
"entityInstanceNumber": 0,
"containerID": 0,
"sensorInit": "noInit",
"sensorAuxiliaryNamesPDR": false,
"compositeSensorCount": 0
}
root@w80:~# pldmtool platform GetPDR -d 15
{
"nextRecordHandle": 0,
"responseCount": 23,
"recordHandle": 15,
"PDRHeaderVersion": 1,
"PDRType": "State Sensor PDR",
"recordChangeNumber": 0,
"dataLength": 13,
"PLDMTerminusHandle": 0,
"sensorID": 2,
"entityType": "19(OEM)",
"entityInstanceNumber": 0,
"containerID": 0,
"sensorInit": "noInit",
"sensorAuxiliaryNamesPDR": false,
"compositeSensorCount": 0
}
Write Effecter test:
root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted
b false
root@w56:~# pldmtool platform SetStateEffecterStates -i 2 -c 1 -d 1 1 --verbose
Request Message:
08 01 80 02 39 02 00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Success in creating the socket : RC = 4
Success in connecting to socket : RC = 0
Success in sending message type as pldm to mctp : RC = 0
Write to socket successful : RC = 24
Total length:6
Shutdown Socket successful : RC = 0
Response Message:
08 01 00 02 39 00
{
"Response": "SUCCESS"
}
root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted
b true
Sensor Read
root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted
b false
root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00
Request Message:
08 01 80 02 21 01 00 01 00
Response Message:
08 01 00 02 21 00 01 00 00 00 02
root@rain104bmc:~# busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true
root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted
b true
root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00
Request Message:
08 01 80 02 21 01 00 01 00
Response Message:
08 01 00 02 21 00 01 00 00 00 01
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>
Change-Id: Idbe765eeeaf229838f721918da01a15d5391cab2
diff --git a/configurations/pdr/4.json b/configurations/pdr/4.json
index 7483dca..350b691 100644
--- a/configurations/pdr/4.json
+++ b/configurations/pdr/4.json
@@ -37,6 +37,40 @@
"property_name": "HardShutdownAlarmHigh",
"property_type": "bool",
"property_values" : [false, true]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/base_op_panel_blyth",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/base_blyth_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/ebmc_card_bmc",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/bmc_ingraham_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
}
}]
},
@@ -58,6 +92,278 @@
"property_values" : [false, true]
}
}]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu2",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu1_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu3",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu1_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan0",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan1",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan1_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan2",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan2_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan3",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan3_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan4",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan4_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan5",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/fan5_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/lcd_op_panel_hill",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/lcd_russel_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/powersupply0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply1",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/powersupply1_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/tpm_wilson",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/tpm_wilson_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu0_vrm0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
+ },
+ {
+ "entity_path" : "/xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm1",
+ "sensors" : [{
+ "set" : {
+ "id" : 17,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/led/groups/cpu1_vrm0_identify",
+ "interface": "xyz.openbmc_project.Led.Group",
+ "property_name": "Asserted",
+ "property_type": "bool",
+ "property_values" : [true, false]
+ }
+ }]
}]
}]
}