summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
Commit message (Collapse)AuthorAgeFilesLines
* rename headers to match stylePatrick Venture2018-09-251-642/+0
| | | | | | | | | | | | | | | | | | 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>
* add .clang-formatPatrick Venture2018-09-071-87/+82
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Implement Get SDR and Reserve SDR repository commandTom Joseph2018-03-011-3/+14
| | | | | | | | | | | Both Get SDR and Reserve SDR repository command is same as Get Device SDR and Reserve Device SDR command respectively. So the same implementation is shared. Resolves openbmc/openbmc#2615 Change-Id: I64e37837bc5a616bed41a3ceff7d63033d88455c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensor: Updates to the get device sdr command implementationTom Joseph2018-03-011-0/+6
| | | | | Change-Id: Ibf5989b144ebe4ec75bd8d42c1d1167d7b16ecda Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensor: Refactor get sensor thresholds commandTom Joseph2018-03-011-2/+7
| | | | | | | | | | | | Using GetManagedObjects to get the thresholds could take upto 15~20 sec for the core temperatures. The time taken to fetch threshold properties via GetManagedObjects is proportional to the number of objects under the path. Since the dbus object path is available in the yaml it is performant to read the threshold properties directly. Change-Id: Ic22d8f4d73d8ce4eabdffd6fc7af23f73b981f66 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* SDR: Adding fru records as part of Get SDR commandRatan Gupta2018-02-131-3/+72
| | | | | | | | | | | Currently Get SDR only responds with physical/virtual sensor records,it doesn't support for FRU records,This commit adds the support for FRU records. Resolves openbmc/openbmc#2776 Change-Id: I34edfa892b32f4e866cf0c084d97c2f3482d40f4 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Support Get Sensor Thresholds CommandDhruvaraj Subhashchandran2018-02-061-0/+11
| | | | | | | | | Adding support for sensor thresholds command Resolves openbmc/openbmc#2624 Change-Id: I904c1b18c8709bceb7ecb7eec6e8e42e1f51525a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* 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