xref: /openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/BMC.interface.yaml (revision 57db6a13da68aadcd33d03777a8630cb6fd1c6e9)
1b1b4d261SWilliam A. Kennington IIIdescription: >
2b1b4d261SWilliam A. Kennington III    Implementation of BMC state management.  When rebooting we are in
3b1b4d261SWilliam A. Kennington III    transition.  When Ready all services required are running
4a1347418SPatrick Williams    successfully.  When we are Not Ready this implies not all services have
5a1347418SPatrick Williams    started that are required to be.
6b1b4d261SWilliam A. Kennington III
7b1b4d261SWilliam A. Kennington IIIproperties:
8b1b4d261SWilliam A. Kennington III    - name: RequestedBMCTransition
9b1b4d261SWilliam A. Kennington III      type: enum[self.Transition]
108da396caSPatrick Williams      default: "None"
11b1b4d261SWilliam A. Kennington III      description: >
12b1b4d261SWilliam A. Kennington III          The desired BMC transition
13*57db6a13SThang Tran      errors:
14*57db6a13SThang Tran          - xyz.openbmc_project.Common.Error.Unavailable
15b1b4d261SWilliam A. Kennington III
16b1b4d261SWilliam A. Kennington III    - name: CurrentBMCState
17b1b4d261SWilliam A. Kennington III      type: enum[self.BMCState]
18b1b4d261SWilliam A. Kennington III      description: >
19b1b4d261SWilliam A. Kennington III          The current state of the BMC and is a read-only property.
20b1b4d261SWilliam A. Kennington III
21b1b4d261SWilliam A. Kennington III    - name: LastRebootTime
22b1b4d261SWilliam A. Kennington III      type: uint64
23b1b4d261SWilliam A. Kennington III      description: >
24a1347418SPatrick Williams          The last time at which the BMC came out of a reboot as determined by
25a1347418SPatrick Williams          its uptime, in epoch time, in milliseconds.
26b1b4d261SWilliam A. Kennington III
272a4da80eSTim Lee    - name: LastRebootCause
282a4da80eSTim Lee      type: enum[self.RebootCause]
298da396caSPatrick Williams      default: "Unknown"
302a4da80eSTim Lee      description: >
312a4da80eSTim Lee          The last BMC reboot cause
322a4da80eSTim Lee
33b1b4d261SWilliam A. Kennington IIIenumerations:
34b1b4d261SWilliam A. Kennington III    - name: Transition
35b1b4d261SWilliam A. Kennington III      description: >
36b1b4d261SWilliam A. Kennington III          The desired transition for the BMC firmware
37b1b4d261SWilliam A. Kennington III      values:
388da396caSPatrick Williams          - name: "Reboot"
39b1b4d261SWilliam A. Kennington III            description: >
40b1b4d261SWilliam A. Kennington III                BMC system should be rebooted
418da396caSPatrick Williams          - name: "HardReboot"
42b1b4d261SWilliam A. Kennington III            description: >
43b1b4d261SWilliam A. Kennington III                BMC system should be non-gracefully rebooted.
448da396caSPatrick Williams          - name: "None"
45b1b4d261SWilliam A. Kennington III            description: >
46b1b4d261SWilliam A. Kennington III                No transition is in progress
47b1b4d261SWilliam A. Kennington III
48b1b4d261SWilliam A. Kennington III    - name: BMCState
49b1b4d261SWilliam A. Kennington III      description: >
50b1b4d261SWilliam A. Kennington III          The current state of the BMC firmware
51b1b4d261SWilliam A. Kennington III      values:
528da396caSPatrick Williams          - name: "Ready"
53b1b4d261SWilliam A. Kennington III            description: >
54b1b4d261SWilliam A. Kennington III                Ready implies all services started and are running successfully
558da396caSPatrick Williams          - name: "NotReady"
56b1b4d261SWilliam A. Kennington III            description: >
57a1347418SPatrick Williams                Not ready implies not all services have started or are not
58a1347418SPatrick Williams                running successfully
598da396caSPatrick Williams          - name: "UpdateInProgress"
60b1b4d261SWilliam A. Kennington III            description: >
61a1347418SPatrick Williams                UpdateInProgress implies BMC is in firmware update mode.
62a1347418SPatrick Williams                CurrentBMCState will be set to "UpdateInProgress" while starting
63a1347418SPatrick Williams                image download and reset to Ready, once activation is done or
64a1347418SPatrick Williams                error case during update process.
658da396caSPatrick Williams          - name: "Quiesced"
66a9c704e7SAndrew Geissler            description: >
67a9c704e7SAndrew Geissler                BMC firmware is quiesced. The BMC firmware is enabled but either
68a1347418SPatrick Williams                unresponsive or only processing a restricted set of commands.
69a1347418SPatrick Williams                This state may be the result of a service within the BMC going
70a1347418SPatrick Williams                into a failed state.
712a4da80eSTim Lee
722a4da80eSTim Lee    - name: RebootCause
732a4da80eSTim Lee      description: >
742a4da80eSTim Lee          The recorded reboot cause of the BMC
752a4da80eSTim Lee      values:
768da396caSPatrick Williams          - name: "POR"
772a4da80eSTim Lee            description: >
782a4da80eSTim Lee                Last reboot is caused by Power-On-Reset
798da396caSPatrick Williams          - name: "PinholeReset"
80615e4f93SAndrew Geissler            description: >
81615e4f93SAndrew Geissler                Last reboot is caused by pinhole reset
828da396caSPatrick Williams          - name: "Watchdog"
832a4da80eSTim Lee            description: >
842a4da80eSTim Lee                Last reboot is caused by Watchdog
855133c7bfSTim Lee          - name: "Software"
865133c7bfSTim Lee            description: >
875133c7bfSTim Lee                Last reboot is caused by Software
888da396caSPatrick Williams          - name: "Unknown"
892a4da80eSTim Lee            description: >
902a4da80eSTim Lee                Last reboot is caused by Unknown
91855b46f3SPatrick Williams
92855b46f3SPatrick Williamspaths:
93855b46f3SPatrick Williams    - namespace: /xyz/openbmc_project/state
94855b46f3SPatrick Williams      segments:
95855b46f3SPatrick Williams          - name: BMC
96855b46f3SPatrick Williams            description: >
97855b46f3SPatrick Williams                The object representing _this_ BMC is always at bmc0.
98855b46f3SPatrick Williams            value: bmc0
99