Skip to content

mlxsw: Thermal and hwmon extensions

Ido Schimmel netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* In patch #3, replace '%u' with '%d' in mlxsw_hwmon_module_temp_show()

[1] https://patchwork.ozlabs.org/patch/1107161/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: core: Extend thermal core with per inter-connect device thermal zonesdrivers/net/ethernet/mellanox/mlxsw/core_thermal.c+136 -11 reply
2/3mlxsw: core: Add the hottest thermal zone detectiondrivers/net/ethernet/mellanox/mlxsw/core_thermal.c+62 -130 replies
3/3mlxsw: core: Add support for negative temperature readoutdrivers/net/ethernet/mellanox/mlxsw/core_hwmon.c drivers/net/ethernet/mellanox/mlxsw/core_thermal.c drivers/net/ethernet/mellanox/mlxsw/reg.h+20 -201 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] mlxsw: Thermal and hwmon extensions

From: Ido Schimmel <[email protected]>

This patchset from Vadim includes various enhancements to thermal and hwmon code in mlxsw.

Patch #1 adds a thermal zone for each inter-connect device (gearbox). These devices are present in SN3800 systems and code to expose their temperature via hwmon was added in commit 2e265a8b6c09 ("mlxsw: core:
Extend hwmon interface with inter-connect temperature attributes").

Currently, there are multiple thermal zones in mlxsw and only a few cooling devices. Patch #2 detects the hottest thermal zone and the cooling devices are switched to follow its trends. RFC was sent last month [1].

Patch #3 allows to read and report negative temperature of the sensors mlxsw exposes via hwmon and thermal subsystems.

v2 (Andrew Lunn):
* In patch #3, replace '%u' with '%d' in mlxsw_hwmon_module_temp_show()

[1] https://patchwork.ozlabs.org/patch/1107161/

Vadim Pasternak (3):
mlxsw: core: Extend thermal core with per inter-connect device thermal
zones
mlxsw: core: Add the hottest thermal zone detection
mlxsw: core: Add support for negative temperature readout

 .../net/ethernet/mellanox/mlxsw/core_hwmon.c  |  14 +-
 .../ethernet/mellanox/mlxsw/core_thermal.c    | 208 +++++++++++++++++-
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  12 +-
 3 files changed, 209 insertions(+), 25 deletions(-)
Signature · 1 line
2.20.1