summaryrefslogtreecommitdiffstats
path: root/softoff/mainapp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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-291-4/+25
| | | | | | | 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-8/+10
| | | | | Change-Id: Ia923eff57f855dc88cb04db13590ae1a58a502fd Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add timer skeletonVishwanatha Subbanna2017-03-241-6/+34
| | | | | | | | 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/+4
| | | | | | | | 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/+41
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