net/mlx5: Implement thermal zone
authorSandipan Patra <spatra@nvidia.com>
Tue, 14 Mar 2023 05:42:23 +0000 (22:42 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Mar 2023 05:09:14 +0000 (22:09 -0700)
commitc1fef618d611b31964ab397aa0bf0611da94bade
tree9fff36c3a35ce59e60c60abaec5ac1ddde9ba15d
parentceefcfb8a37510f2c2b99b9e8d6c0b3941687b2b
net/mlx5: Implement thermal zone

Implement thermal zone support for mlx5 based HW. The NIC
uses temperature sensor provided by ASIC to report current temperature
to thermal core.

Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20230314054234.267365-5-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/thermal.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/thermal.h [new file with mode: 0644]
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h