]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Add validation of transceiver temperature thresholds
authorVadim Pasternak <vadimp@nvidia.com>
Fri, 8 Jan 2021 14:52:09 +0000 (16:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 Jan 2021 00:25:10 +0000 (16:25 -0800)
commit841d2ad43653af2e807a51cf45a89baee18903cc
treefad00833e299e3aa8fdd94034529329181ee015e
parentc026bd3a9b2f7be02345c9ef0b433063616ffb1e
mlxsw: core: Add validation of transceiver temperature thresholds

Validate thresholds to avoid a single failure due to some transceiver
unreliability. Ignore the last readouts in case warning temperature is
above alarm temperature, since it can cause unexpected thermal
shutdown. Stay with the previous values and refresh threshold within
the next iteration.

This is a rare scenario, but it was observed at a customer site.

Fixes: f01f5bdbdb6d ("mlxsw: core: Extend thermal module with per QSFP module thermal zones")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c