Update State Effecter PDR to support BMC Reboot
- This commit would enable the state effecter PDR on BMC to
support BMC Reboot.
Tested By:
# pldmtool platform getpdr -d 25
{
"nextRecordHandle": 26,
"responseCount": 30,
"recordHandle": 25,
"PDRHeaderVersion": 1,
"PDRType": "State Effecter PDR",
"recordChangeNumber": 0,
"dataLength": 20,
"PLDMTerminusHandle": 1,
"effecterID": 4,
"entityType": "Management Controller",
"entityInstanceNumber": 0,
"containerID": 0,
"effecterSemanticID": 0,
"effecterInit": "noInit",
"effecterDescriptionPDR": false,
"compositeEffecterCount": 1,
"stateSetID[0]": "Availability(2)",
"possibleStatesSize[0]": 2,
"possibleStates[0]": " 8"
}
# pldmtool platform SetStateEffecterStates -v -i 4 -c 1 -d 1 8
Request Message:
08 01 80 02 39 04 00 01 01 08 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"
}
Post receiving SUCCESS, the BMC was rebooted.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I6cf802813af84351ec2a59a26e8032b7169d759d
diff --git a/configurations/pdr/11.json b/configurations/pdr/11.json
index 8627831..b2e1916 100644
--- a/configurations/pdr/11.json
+++ b/configurations/pdr/11.json
@@ -71,6 +71,27 @@
]
}
}]
+ },
+ {
+ "type" : 137,
+ "instance" : 0,
+ "container" : 0,
+ "effecters" : [{
+ "set" : {
+ "id" : 2,
+ "size" : 2,
+ "states" :[8]
+ },
+ "dbus" :{
+ "path" : "/xyz/openbmc_project/state/bmc0",
+ "interface" : "xyz.openbmc_project.State.BMC",
+ "property_name" : "RequestedBMCTransition",
+ "property_type" : "string",
+ "property_values" :[
+ "xyz.openbmc_project.State.BMC.Transition.Reboot"
+ ]
+ }
+ }]
}]
},
{