commit | 04da055198fe03f119e53578ac80a6188461b748 | [log] [tgz] |
---|---|---|
author | Thang Q. Nguyen <thang@os.amperecomputing.com> | Mon Jul 19 04:24:31 2021 +0000 |
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | Tue Jul 20 03:01:03 2021 +0000 |
tree | 8d29817333f3120a9b455d4511ea13c72e5415d3 | |
parent | 9c4053455f479c85221712f790187076669e0d59 [diff] |
sensor: accept single sensor threshold Currently, sensors require a couple of LC/UC and/or LNC/UNC. However, in real hardware design, there might be only one of LC, UC, LNC or UNC available. This change allows to specify only single sensor threshold. Tested: 1. Specify only UC threshold for PSU0_Temp sensor 2. root@mtjade:~# ipmitool sensor get PSU0_TEMP Locating sensor record... Sensor ID : PSU0_TEMP (0xf3) Entity ID : 30.58 Sensor Type (Threshold) : Temperature Sensor Reading : 26 (+/- 0) degrees C Status : ok Lower Non-Recoverable : na Lower Critical : na Lower Non-Critical : na Upper Non-Critical : na Upper Critical : 64.000 Upper Non-Recoverable : na Positive Hysteresis : Unspecified Negative Hysteresis : Unspecified Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I70fa136c6d96a6edc2ed1a6a65eee85b6ff62e39
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. meson build 2. ninja -C build To clean the repository run `rm -rf build`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is either a std::hash of the /sys/devices path backing the hwmon class instance or provided suffix value from the command line, and N is the implemented phosphor-hwmon D-Bus API version.