summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
Commit message (Collapse)AuthorAgeFilesLines
* sensor: Modify Get Device SDR command implementationTom Joseph2018-01-301-0/+5
| | | | | | | | | | a) Specify the sensor name deduction in the yaml b) Entity ID and entity instance is populated c) Sensor owner is set to BMC address, since all the sensors are present on the BMC. Change-Id: I7b64c48ad1dbd386e12b20af459e40baf0d97cd4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.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>
* sensor: Map dbus info to sensor's reading fieldTom Joseph2017-09-141-0/+10
| | | | | Change-Id: I3e35bf78260b1fa29e992b00279f2dd166cd2fe1 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensor: Add function to support sensor with readingAssertion typeTom Joseph2017-09-141-0/+14
| | | | | | | | readingAssertion is special type where the entire assert bitfield serves as the value or reading. Change-Id: Iaddbe846e04d2a53cff69d71670a96ccc66636a8 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensor: Add function to map dbus info to reading fieldTom Joseph2017-09-141-0/+11
| | | | | | | | | For sensor's with reading type eventData2, the eventdata2 field is mapped to the reading field in the get sensor reading command response. Change-Id: I9ad85ddb48d6c273a22e476e29ea9bbb34c13e24 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensor: Add function to map dbus info to assertion statusTom Joseph2017-09-141-19/+32
| | | | | Change-Id: I30aae9abd7905ae3299856d798d41e10859fed7f Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensorhandler: fix a couple bitbash bugs affecting linearizationEmily Shaffer2017-08-301-4/+6
| | | | | Change-Id: I2c50480eb8e74199efacf8db5f4d5a1d4f1fcdd8 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* tpm: Support TPM Sensor type in Get sensor reading commandTom Joseph2017-08-231-0/+1
| | | | | Change-Id: Icf4a10d8f6e2b95dae3d7dcf789711c5a3a46a39 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensorhandler: Add functionality to use m, b, b_exp from config.yamlEmily Shaffer2017-07-171-1/+1
| | | | | | 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-0/+387
| | | | | | 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-0/+1
| | | | | | 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-2/+47
| | | | | | Change-Id: I13c82b62cec1c2f505fa81786fdc60cb38b2a636 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: modify Get Sensor Reading to use dbus interfaceEmily Shaffer2017-06-061-0/+9
| | | | | Change-Id: Ice16bda6c151b0865f3fa6e8234b8e2456d5b887 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* sensorhandler: Refactor find_openbmc_path to check sensor map firstEmily Shaffer2017-06-061-1/+1
| | | | | Change-Id: I846d538643af77705d5160bf4d9127f758b5c749 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* Modify set sensor reading commandTom Joseph2017-03-151-0/+19
| | | | | | | | | 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-0/+1
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Refactor the code related to Sensor handlingTom2016-09-231-0/+4
| | | | | | | | | 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>
* Add support for get-sensor-readingChris Austen2015-12-101-0/+1
|
* Added Dynamic lookup for sensor typesChris Austen2015-10-221-2/+11
| | | | | | | Fixed bug where ipmi sensor readings > offset 7 where not asserted Added testcases for code Kept sensors 35,37-3A hardcoded until dbus side decides if they want to represent them.
* Add sensor ipmi commandsChris Austen2015-10-131-0/+13
OpenPOWER on IntegriCloud