netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] mlx5: Expose NIC temperature via hwmon API
@ 2023-07-27 18:59 Saeed Mahameed
  2023-07-27 18:59 ` [PATCH net-next 1/2] net/mlx5: Expose port.c/mlx5_query_module_num() function Saeed Mahameed
  2023-07-27 18:59 ` [PATCH net-next 2/2] net/mlx5: Expose NIC temperature via hardware monitoring kernel API Saeed Mahameed
  0 siblings, 2 replies; 7+ messages in thread
From: Saeed Mahameed @ 2023-07-27 18:59 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, Paolo Abeni, Eric Dumazet
  Cc: Saeed Mahameed, netdev, Tariq Toukan, linux-hwmon, Jean Delvare,
	Guenter Roeck

From: Saeed Mahameed <saeedm@nvidia.com>

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.

Adham Faris (2):
  net/mlx5: Expose port.c/mlx5_query_module_num() function
  net/mlx5: Expose NIC temperature via hardware monitoring kernel API

 .../net/ethernet/mellanox/mlx5/core/Makefile  |   2 +-
 .../net/ethernet/mellanox/mlx5/core/hwmon.c   | 428 ++++++++++++++++++
 .../net/ethernet/mellanox/mlx5/core/hwmon.h   |  24 +
 .../net/ethernet/mellanox/mlx5/core/main.c    |   8 +-
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   1 +
 .../net/ethernet/mellanox/mlx5/core/port.c    |   2 +-
 .../net/ethernet/mellanox/mlx5/core/thermal.c | 114 -----
 .../net/ethernet/mellanox/mlx5/core/thermal.h |  20 -
 include/linux/mlx5/driver.h                   |   3 +-
 include/linux/mlx5/mlx5_ifc.h                 |  14 +-
 10 files changed, 474 insertions(+), 142 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/hwmon.c
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/hwmon.h
 delete mode 100644 drivers/net/ethernet/mellanox/mlx5/core/thermal.c
 delete mode 100644 drivers/net/ethernet/mellanox/mlx5/core/thermal.h

-- 
2.41.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-02 12:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 18:59 [PATCH net-next 0/2] mlx5: Expose NIC temperature via hwmon API Saeed Mahameed
2023-07-27 18:59 ` [PATCH net-next 1/2] net/mlx5: Expose port.c/mlx5_query_module_num() function Saeed Mahameed
2023-07-27 20:02   ` Andrew Lunn
2023-07-27 18:59 ` [PATCH net-next 2/2] net/mlx5: Expose NIC temperature via hardware monitoring kernel API Saeed Mahameed
2023-07-27 19:54   ` Guenter Roeck
2023-08-02 12:10     ` Gal Pressman
2023-08-02 12:17       ` Gal Pressman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).