summaryrefslogtreecommitdiffstats
path: root/softoff
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixesGunnar Mills2017-10-312-2/+2
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I78e9d126f19fd9fb2e3f2fa9fe8c2404dc505f82 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Use Host Command Manager in host interface implementationVishwanatha Subbanna2017-08-141-2/+2
| | | | | Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Don't return error on SMS errorAndrew Geissler2017-06-062-64/+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>
* Ensure softpoweroff application returns non-zero rc on failsAndrew Geissler2017-05-191-4/+6
| | | | | | | | This will ensure we follow the OnFailure= behavior defined within the shutdown target and properly power the system off on fails Change-Id: I4367602741ec06f32e5a39a21fccc914739fdda6 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update softoff to support new host control interfaceAndrew Geissler2017-05-194-47/+174
| | | | | | | | | 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>
* Add timeout support to host controlAndrew Geissler2017-05-094-210/+4
| | | | | | | On timeout, send error signal for all commands within the queue Change-Id: Ic995fd4b057bd83f121a3deec405a26e0991e9a2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Support custom callback function on timer expirationAndrew Geissler2017-05-093-3/+117
| | | | | Change-Id: I39b32d608ef342d63c57cbc1902e927fb39861c7 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* softoff: switch to 'report' error APIMarri Devender Rao2017-04-271-12/+4
| | | | | | | | | phosphor-logging now has an interface to avoid needing a try/catch to report an error in the same location it is discovered, so switch to using it. Change-Id: I96b6f3ec10b39f6ce3030b95f94768c00c3ad9d8 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Generate errorlog when timer expires waiting for host to shutdownVishwanatha Subbanna2017-03-294-10/+61
| | | | | | | Fixes openbmc/openbmc#930 Change-Id: I1780071d5cbef23df88c17fe131098f54f54f25f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add gtest cases to verify sd_event timerVishwanatha Subbanna2017-03-273-0/+178
| | | | | Change-Id: I6db746adc969a322f463c00143938c7c2339ff86 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Handle response from host for soft power off requestVishwanatha Subbanna2017-03-273-8/+55
| | | | | 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-273-4/+71
| | | | | Change-Id: I738be7b70554125e544aa59fe1770e909d3dffb1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add timer skeletonVishwanatha Subbanna2017-03-246-20/+221
| | | | | | | | 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-223-6/+55
| | | | | | | | 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-224-0/+122
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