PLDM: BootProgress as Host Sensor in the BMC as a responder flow
This commit implements BootProgress as a host sensor
instead of the effecter.
The Boot progress effecter on BMC is updated by the host
using SetStateEffecterStates command. The Boot Progress will
be implemented as a host state sensor and
host will send a sensor event to BMC.
Tested : By using pldmtool PlatformEventMessage is sent and the
Dbus property is verified.
Change-Id: I5ca6a2ea4582a038824fd0624234d2d755eb15c1
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/configurations/events/stateSensorPdrs.json b/configurations/events/stateSensorPdrs.json
new file mode 100644
index 0000000..ab6126a
--- /dev/null
+++ b/configurations/events/stateSensorPdrs.json
@@ -0,0 +1,35 @@
+{
+ "sensorPDRs": [
+ {
+ "pdrType" : 4,
+ "entries" : [{
+ "type" : 33,
+ "instance" : 0,
+ "container" : 0,
+ "effecters" : [{
+ "set" : {
+ "id" : 196,
+ "size" : 4,
+ "states" : [1,2,3,5,9,21,22,26]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/state/host0",
+ "interface": "xyz.openbmc_project.State.Boot.Progress",
+ "property_name": "BootProgress",
+ "property_type": "string",
+ "property_values": [
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.SystemInitComplete",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.MemoryInit",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.SecondaryProcInit",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.PCIInit",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.OSRunning",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.BusInit",
+ "xyz.openbmc_project.State.Boot.Progress.ProgressStages.PrimaryProcInit"
+ ]
+ }
+ }]
+ }]
+ }]
+}
+