From: Ido Schimmel <[email protected]>

Amit says:

Extend hwmon interface with critical and emergency module alarms.

In case that current module temperature is higher than emergency
threshold, EMERGENCY alarm will be reported in sensors utility:

$ sensors
...
front panel 025:  +55.0°C  (crit = +35.0°C, emerg = +40.0°C) ALARM(EMERGENCY)

In case that current module temperature is higher than critical
threshold, CRIT alarm will be reported in sensors utility:

$ sensors
...
front panel 025:  +54.0°C  (crit = +35.0°C, emerg = +80.0°C) ALARM(CRIT)

Patch set overview:

Patches #1-#2 make several changes to make the code easier to change.

Patch #3 extends the hwmon interface with the new module alarms.

Amit Cohen (3):
  mlxsw: core_hwmon: Split temperature querying from show functions
  mlxsw: core_hwmon: Calculate MLXSW_HWMON_ATTR_COUNT more accurately
  mlxsw: core_hwmon: Extend hwmon interface with critical and emergency
    alarms

 .../net/ethernet/mellanox/mlxsw/core_hwmon.c  | 152 +++++++++++++++---
 1 file changed, 134 insertions(+), 18 deletions(-)

-- 
2.26.2

Reply via email to