]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Extend thermal module with per QSFP module thermal zones
authorVadim Pasternak <vadimp@mellanox.com>
Thu, 14 Feb 2019 20:22:55 +0000 (20:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 18:57:49 +0000 (10:57 -0800)
commitf01f5bdbdb6d6b99e05702e149b5723e73ffb5d5
tree970d8074694c394bf57044e85eee842f4a54caf0
parent44f6cd37bb338e59bc85b9ee52617fafed50a39a
mlxsw: core: Extend thermal module with per QSFP module thermal zones

Add a dedicated thermal zone for each QSFP/SFP module. The current
temperature is obtained from the module's temperature sensor and the
trip points are set based on the warning and critical thresholds
read from the module.

A cooling device (fan) is bound to all the thermal zones. The
thermal zone governor is set to user space in order to avoid
collisions between thermal zones.
For example, one thermal zone might want to increase the speed of
the fan, whereas another one would like to decrease it.

Deferring this decision to user space allows the user to the take
the most suitable decision.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c