summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sensorhandler: modify Get Sensor Reading to use dbus interfaceEmily Shaffer2017-06-062-0/+65
| | | | | Change-Id: Ice16bda6c151b0865f3fa6e8234b8e2456d5b887 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* sensorhandler: Fixes for dbus->type conversion.Emily Shaffer2017-06-061-1/+10
| | | | | | | This enables Get Type IPMI command. Change-Id: I2e7ec6320d5e6a8eeb6566c6a4389b77c49bc92a Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* sensorhandler: Refactor find_openbmc_path to check sensor map firstEmily Shaffer2017-06-064-14/+54
| | | | | Change-Id: I846d538643af77705d5160bf4d9127f758b5c749 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* Remove tabs and fix indents in chassishandler.cppAndrew Geissler2017-06-011-185/+205
| | | | | | | Formatting only change Change-Id: Ide817b09af864adc20c090311e4b6083e3044212 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* sensorhandler: Refactor find_sensor to eliminate redundant callEmily Shaffer2017-05-193-18/+23
| | | | | | | | find_openbmc_path was being called within find_sensor as well as following find_sensor Change-Id: Ie94eab7afbe34f214a07bda49bfbce729b20f237 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* Makefile changes for generating inventory-sensor-gen.cppTom Joseph2017-05-193-2/+11
| | | | | | | | | Provide capability for the recipe to pass the config yaml as a configurable output. Fallback to inventory-sensor-example.yaml in case no config yaml is passed. Change-Id: I6a069b0925c3e4c4d56bd1c9767b8fadcdf433b4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Adding inventory-sensor-example.yamlTom Joseph2017-05-191-0/+340
| | | | | | | | This is an example config file which would be picked for out of tree build or the config file is not generated during build time. Change-Id: Iae0db42d5f2496673ac08eeb7a2cb052526b9fa6 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Write parser for inventory to sensor mapping yaml.Tom Joseph2017-05-193-0/+99
| | | | | | | | | | Write python-based parser for inventory-sensor.yaml. The parser generates inventory-sensor-gen.cpp, which is contains a map containing the inventory object path as key and the sensor related info as the value. Change-Id: Ib0e0f61f075b0ba777417a8032074c9b66b2eef7 Signed-off-by: Tom Joseph <tomjoseph@in.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-197-88/+180
| | | | | | | | | 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>
* Set init_priority attribute for global/static variablesLei YU2017-05-161-8/+8
| | | | | | | | | | | | The initialization order of global/static variables and functions with constructor attribute is unspecified. Set init_priority attribute to specify the initialization order. Resolves openbmc/openbmc#1581 Change-Id: Ia85804b3b9e537e0f32b712a3ce92e7d0be554b2 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add timeout support to host controlAndrew Geissler2017-05-098-25/+78
| | | | | | | On timeout, send error signal for all commands within the queue Change-Id: Ic995fd4b057bd83f121a3deec405a26e0991e9a2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update gitignore with new softoff and test filesAndrew Geissler2017-05-091-1/+8
| | | | | Change-Id: I36e59710b34b024926fe0a721b42eaea0d5e2447 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>
* Add sd_event processing to host ipmid applicationAndrew Geissler2017-05-093-15/+32
| | | | | | | | 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>
* Enable multiple commands to be queued at onceAndrew Geissler2017-05-092-8/+31
| | | | | | | | 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-0911-85/+187
| | | | | | | 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-093-2/+39
| | | | | 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-099-148/+70
| | | | | | | | 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-095-0/+203
| | | | | | | | | | | | 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>
* Set the TurboAllowed sensor value correctly.Tom Joseph2017-05-041-1/+1
| | | | | | | | | | Set the TurboAllowed to True for an assertion event and set it to false for a deassertion event. Resolves openbmc/openbmc#1530 Change-Id: I3ee59e8770e75b02cdf83a956439f79779d2760c Signed-off-by: Tom Joseph <tomjoseph@in.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>
* storageaddesel: switch to 'report' error APIMarri Devender Rao2017-04-271-11/+2
| | | | | | | | | 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: I3feb36e41e8dd18a279b34508f8967a4f74485e4 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Add Sensor reading support for Power Cap.Jayanth Othayoth2017-04-181-0/+2
| | | | | Change-Id: I695c5a7e4da99b6ec1fe3045df91f483b6cad69c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* sensorhandler: removed un-needed sd_bus_refPatrick Williams2017-04-181-1/+1
| | | | | | | | sdbusplus's bus object has a change in semantics that no longer require a 'sd_bus_ref' call. See changes for openbmc/openbmc#1432. Change-Id: I6e953cfbd83abec1534e75b8fbf6c7e5b711ceb3 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Cater for change in exception variable namesMarri Devender Rao2017-04-121-1/+1
| | | | | Change-Id: I9c723dd8c1c411c297906fcce635e32b3d8428cc Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Added gitignore for phosphor-host-ipmi repoAndrew Geissler2017-04-071-0/+50
| | | | | Change-Id: I86fc1cc21442a5675148fcb0aff34c8034af624a Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* IPMI: Remove the old host-services files from ipmidVishwanatha Subbanna2017-04-044-155/+0
| | | | | Change-Id: Ia497bf79047f442374d0b2b8508338a556b60099 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* IPMI: Update the dbus object for soft power off with underscoresVishwanatha Subbanna2017-04-043-10/+8
| | | | | | | Fixes openbmc/phosphor-host-ipmid#102 Change-Id: I3e7456401b7265a51578f9aa08bef2ae3f326849 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* sensor: Reuse ipmid bus for inventory-notifyPatrick Williams2017-03-311-1/+1
| | | | | | | Partially fixes openbmc/openbmc#875. Change-Id: Id1cf69f5e4e5413d95ebeccf73abde1de76de3e4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add Sensor Reading Support for Power Supply DeratingJayanth Othayoth2017-03-302-1/+4
| | | | | Change-Id: I0eb106c37c33db01937ec61dd5553b5799651633 Signed-off-by: Jayanth Othayoth <ojayanth@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>
* Sensor Reading Support for Turbo AllowedJayanth Othayoth2017-03-282-1/+4
| | | | | Change-Id: Ib2e89383fa1da4d3216ad5c50d257ec973547b71 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add gtest cases to verify sd_event timerVishwanatha Subbanna2017-03-274-1/+179
| | | | | Change-Id: I6db746adc969a322f463c00143938c7c2339ff86 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Handle response from host for soft power off requestVishwanatha Subbanna2017-03-274-8/+58
| | | | | 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-274-4/+75
| | | | | Change-Id: I738be7b70554125e544aa59fe1770e909d3dffb1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* IPMI Sensor Support for Power Supply RedundancyDhruvaraj S2017-03-272-1/+2
| | | | | Change-Id: Id475849a77fd18e8f6b05c73f55866aba604c9a7 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Make IPMI changes to stop timer that is started by SoftPowerOffVishwanatha Subbanna2017-03-242-0/+88
| | | | | | | | | As part of Soft Power Off, there may be a timer that would be running. This patch will stop the timer when IPMI daemon receives response from host for SoftPowerOff sequence of commands. Change-Id: Idacbff36444629623f8754de3d81d292ca19bb85 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-226-5/+159
| | | | | | | | 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>
* 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>
* Move object_mapper per dbus path conventions.Leonel Gonzalez2017-03-201-1/+1
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: Ib18a75924560f73f1795ee96c7645d43abb4b515 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* libapphandler:adding the dependecy for phosphor-dbus-interfacesRatan Gupta2017-03-201-2/+2
| | | | | Change-Id: I2f0cc95b05c8a4d091a49370c6d2eaf9d06a469d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* error-log: catch sdbusplus exception typeDeepak Kodihalli2017-03-161-2/+2
| | | | | Change-Id: Ied012155c8382e1077521613a8a49d61c4becc6b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* inventory: undo the capitilization of yaml decoderRatan Gupta2017-03-161-6/+5
| | | | | | | | yaml decoder capitalize the boolean values which is not liked by c++ compiler so undoing the capitalization. Change-Id: I1de142de76e21b2759db759c5a182c42400e34d1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Modify set sensor reading commandTom Joseph2017-03-156-8/+197
| | | | | | | | | The Set Sensor handling code is modified to use generated code for CPU, Core & DIMM sensors with Presence & Functional offset. Change-Id: I3b7fa4da870b745873da4732d457d793f5549ada Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* build : provide sensor yaml as configRatan Gupta2017-03-152-5/+14
| | | | | | | | | | Make it possible for the phosphor-host-ipmid recipe to be able to supply the sensor YAML as configurable input. Use sensor-example.yaml as input. Change-Id: Iefbfeeff5561e6e90543fc7a69c04aeee5e76dd1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* inventory: adding sensor-example.yamlRatan Gupta2017-03-151-0/+68
| | | | | | | | This is an example file which would be used if config file was not generated during build time. Change-Id: I4f31b72ffacff4dc6641c999186997e77a954823 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud