summaryrefslogtreecommitdiffstats
path: root/softoff/softoff.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't return error on SMS errorAndrew Geissler2017-06-061-3/+4
| | | | | | | | | | The state of the host is unknown when a host shutdown is requested. The defined behavior after asserting the SMS attention is to give the host a few seconds to respond. If there is no response then just continue with the shutdown. Change-Id: I7b25ddb572bd8dea9f6a3422997f53e5f38c7fc5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update softoff to support new host control interfaceAndrew Geissler2017-05-191-31/+65
| | | | | | | | | The new host control design requires applications use its new dbus interfaces to interact with the host. This commit moves the softoff application over to this new interface. Change-Id: I3c6830a59d72df1f112ee7a63a08bfca53375bf7 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Generate errorlog when timer expires waiting for host to shutdownVishwanatha Subbanna2017-03-291-4/+17
| | | | | | | Fixes openbmc/openbmc#930 Change-Id: I1780071d5cbef23df88c17fe131098f54f54f25f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Handle response from host for soft power off requestVishwanatha Subbanna2017-03-271-0/+37
| | | | | Change-Id: Ia923eff57f855dc88cb04db13590ae1a58a502fd Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add routines to start and stop the sd_event timerVishwanatha Subbanna2017-03-271-0/+12
| | | | | Change-Id: I738be7b70554125e544aa59fe1770e909d3dffb1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add timer skeletonVishwanatha Subbanna2017-03-241-5/+1
| | | | | | | | This patchset creates the timer infrastructure that is then used by soft power off object on user requests. Change-Id: I6f7a5c161999fda89471f453c24725efddac65b9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add function to send SMS_ATTN to hostVishwanatha Subbanna2017-03-221-1/+21
| | | | | | | | This patch overrides one of the base API and sends a message that enables the current HOST IPMI BT provider to actually set the SMS_ATTN. Change-Id: I250ea6bed99e569e493251f6fc298aa7ed7c776f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add initial code for IPMI SoftPowerOff functionalityVishwanatha Subbanna2017-03-221-0/+22
This commit puts a skeleton layout for the IPMI Soft Power Off functionality. Change-Id: I7c3ededc9d4038e172d7f6230270ecfe397330e9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud