commit | 73769099e215de68fbb6c82664eb682cacce9f56 | [log] [tgz] |
---|---|---|
author | Duke Du <Duke.Du@quantatw.com> | Wed Apr 14 15:35:21 2021 +0800 |
committer | Duke <Duke.Du@quantatw.com> | Fri Apr 23 02:49:58 2021 +0000 |
tree | 2fc10457a1a13c09633514741894d9d5ea791a04 | |
parent | f4414cba09577e906b7b022a96b41e6a859da149 [diff] |
Send high/low alarm signal when sensor reading exceeds threshold The change to the xyz.openbmc_project.Sensor.Threshold.Warning and xyz.openbmc_project.Sensor.Threshold.Critical interface that add the new signals WarningHighAlarmAsserted, WarningHighAlarmDeasserted, WarningLowAlarmAsserted, WarningLowAlarmDeasserted, CriticalHighAlarmAsserted, CriticalHighAlarmDeasserted, CriticalLowAlarmAsserted and CriticalLowAlarmDeasserted. When sensor reading exceeds the threshold, hwmon would send the signal with the sensor reading value at that time. Tested: Use dbus-monitor command to check the signal is captured, when hwmon send signals. Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: Ibf050b8bcff128cf77fd103c6d2bd1f30700b27b
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
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 a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.