Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
General
Excerpt | ||
---|---|---|
| ||
This feature adds monitoring capabilities of fan’s thermal state, target RPM, and LED state. The Statistics Manager (SM) is extended with thermal state, fan RPM and LED state. This information is essential for detecting potential fan failures. If the actual fan RPM deviates outside a specified range from the target RPM, PM reacts by setting the LED state to a hardware error state. |
Northbound API
New fields have been introduced to src/lib/protobuf/opensync_stats.proto
:
...
thermal_state
… Represents the currently active thermal state, determined from the SPFAN_State entry with key equal to Node_Services. This value is written into OVSDB by PM.target_rpm
… Indicates the RPM we are trying to set on the fan. This value is derived from the device's thermal table, translating the current thermal state into the target RPM.led_state
… Represents the current LED state, determined from the led_config entry of AWLAN_Node. This value is written into OVSDB by PM.
Southbound API
No Southbound API functions need implementation, as all required data is obtainable from OVSDB tables and existing helper functions within PM.
Requirements
New fields thermal_state
and target_rpm
are related to thermal management and fan control which is why PM and its plugin TM need to be enabled via the following kconfig options:
...