summaryrefslogtreecommitdiffstats
path: root/host-interface.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Create libipmid and libipmid-hostWilliam A. Kennington III2019-02-071-2/+2
| | | | | | | | | | | | | | | | | | | This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and daemon type specific code. This is needed so we can resolve all of the symbols in the providers at link time instead of discovering bad linkage by building and running a full ipmi daemon. In future commits libraries will be packaged for libipmid and libipmid-host which provide all of the symbols used by the current set of ipmid providers. This is the first step, it just separates and renames the headers. Legacy symlinks are still kept around for compatability. It also adds stub libraries so that external users can start linking as intended. Change-Id: I6bbd7a146362012d26812a7b039d1c4075862cbd Signed-off-by: William A. Kennington III <wak@google.com>
* rename headers to match stylePatrick Venture2018-09-251-4/+7
| | | | | | | | | | | | | | | | | | Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-09-071-30/+17
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Use s.c_str() in log messagesJoseph Reynolds2018-05-311-1/+1
| | | | | | | | | | Fixes issues with data passed to phosphor::logging::log(entry()). This is part of a series of commits that resolves openbmc 2905. Tested: static_assert only Change-Id: I9fac771f54e4acbec97ce1360c106b6e3eb4fe9d Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
* Reducing IPMI logging footprintAditya Saripalli2018-04-181-1/+1
| | | | | | | | | | | | -host-ipmid is very noisy in terms of journal logging. A small step towards cleaning that up. -Also converted printfs to phosphor-logging. Partially Resolves openbmc/openbmc#2507 Change-Id: I749c19c18d1cabf6f0216830c8cb0a08ee43d6de Signed-off-by: Aditya Saripalli <aditya0124@gmail.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Make host command manager accessible by OpenPower OEMVishwanatha Subbanna2017-08-141-1/+2
| | | | | | | | | Since OpenPower Host IPMI OEM also needs to use the Host Command manager, need to place the files in appropriate directories and make needed changes. Change-Id: I7536a0ff1e53a844ec05f73c4e0605cbf4341465 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use Host Command Manager in host interface implementationVishwanatha Subbanna2017-08-141-94/+53
| | | | | Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Return the heartbeat command if queue is emptyAndrew Geissler2017-06-121-3/+4
| | | | | | | | | | | | | | There are numerous valid situations where the host interface queue may be empty, but the host has an active SMS_ATN. In these cases, ipmid should not log an error and abort but instead just return a default command. The default will be the heartbeat command since its basically a noop to the host. Resolves openbmc/openbmc#1750 Change-Id: I810bb0368c2cbd4aa99b6cf20d29eeefc8b312cd Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add timeout support to host controlAndrew Geissler2017-05-091-5/+53
| | | | | | | On timeout, send error signal for all commands within the queue Change-Id: Ic995fd4b057bd83f121a3deec405a26e0991e9a2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Enable multiple commands to be queued at onceAndrew Geissler2017-05-091-8/+27
| | | | | | | | With this commit, the control host interface allows multiple commands to be queued up and sent in a FIFO order to the host Change-Id: I76908d988608ef6dcc1d7f945c6c4a1c5c29e44b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Implement basic queue for sending multiple commandsAndrew Geissler2017-05-091-5/+2
| | | | | | | Sends dbus signal upon completion of command Change-Id: Ic507f35af0b38305eecd5558c55738f2d283aac5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Send the SMS attention to host when Execute calledAndrew Geissler2017-05-091-0/+30
| | | | | Change-Id: Id523470fcabf59cf2bda592cf1fe687ac44c3328 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Support for putting entries onto queueAndrew Geissler2017-05-091-2/+14
| | | | | Change-Id: I766cdfcaef7d5d000a9e216bc3307ea12c9ce2f8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Register new Control.Host bus in ipmidAndrew Geissler2017-05-091-0/+6
| | | | | | | | This sets up the framework for future commits to implement the required interfaces and signals in Control.Host Change-Id: I43cd7d3047ed9cfbf1a01e7ba3a0310e9d47c307 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Compile new control host codeAndrew Geissler2017-05-091-0/+9
The purpose of this series of commits is to provide the ability for other services to communicate with the host. Specifically with this series, to be able to request the host power itself down or to simply check if the host is running. Change-Id: I0136467cd3f258fbed3e40e4b7269ed4d8a23e46 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud