commit | fa500ae9aba49c49e2855434d301662671cfe185 | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Fri May 21 16:46:36 2021 +0930 |
committer | Andrew Jeffery <andrew@aj.id.au> | Tue Jun 01 14:58:33 2021 +0930 |
tree | bcad0d4a67adce8e645692d76203a68836bc180a | |
parent | dae6e186327928bb78cd8cb9f0bf328dbb761a44 [diff] |
NVMeContext: Improve encapsulation of state Consolidate NVMe MI MCTP message exchange and data parsing in the NVMeContext implementation, and prevent NVMeSensorMain reaching into internal details of NVMeContext when adding new sensors. Previously message data parsing was intermixed with the MCTP message handler implementation. Instead, make the MCTP message handler simply dispatch the message buffer to the appropriate context instance. Refactoring the code in this way makes it easier to later extract a base class from the NVMeContext implementation. Change-Id: I77bdfb703fd3da43186994d7b306076bd092afcf Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access