summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* sensorhandler: Add functionality to use m, b, b_exp from config.yamlEmily Shaffer2017-07-171-23/+34
| | | | | | Change-Id: I1b5b8a5e0e5abd74eadde494728f363cf1ca4ec6 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: implement get SDREmily Shaffer2017-07-171-2/+157
| | | | | | Change-Id: I79dc59585c1f3008fc42e95a5a4792afd7268255 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: add reserve_sdrEmily Shaffer2017-07-171-13/+42
| | | | | | Change-Id: I58300910e4cdb0c889e030615a034443816ae5db Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: add get_sdr_infoEmily Shaffer2017-07-171-0/+35
| | | | | | Change-Id: I13c82b62cec1c2f505fa81786fdc60cb38b2a636 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: add missing pointer initializationPatrick Williams2017-06-131-1/+1
| | | | | | | | | | An uninitialized pointer was being sent to 'free' in cases where a dbus object was not found to back a sensor. Fixes openbmc/openbmc#1740. Change-Id: Iaa62bfe460c47f4a51a506b0219879f0b6d46dd4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: modify Get Sensor Reading to use dbus interfaceEmily Shaffer2017-06-061-0/+56
| | | | | 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-061-10/+50
| | | | | Change-Id: I846d538643af77705d5160bf4d9127f758b5c749 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* sensorhandler: Refactor find_sensor to eliminate redundant callEmily Shaffer2017-05-191-14/+19
| | | | | | | | 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>
* 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>
* 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-301-0/+1
| | | | | Change-Id: I0eb106c37c33db01937ec61dd5553b5799651633 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Sensor Reading Support for Turbo AllowedJayanth Othayoth2017-03-281-0/+1
| | | | | Change-Id: Ib2e89383fa1da4d3216ad5c50d257ec973547b71 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* IPMI Sensor Support for Power Supply RedundancyDhruvaraj S2017-03-271-0/+1
| | | | | Change-Id: Id475849a77fd18e8f6b05c73f55866aba604c9a7 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Modify set sensor reading commandTom Joseph2017-03-151-7/+110
| | | | | | | | | 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>
* Add privilege level for each IPMI commandTom2017-01-171-6/+12
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Fix type overflow in find_sensorBrad Bishop2016-10-061-4/+9
| | | | | | Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I700c5847685b4432c1da42ec470860f1785b9abf
* Print failing object path after failed bus lookupBrad Bishop2016-10-061-2/+4
| | | | | Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Refactor the code related to Sensor handlingTom2016-09-231-2/+202
| | | | | | | | | The sensor related code is moved to sensorhandler.c. These changes were part of the ipmi daemon code and would have to replicated in RMCP daemon. The refactoring would get away with those changes. Change-Id: Ib9e1a1929282221e6f259e4a54502eea82f42939 Signed-off-by: Tom <tomjoseph@in.ibm.com>
* Modify respond of un-supported IPMI commandNan Li2016-09-091-1/+1
| | | | | | | | | | | A number of callbacks are registered for 'WILDCARD' types, which currently do nothing except respond with CC_OK(00h). Change complete codes to CC_INVALID(C1h). Resolves openbmc/openbmc#469. Change-Id: I91ea5ee1a23284a4159ff1c1867342e89c6fa444 Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Allow out-of-tree buildsPatrick Williams2016-09-061-1/+1
| | | | | Change-Id: If4b97e65f63c3abbf23140dd97b9febe00b3be0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Switch C++ source files to .cpp extensionMatthew Barth2016-08-081-0/+262
Change-Id: I495186b4afd58ec1e5d9d5c6472394f96541d17d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud