summaryrefslogtreecommitdiffstats
path: root/ipmi
Commit message (Collapse)AuthorAgeFilesLines
* Convert host-ipmid -> libipmidWilliam A. Kennington III2019-02-121-4/+4
| | | | | | | | | phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library. Change-Id: I747c3a585d646c7ff54efb14968c8f04daafe071 Signed-off-by: William A. Kennington III <wak@google.com>
* Move all variant usage to stdJames Feist2019-02-081-1/+2
| | | | | | | | | | This just a style change, remove variant_ns in favor of std. Tested-by: it built Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <james.feist@linux.intel.com>
* Change all default_bus back to new_system busJames Feist2019-01-291-2/+2
| | | | | | | | | | | | | | | | | new_default now returns a reference to a single bus, phosphor-pid-control uses multiple busses so we do not want that. This was the way it was implemented prior to https://github.com/openbmc/sdbusplus/commit/8ca6025eed193c252149b2908c3d5e37b00b0107 Tested-by: swampd ran normally These errors go away: Jan 28 18:28:45 swampd[1760]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' Jan 28 18:28:45 swampd[1760]: what(): sd_bus_request_name: org.freedesktop.DBus.Error.InconsistentMessage: Bad message Change-Id: I708cd5e6c45509f27d4fe783c0b0cfb52ff10336 Signed-off-by: James Feist <james.feist@linux.intel.com>
* style: function names should be lower camelPatrick Venture2018-10-301-14/+14
| | | | | | | Fix function names to be lower camel. Change-Id: I145e1f4c03d7740bc1525dcffbdce2f78fd61075 Signed-off-by: Patrick Venture <venture@google.com>
* ipmi: drop is_method_error callPatrick Venture2018-10-151-4/+0
| | | | | | | Drop is_method_error() call that is extraneous. Change-Id: I2ae8b2adb9576321df0cf10310c4242fad0801aa Signed-off-by: Patrick Venture <venture@google.com>
* ipmi: add iana header for openbmc oenPatrick Venture2018-09-191-6/+4
| | | | | | | Add the iana header that exposes the openbmc oen. Change-Id: I232b23967853c305202d29adadfaa4a088f01e38 Signed-off-by: Patrick Venture <venture@google.com>
* ipmi: add back call to is_method_errorPatrick Venture2018-09-101-1/+7
| | | | | | | | Before reading the message, check if there's an error. The bus call will fail dramatically but differently than the message. Change-Id: I3ab54cc4a4590e0cf5f3eb15dcbf045a7b8bd075 Signed-off-by: Patrick Venture <venture@google.com>
* ipmi: catch SdBusErrors on bus call failuresPatrick Venture2018-09-061-11/+13
| | | | | | | | | | Now sdbusplus call and call_noreply can throw an SdBusError exception. This code changes from checking .is_method_error() to catching the exception. Issue: 4 Change-Id: I07bbe5dbbd91d72ca75eeb14861d56aae5f3afed Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-08-312-41/+31
| | | | | Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f Signed-off-by: Patrick Venture <venture@google.com>
* ipmi: enable oem ipmi command for fan controlPatrick Venture2018-07-311-6/+6
| | | | | | | | | | | | This enables building the OEM IPMI handler for fan control. This includes the ability to set it in manual mode, or check if it's in fail-sade mode. Tested: Verified that using host-side tool I was able to get and set the mode for a zone, as well as check if a zone had fallen into failsade mode. Change-Id: I995407c089610692c7f6442f6e22f76689f4da1c Signed-off-by: Patrick Venture <venture@google.com>
* s/Control.FanCtrl.Mode/Control.Mode/Patrick Venture2018-05-101-2/+2
| | | | | | | | The interface for a Mode is generic enough for objects beyond strictly fan control. Change-Id: I3cb7e7564f841e680dc34743908644be9639267d Signed-off-by: Patrick Venture <venture@google.com>
* The OEM IPMI interface for statusPatrick Venture2018-03-083-0/+271
This lets one get/set various aspects of the control daemon, including whether it's fallen into fail-safe mode, or whether a zone is in manual mode. Manual mode in this implementation is zone specific and not fan specific. Change-Id: I1611fefad198b64c28a780073674896d6efbf877 Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud