summaryrefslogtreecommitdiffstats
path: root/host-ipmid
Commit message (Collapse)AuthorAgeFilesLines
* Add kcs selfchannel support & define for LAN toossekar2018-11-201-0/+17
| | | | | | | | | | Define sudo API's for returning channel index for self channel. At moment, This API returns KCS for host-ipmi Change-Id: Icefd5d949e94d4399adaffdad102ccb18c1b7cdc Signed-off-by: ssekar <suryakanth.sekar@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* host-ipmid: add more ipmi error codesPatrick Venture2018-11-181-0/+4
| | | | | | | Add more IPMI error codes to header for use by ipmi handlers. Change-Id: Iceef9cabcb07ad67024275fd15e886706ba7698d Signed-off-by: Patrick Venture <venture@google.com>
* host-ipmid: ipmid-api: drop extern C linkingPatrick Venture2018-10-251-10/+1
| | | | | | | | Header not used by any C code at this point, drop extern C linking and unused headers associated with C compilation. Change-Id: Icdb1dd220d158256562a2529d9aa7b03ed1e2196 Signed-off-by: Patrick Venture <venture@google.com>
* Fix IPMI SEL reservations and cancellationsJason M. Bills2018-10-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Per the IPMI Spec, the SEL must be reserved to Delete an entry Clear the SEL Get a partial entry Add a partial entry The current SEL reservation must be cancelled when A SEL entry is added A SEL entry is deleted The SEL is cleared The device is reset A new reservation is requested This change adds a reservation status to track when a reservation is active and a method to cancel the current reservation, and it uses that to cancel the reservation in the Delete, Clear, and Add SEL methods. Change-Id: Ifd72e6d06ecc622855bd9ce8cc3928cbd0f2c34b Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* openbmc oem code: add ethStatsCmdPatrick Venture2018-09-251-0/+1
| | | | | | | ethStatsCmd is used by phosphor-ipmi-ethstats Change-Id: I481bf00b71cd483720c1d4824f7267a0c1e7e51f Signed-off-by: Patrick Venture <venture@google.com>
* rename headers to match stylePatrick Venture2018-09-251-2/+2
| | | | | | | | | | | | | | | | | | 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>
* apphandler: Implement Get/Set System Info ParameterXo Wang2018-09-251-0/+2
| | | | | | | | | | | | | | | | Implement Get System Info Parameter using the parameter storage code to back the string-type parameters. Supports up to 255 chunks (known as "sets" in the spec) for those parameters. Currently, iterated reads by chunk of a string parameter will repeatedly invoke that parameter's callback, which can result in chunks being incoherent with each other if the string changes between invocations. This is noted in a TODO comment. Stub out Set System Info Parameter. Full implementation for that is pending support for read-only flags in the parameter storage code. Change-Id: If0a9d807725ccf1f1f62e931010024841575469c Signed-off-by: Xo Wang <xow@google.com> Signed-off-by: Patrick Venture <venture@google.com>
* openbmc oem code: add blobTranserCmdPatrick Venture2018-09-121-0/+1
| | | | | | | BlobTransferCmd is used by phosphor-ipmi-blobs Change-Id: I48b0e7a764d7fb5fb834320fbe415e4849f06cd8 Signed-off-by: Patrick Venture <venture@google.com>
* add iana header to store OEM NumbersPatrick Venture2018-09-103-9/+22
| | | | | | | | The iana.hpp header is installed to identify OEM IPMI numbers used, to avoid namespace conflicts. Change-Id: Ifd629817e3b921f86a5ea4cf2c2965a44a2d8201 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-09-075-96/+100
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Add OemRouter facility.Peter Hanson2018-07-253-0/+109
| | | | | | | | | | | | | OemRouter adds a facility to register OEM Group Message handlers, then dispatch matching messages to the registered handler. Added as a core source so that any dynamic provider can register its messages without requiring any specific load order. Includes code fixes for x86 portability. Change-Id: I47b8fe7873e3c7fdf35a00d3c8a7e17d30c398c4 Signed-off-by: Peter Hanson <peterh@google.com> Signed-off-by: Patrick Venture <venture@google.com>
* Remove trailing spacesGunnar Mills2018-04-181-1/+1
| | | | | Change-Id: I3a58137b3300fcfe51a4182eb304a1b70885ad30 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* sensorhandler: Enable mutability based set functionJayanth Othayoth2018-04-111-0/+1
| | | | | | | Resolves openbmc/openbmc#2980 Change-Id: I67afd4e84ec96e5cfc2dd315604d70f41c67a438 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* utils: Add missing functional includeBrad Bishop2018-02-271-0/+1
| | | | | | | | std::function is not found with a GCC 7.2 runtime. Tested: Built repository with GCC 7.2 Change-Id: I90d2585bb49973744bc62c68a5b10362478852c7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* watchdog: Consistently return errors for dbus failuresWilliam A. Kennington III2018-02-061-0/+1
| | | | | | | | | This adds return codes for all of the dbus failures which inform the host that it should retry the IPMI command as dbus related errors should be ephemeral. Change-Id: I090f488535625a996347677a0c8addbdff0996c0 Signed-off-by: William A. Kennington III <wak@google.com>
* watchdog: Implement error on reset of disabled watchdogWilliam A. Kennington III2018-01-241-0/+1
| | | | | | | | | This enables the host to recover when the BMC resets or the daemon loses state for some reason. A well formed host will resend the SetTimeout command if it encounters this error code. Change-Id: Ib5fd50ac3ad83ef820f0209354aa8f084a563995 Signed-off-by: William A. Kennington III <wak@google.com>
* Spelling fixesGunnar Mills2017-10-311-1/+1
| | | | | | | | | 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>
* Add IBM OEM NetFn(0x3A)Tom Joseph2017-10-251-1/+2
| | | | | Change-Id: If6c4b2c031981f0dba70799dc8cb42840def2dd2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Make host command manager accessible by OpenPower OEMVishwanatha Subbanna2017-08-142-0/+59
| | | | | | | | | 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>
* Add sd_event processing to host ipmid applicationAndrew Geissler2017-05-091-0/+1
| | | | | | | | In order to support the timer function, it's required to use the sd_event loop instead of sdbus loop Change-Id: I3a30fee1a21cbfadd0cbb5478bf46bea4b5ca0b8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add IPMI completion code for Invalid data field in requestTom Joseph2017-03-201-0/+1
| | | | | Change-Id: I7ae21be6eefb8c09835277249793a5f97657aee6 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add privilege level for each IPMI commandTom2017-01-171-2/+20
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Completion Code for Requested Length invalidTom2016-09-231-0/+1
| | | | | Change-Id: If186487d7118010c30e39ab96f13558ba5d7f6fb Signed-off-by: Tom <tomjoseph@in.ibm.com>
* Allow out-of-tree buildsPatrick Williams2016-09-061-0/+111
Change-Id: If4b97e65f63c3abbf23140dd97b9febe00b3be0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud