mbox series

[net-next,0/3] mlxsw: Expose critical and emergency module alarms

Message ID 20200903134146.2166437-1-idosch@idosch.org
Headers show
Series mlxsw: Expose critical and emergency module alarms | expand

Message

Ido Schimmel Sept. 3, 2020, 1:41 p.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

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(-)

Comments

David Miller Sept. 3, 2020, 7:12 p.m. UTC | #1
From: Ido Schimmel <idosch@idosch.org>
Date: Thu,  3 Sep 2020 16:41:43 +0300

> Amit says:
> 
> Extend hwmon interface with critical and emergency module alarms.
 ...

Looks good, series applied, thanks.