#
a1bd285e |
| 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
Change-Id: I2e1710e269896e36a8bd864cfc81ff3b1c033222 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
11d68897 |
| 20-Jan-2022 |
Willy Tu <wltu@google.com> |
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosph
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/47748
Tested: Ipmi command works fine the cleanup. ``` $ systemctl status phosphor-ipmi-host ● phosphor-ipmi-host.service - Phosphor Inband IPMI Loaded: loaded (/lib/systemd/system/phosphor-ipmi-host.service; enabled; vendor preset: enabled) Active: active (running) since Thu 1970-01-08 21:20:56 UTC; 21s ago Main PID: 24987 (ipmid) CGroup: /system.slice/phosphor-ipmi-host.service └─24987 /tmp/ipmid
Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X32] for Sys Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: I2C_WHITELIST_CHECK is disabled, do not populate whitelist Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone Control Jan 08 21:20:56 $HOST systemd[1]: Started Phosphor Inband IPMI. Jan 08 21:20:56 $HOST ipmid[24987]: Loading whitelist filter Jan 08 21:20:56 $HOST ipmid[24987]: Set restrictedMode = true (reverse-i-search)`ipmi': systemctl status phosphor-^Cmi-host
$ ipmitool mc info Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 7244 Manufacturer Name : Quanta Computer Inc. Product ID : 14426 (0x385a) Product Name : Unknown (0x385A) Device Available : yes Provides Device SDRs : yes Additional Device Support : Sensor Device SEL Device FRU Inventory Device Chassis Device Aux Firmware Rev Info : 0x00 0x00 0x00 0x00 ```
Change-Id: I372c9433a274bc633a24d213b7a1bc205531e33d Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
c5324251 |
| 31-Oct-2019 |
Tony Lee <tony.lee@quantatw.com> |
Fix issues and support signed sensor values Sensor will get "disable" when the command "ipmitool sdr elist" is executed that if sensorReadingType is 0x6F. sensor_units_1 is alwa
Fix issues and support signed sensor values Sensor will get "disable" when the command "ipmitool sdr elist" is executed that if sensorReadingType is 0x6F. sensor_units_1 is always set to 0 currently. To support the display of signed sensor values, we add the attribute "sensorUnits1" to the sensor mapping yaml. This attribute can be used to determine whether the sensor is signed. It were making negative values 0 in get::readingData(). Fix the issue by using a int32_t and add an overflow check. Change-Id: I705defcf18805db9ada7d0de0738a59aedab61df Signed-off-by: Tony Lee <tony.lee@quantatw.com>
show more ...
|
#
be4ffa87 |
| 10-Aug-2020 |
Jeremy Kerr <jk@codeconstruct.com.au> |
sensor yaml: allow custom sensor names Currently, we can only name sensors based on data from the dbus object implementing a sensor's interface. While this mostly works, there may no
sensor yaml: allow custom sensor names Currently, we can only name sensors based on data from the dbus object implementing a sensor's interface. While this mostly works, there may not be a sensible name to extract in all cases. This change introduces an optional sensorName property to the sensor YAML description, which allows a custom name to be used. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Change-Id: I3f3b8ef581c70fbde94db122d4f3c0ca181c6ff7
show more ...
|
#
7453544d |
| 07-Jun-2019 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
yaml: drop execute permissions from yaml files Functionally this doesn't change anything but executable data files would seem to be in conflict with typical idioms. Change-Id: I
yaml: drop execute permissions from yaml files Functionally this doesn't change anything but executable data files would seem to be in conflict with typical idioms. Change-Id: I5eddfd8a8be3d1b9eb53062fb60e46b845008fd9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
bbf8bd6c |
| 01-May-2019 |
Santosh Puranik <santosh.puranik@in.ibm.com> |
sensordatahandler: Support empty inventory interfaces This commit adds support for empty inventory interfaces when asserting a sensor into the inventory. This is something already su
sensordatahandler: Support empty inventory interfaces This commit adds support for empty inventory interfaces when asserting a sensor into the inventory. This is something already supported in ipmi-fru-parser, for example. Currently, the notify::assertion function expects that each DBUS interface also have a set of associated properties. One of the use-cases this commit tries to solve is when a sensor being asserted maps to an inventory item (accessed via xyz.openbmc_project.Inventory.Manager DBUS service) that implements a DBUS interface with no properties. For example, the GPU sensor is mapped to a GPU inventory object that implements the DBUS interface xyz.openbmc_project.Inventory.Item.Accelerator. This commit enables phosphor-host-ipmid to correctly create/update inventory objects even in cases where they implement DBUS interfaces that contain no properties. The sensor-example.yaml file has been updated to show an example of a GPU sensor, the inventory object for which implements a property-less DBUS interface. Tested: Tested on a witherspoon system that had some GPUs attached to it. Pulled also https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/21107 in order to generate the right sensor configs for testing. Verified that the GPU invetory objects that are created when the host asserts a GPU sensor now implement the empty interface xyz.openbmc_project.Inventory.Item.Accelerator Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com> Change-Id: I973580e285ae0fff1a513d3bbe8c03a89e0eeb83
show more ...
|
#
0922bde4 |
| 02-Apr-2018 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
sensorhandler: Enable mutability based set function Resolves openbmc/openbmc#2980 Change-Id: I67afd4e84ec96e5cfc2dd315604d70f41c67a438 Signed-off-by: Jayanth Othayoth <ojayanth@
sensorhandler: Enable mutability based set function Resolves openbmc/openbmc#2980 Change-Id: I67afd4e84ec96e5cfc2dd315604d70f41c67a438 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|
#
0a1301c1 |
| 15-Feb-2018 |
Tom Joseph <tomjoseph@in.ibm.com> |
sensor: Add result exponent to the sensor yaml Result exponent sets the decimal point location for the result before the linearization function is applied. This is different from the sca
sensor: Add result exponent to the sensor yaml Result exponent sets the decimal point location for the result before the linearization function is applied. This is different from the scale implemented by the sensors dbus objects. The scale is the scaling factor to get the value for the units specified for the sensor. Linearization is done after applying the scale on the raw sensor value. Change-Id: I76624c593bf6cdf40ec884c0ff0aceb58746732c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
show more ...
|
#
31ff6e6f |
| 24-Jan-2018 |
Tom Joseph <tomjoseph@in.ibm.com> |
sensor: Populate entity id, instance and sensor name callback Change-Id: Ie7bf403ae15d9b1a70216aab0c57362c3d4240e7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
#
e245e4e9 |
| 03-Oct-2017 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
IPMI changes to mark non present as non functional When marking a unit as functional, both functional state and presence need to be checked to avoid marking non-present units as func
IPMI changes to mark non present as non functional When marking a unit as functional, both functional state and presence need to be checked to avoid marking non-present units as functional. Change-Id: If7b710c39f1c2590b82378ebdb7014dc924599ff Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
e84841ce |
| 22-Aug-2017 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
IPMI changes to skip updating non present cores Cores which are not present need not to be updated to inventory. This change is for skipping several updates to inventory based on ski
IPMI changes to skip updating non present cores Cores which are not present need not to be updated to inventory. This change is for skipping several updates to inventory based on skipOn value. Change-Id: I29e005a715ccae1df6eeaf35561a20896ecde0ac Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
cc941e15 |
| 14-Jun-2017 |
Emily Shaffer <emilyshaffer@google.com> |
sensorhandler: support setting analog sensors Refactor YAML format to denote mutability of sensors. Sensors which expect different formats for reads and writes should present tw
sensorhandler: support setting analog sensors Refactor YAML format to denote mutability of sensors. Sensors which expect different formats for reads and writes should present two entries in the sensor YAML, one with the read interface and one with the write interface. Sensors which share a format for both reads and writes may present only one entry in the YAML with both readable and writable enums specified. If a sensor receives a write which has an interface of Sensor.Value, the "Set" message is sent via DBus to the path provided in the YAML. The previous codepath is maintained. Change-Id: I292f95b6fe936de759fd65ce72c842a1bfe66448 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
1bb0d387 |
| 12-Aug-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Refactor set sensor handling code A summary of the changes: - Do not generate per sensor type code to update d-bus objects corresponding to sensors. Function to update d-bus o
Refactor set sensor handling code A summary of the changes: - Do not generate per sensor type code to update d-bus objects corresponding to sensors. Function to update d-bus objects based on standard sensor event types, such as assertion, event data, are now generic functions - the need not be generated per sensor or per sensor type. - There's a special case where the assertion is treated as a reading (i.e read the entire assertion field as-is). In this case, code needs to be generated per sensor because the type of the mapped d-bus property can vary. In this case have a generic template function, and generate minimal code like so: inline ipmi_ret_t readingAssertion(const SetSensorReadingReq& cmdData, const Info& sensorInfo) { // Corresponding d-bus property is uint32_t return set::readingAssertion<uint32_t>(cmdData, sensorInfo); } - Make sensor-example.yaml succinct. - Make the code in writesensor.mako.cpp more pythonic. Change-Id: I84415ca6e3f756bbb51a90e290539eb086a7f78b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
#
e0af7209 |
| 12-Jul-2017 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
IPMI: Virtual sensor support in host ipmid Resolves openbmc/openbmc#1608 Change-Id: Id76446061fd0fa6dc3dead702538e424293af7ce Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj
IPMI: Virtual sensor support in host ipmid Resolves openbmc/openbmc#1608 Change-Id: Id76446061fd0fa6dc3dead702538e424293af7ce Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
#
47bf3edd |
| 03-Mar-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
inventory: adding sensor-example.yaml This is an example file which would be used if config file was not generated during build time. Change-Id: I4f31b72ffacff4dc6641c999186997e
inventory: adding sensor-example.yaml 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>
show more ...
|