summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/State
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: Rename timer use fields and enumWilliam A. Kennington III2019-01-171-7/+7
| | | | | | | | | | | The name of the num should not contain the word Field as the type is not a field, just the use case for the timer. The properties on the watchdog object should be clear as to being the current or last expired timer use. Change-Id: Iee21fbfa97e5ef0634b3f806a43d7d3e66288661 Signed-off-by: William A. Kennington III <wak@google.com>
* Add the time use related fields defined in IPMI specYong Li2019-01-151-0/+33
| | | | | | | | | | | | The IPMI watchdog timer use field is used to indicate the current timer use assigned to the watchdog timer, timer expiration flags is used to indicate the current timer expiration flags used by the timer. Add them as a dbus property, IPMI set/get watchdog commands will use it. Change-Id: I549a97a13a398fd0815a3865004c6880010aa08e Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* Remove InternalFailure error from LastRebootTimeMatt Spinler2018-08-061-2/+0
| | | | | | | That error will never be returned. Change-Id: I7cebfbb3c703216592f16dbdfeba0a982c9f8a6a Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add LastStateChangeTime property to State.ChassisMatt Spinler2018-07-251-0/+8
| | | | | | | | | | | This holds the timestamp of when the chassis power state last changed. This will be used by the web UI to show the user when their system was last powered on or off. Change-Id: I801cd40e2e7d8ee18ede132be59f0776f5fc9d1f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add LastRebootTime property to BMC stateMatt Spinler2018-07-121-0/+8
| | | | | | | | It contains the epoch time of the last BMC reboot as determined by its uptime. Change-Id: I2e80734db8443c9e3d49b3cf6dd336ee5d9937be Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* State.Watchdog: Add a ResetTimeRemaining methodWilliam A. Kennington III2018-04-231-0/+16
| | | | | | | | | | | It's common for services to want to pet the watchdog by reading the interval, writing it to the TimeRemaining field, and possibly enabling the watchdog. This patch adds a convenience method to acomplish this in a single dbus call. A single call also reduces the completion time of reset requests and the load incurred by performing multiple dbus calls. Change-Id: I847e821a4ea10e49c6b6703a48a346bbab6fd44c Signed-off-by: William A. Kennington III <wak@google.com>
* Add PowerOnHours interfaceNagaraju Goruganti2018-04-041-0/+8
| | | | | | | | | | PowerOnHours interface to tell how many hours the system has been powered-on. Partially Resolves openbmc/openbmc#2979 Change-Id: I61b149e38717a389f57c2d881ced7faf823d25a7 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Create State.Boot.Raw interfacePatrick Venture2018-03-061-0/+9
| | | | | | | | | Provide an interface for broadcasting POST codes on the dbus. This allows one consumer on the device while allowing anyone listening to receive the data and perform an action. Change-Id: I3c7bf6afb77be7ce49198e394547ddf8d9153de6 Signed-off-by: Patrick Venture <venture@google.com>
* watchdog: Support setting an actionWilliam A. Kennington III2018-02-131-0/+23
| | | | | | | | | | | | | | | | | | The IPMI spec defines actions which can be set at runtime that define what action the watchdog will take when it expires. With this change our watchdog daemon can be dynamically reconfigured to execute a target that maps to the defined action. The current list of actions maps directly from the IPMI spec. We don't require that the list strictly adheres to the list in the spec, but this is a good starting point since they are generic host actions. A commit to phosphor-watchog will accompany this change in order to respect the actions defined in this interface. This change defaults the action to HardReset, which will ensure the behavior is consistent with previous behavior regardless of updating the phosphor-host-ipmid. Change-Id: I7b293394326652b292b4bd23950a7f947ece8306 Signed-off-by: William A. Kennington III <wak@google.com>
* watchdog: Make it possible to track initialization stateWilliam A. Kennington III2018-02-131-0/+6
| | | | | | | | | | | | | | | | Adding an initialization value to the dbus api allows the host ipmi daemon or any other user of the host watchdog api to determine if they have already initialized the host watchdog without keeping any of their own state. This is useful for being able to report a not initialized error to the host system when it makes a watchdog reset call. Since this value is defined by default as false, whenever the watchdog daemon restarts and loses state the host will be able to see that it has not yet been initialized. The host can then reinitialize the watchdog if implemented according to the spec. As this value is inteded purely for state tracking on the client side, the server does not need to modify or even read this value. Change-Id: I224995fdb09fcf21ba729dbd88e41a31e82eacad Signed-off-by: William A. Kennington III <wak@google.com>
* Document host/chassis/bmc mapping (current and future)Stewart Smith2018-01-231-0/+32
| | | | | | | | | | | | I believe this is the only possible way we can realistically provide forwards and backwards API compatibility. We have existing API users, and we can't go and rewrite the world, so we need to extend the API in a way that enables them to continue working. Change-Id: I741485adf98126919b2a521d8bfbd235b13750ae Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Create Fan Inventory Shutdown ErrorGunnar Mills2017-10-251-0/+2
| | | | | | | | To be used when we shutdown the system due to not enough present or functional fans. Change-Id: I3a30592cba767e8fbbcba4286df1c62940eaba9e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Update boot progress interface with missing entry.Dhruvaraj Subhashchandran2017-10-181-0/+3
| | | | | | | | PCI Initialization is missing in the list of boot progress stages, adding that to the boot progress interface yaml Change-Id: I6fe563ac89a33b2fe06006bbe0ddf206d5d61de3 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Spelling fix on interface s/mili/milli/Patrick Venture2017-10-091-2/+2
| | | | | Change-Id: I0e67d6b6a476ac6212d53fbdfd7efc3e9c06f7ab Signed-off-by: Patrick Venture <venture@google.com>
* Add Power Fault shutdown errorMatt Spinler2017-09-181-0/+2
| | | | | | | | | This error will be used on Witherspoon when the power sequencer chip detects a power fault, which requires a power off to be done. Change-Id: Ia5f99c67c4e9436ca86f9d94d08644fcac012824 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Create GPU shutdown errorMatt Spinler2017-09-181-0/+3
| | | | | | | | | | | Will be used on Witherspoon when the GPUs report an overtemp to the power sequencer chip. The failing GPU will be called out in a separate overtemp error log, and then this shutdown error will be created when code powers off the system to protect the chip. Change-Id: I55b836f469f0fc035386130a16b433a5eba96a8b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Create Processor ThermalEvent Shutdown ErrorGunnar Mills2017-09-151-0/+2
| | | | | | | | Created Processor ThermalEvent Shutdown Error. To used as part of openbmc/openbmc#2190. Change-Id: I2441a4eb69df36a1dbf623579c5e3bf5c6a818ae Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add Inactive state to OSStatus enumMarri Devender Rao2017-08-211-1/+4
| | | | | Change-Id: Ia0da0d12b967b80d0ef3800146de01033e425613 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* D-Bus interfaces for describing State.Dhruvaraj Subhashchandran2017-06-082-0/+63
| | | | | Change-Id: Ic52faba7a24bcf58f3326b1587282ca8398e9a70 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Update reboot request to match with agreed designAndrew Geissler2017-06-051-1/+1
| | | | | | | | A/C will not be preserved on host reboot requests, there's no need to include that detail in the interface anyway Change-Id: If3d33cea8c492191f0dfd58bfcfd99bfe9f9baee Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Watchdog: Update Interface yaml file to remove signalVishwanatha Subbanna2017-06-031-4/+0
| | | | | | | | | | Initial thought behind watchdog implementation was that when the timer expires, it would broadcast a signal. A better design was thought of in the meantime and that would call into a user requested target post timer expiration. Change-Id: Ibe148ed5cd0e8d72949324f64c87704a8e9e7236 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Minor updates to doc for soft and hard power off termsAndrew Geissler2017-04-211-12/+12
| | | | | Change-Id: I7ef803d834b3d91a4ea5404e1977f56e91716a43 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add OperationalStatus interfaceTom Joseph2017-03-151-0/+8
| | | | | Change-Id: If596152cf7e2fbcfda52ea0c22334ca3c4e41fdc Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add yaml file to indicate Host shutdown failure in SoftPowerOffVishwanatha Subbanna2017-03-062-0/+6
| | | | | Change-Id: I8a9bcd33649de283556221e5dfe64ab2d5dd964b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add quiesce to host stateSaqib Khan2017-02-182-1/+7
| | | | | | | | Updated Host.yaml and README file to include the host quiesce state Change-Id: I44fb8849ee5adf1209de1af4720fd95b848950ad Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Add dbus interface for watchdogYi Li2017-01-041-0/+25
| | | | | | | | | Add a generic interface for watchdog, for system state monitoring. Partially resolves: openbmc/openbmc#767 Change-Id: I7f04fe9e8a35669612501b05a1a06e03e9928194 Signed-off-by: Yi Li <adamliyi@msn.com>
* Defined properties in the bmc state managementJosh King2017-01-041-0/+40
| | | | | | | | | | | | Created the yaml file that contained the necessary properties needed for bmc state management. This is needed so we can have access to the different states of the bmc for whenever we decide to transition to a desired state, or would like to reboot, etc. Change-Id: Ife02f7b324262eccb990d29ed872cf4137857e14 Signed-off-by: Josh King <jdking@us.ibm.com>
* Initial definition of host state management propertiesAndrew Geissler2016-12-193-0/+150
Change-Id: I5047fce6ebd921547b5a6017cd909b2c97e10d96 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud