commit | 79205b2c1466f8ee7ab11dc976d33ac0771355ea | [log] [tgz] |
---|---|---|
author | Brandon Kim <brandonkim@google.com> | Thu Jun 20 12:18:24 2019 -0700 |
committer | Brandon Kim <brandonkim@google.com> | Wed Jul 10 15:47:31 2019 -0700 |
tree | 54df15bac84bc9cb30e918f9d39bcff9ee6fc066 | |
parent | 0892c3fbb5a984554f576489ab57e70fb46a127d [diff] |
sensor: Add UPDATE_FUNCTIONAL_ON_FAIL and its behavior Add the build switch UPDATE_FUNCTIONAL_ON_FAIL. When enabled, sensor read failures will not exit the mainloop. Instead, mainloop will update the Functional property and skip the read of that sensor. This will skip the "Remove RCs" check during value interface creation in MainLoop::getObject. However, it will perform the "Remove RCs" checks during MainLoop::read. Tested: I was able to use busctl to read the Functional property of a custom driver to test with UPDATE_FUNCTIONAL_ON_FAIL defined. 1. Negative values were reported, Functional was true 2. Sensor reporting errors had stale values, Functional was set to false Resolves: openbmc/phosphor-hwmon#10 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I0984dad12250e9587ec36de2f9212de0b0e1cda6
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.