Merge branch 'mlx5-expose-nic-temperature-via-hwmon-api'
authorJakub Kicinski <kuba@kernel.org>
Wed, 9 Aug 2023 22:52:17 +0000 (15:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Aug 2023 22:52:17 +0000 (15:52 -0700)
commite972a54706e47a034991cee69fae95746540609b
treedd86c06009b74686a924bc683990f47ac9bfbe8c
parentfa1891aeb7620b51992d0db86c72c0cd3cf114ab
parent1f507e80c700e31e358bf4213dc7e4dd614c7c72
Merge branch 'mlx5-expose-nic-temperature-via-hwmon-api'

Saeed Mahameed says:

====================
mlx5: Expose NIC temperature via hwmon API

Expose NIC temperature by implementing hwmon kernel API, which turns
current thermal zone kernel API to redundant.

For each one of the supported and exposed thermal diode sensors, expose
the following attributes:
1) Input temperature.
2) Highest temperature.
3) Temperature label.
4) Temperature critical max value:
   refers to the high threshold of Warning Event. Will be exposed as
   `tempY_crit` hwmon attribute (RO attribute). For example for
   ConnectX5 HCA's this temperature value will be 105 Celsius, 10
   degrees lower than the HW shutdown temperature).
5) Temperature reset history: resets highest temperature.
====================

Link: https://lore.kernel.org/r/20230807180507.22984-1-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>