summaryrefslogtreecommitdiffstats
path: root/gen_ipmi_sensor.pl
Commit message (Collapse)AuthorAgeFilesLines
* Seperate write interface method file for reuseMarri Devender Rao2018-03-231-23/+27
| | | | | | | | Seperated out write interfaces to a new method so that it can be used for writing temperature sensor data. Change-Id: I6b44d1dc2623230c3ec726e1ad18790a93ad7497 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* sensor: Add metadata for sensor to handle SDR commandsTom Joseph2018-02-011-3/+25
| | | | | | | | | a) Entity ID is read from the MRW for each sensor populated in yaml. b) Entity instance is populated for corresponding entity ID. c) Sensor name pattern is read from the config yaml. Change-Id: I933650f9c99f79ee60d5513cf7ff9b7f6b14b768 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* MRW Parser changes to add Pre-Req blockDhruvaraj Subhashchandran2017-10-111-12/+5
| | | | | | | | A new block for prereq is added to the sensor config which tells pre-req values for a dbus property Change-Id: I87e657fefb16f5bc1bfe01f61b25cbdf7af56790 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Adding pre-req for IPMI assertionsDhruvaraj Subhashchandran2017-09-271-4/+14
| | | | | | | | | A pre-req condition can be added for a sensor value, for example presence of a unit should be true for functional to be true. Change-Id: I7b87c7ffa29f06160164aba2b39c743f0f9c733f Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Fixes for mapping ipmi sensors to d-bus objectsDeepak Kodihalli2017-08-141-34/+34
| | | | | | | | | | | - The input sensor yaml now uses the sensor instance name as the key, instead of the sensor type. This was required because two sensors with the same sensor type can map to different d-bus objects. - The script has a work-around to map MRW occ paths to d-bus occ paths. Simplify this workaround and add a TODO to remove the workaround. Change-Id: I155fbcfe11a0dcc456415d70a026fe00de84051b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Config yaml as input instead of directoryDhruvaraj Subhashchandran2017-08-071-33/+18
| | | | | | | | | | Giving the config yaml directory will make the perl to merge and break the existing perl script. Instead of a directory path config.yaml itself is given as input to the gen_ipmi_sensor.pl. Removed unsused attributes and fixed path for some virtual sensors. Change-Id: Icef03392f0c350e81b63ef2d7c9c377bcff8ccbf Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* MRW changes for non-sensor sensorsDhruvaraj Subhashchandran2017-07-241-7/+18
| | | | | | | | | | | Resolves openbmc/openbmc#1558 Added change to take additional parameters from input yaml and get the path from input yaml if there is no proper inventory path available. Change-Id: I495ea16f9caea4fa911b0212c7edf55bfcb26b0f Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* OCC Active: MRW parser updates for accepting multiple yamlsDhruvaraj Subhashchandran2017-07-241-9/+45
| | | | | | | | The MRW parser for IPMI sensor is updated to accept multiple yamls and generate output sensor yaml. Change-Id: I623071fe491b098d005215045acbf155ad5077a1 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* gen_ipmi_sensor.pl: construct sensor metadataRatan Gupta2017-03-091-4/+46
| | | | | | | | | | Generates a file to depict which dbus properties are implemented for a sensor, and how IPMI sensor data map to those dbus properties. This commit defines a YAML file which helps figure out the supported dbus interface/properties for a sensor and how to get the sensor value. Change-Id: I62ddd3b8546cd036663708c5aa6041523e399e4f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* gen_ipmi_sensor.pl : Fetch sensor information from MRWRatan Gupta2017-03-091-0/+106
This commit serves as a building block since the script can now just print certain attributes (see output example below) for sensors defined in the MRW. Output example: sensorID: sensorType: sensorReadingType: ObjectPath 0xa1 : 0x07 : 0x6F : /sys/chassis/board/cpu1/core0 Change-Id: Ice89a6b6294d94fded4eb92f628b8f62ef02b7ed Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud