netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] eth: fbnic: Add hardware monitoring support
@ 2025-01-14  0:07 Sanman Pradhan
  2025-01-14  0:07 ` [PATCH net-next 1/3] eth: fbnic: hwmon: Add completion infrastructure for firmware requests Sanman Pradhan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Sanman Pradhan @ 2025-01-14  0:07 UTC (permalink / raw)
  To: netdev
  Cc: alexanderduyck, kuba, kernel-team, andrew+netdev, davem, edumazet,
	pabeni, kalesh-anakkur.purayil, linux, mohsin.bashr, jdelvare,
	horms, suhui, linux-kernel, vadim.fedorenko, linux-hwmon,
	sanmanpradhan, sanman.p211993

This patch series adds hardware monitoring support to the fbnic driver.
It implements support for reading temperature and voltage sensors via
firmware requests, and exposes this data through the HWMON interface.

The series is structured as follows:

Patch 1: Adds completion infrastructure for firmware requests
Patch 2: Implements TSENE sensor message handling
Patch 3: Adds HWMON interface support

Output:
$ ls -l /sys/class/hwmon/hwmon1/
total 0
lrwxrwxrwx 1 root root    0 Sep 10 00:00 device -> ../../../0000:01:00.0
-r--r--r-- 1 root root 4096 Sep 10 00:00 in0_input
-r--r--r-- 1 root root 4096 Sep 10 00:00 name
lrwxrwxrwx 1 root root    0 Sep 10 00:00 subsystem -> ../../../../../../class/hwmon
-r--r--r-- 1 root root 4096 Sep 10 00:00 temp1_input
-rw-r--r-- 1 root root 4096 Sep 10 00:00 uevent
$ cat /sys/class/hwmon/hwmon1/temp1_input
40480
$ cat /sys/class/hwmon/hwmon1/in0_input
750

Sanman Pradhan (3):
  eth: fbnic: hwmon: Add completion infrastructure for firmware requests
  eth: fbnic: hwmon: Add support for reading temperature and voltage
    sensors
  eth: fbnic: Add hardware monitoring support via HWMON interface

 drivers/net/ethernet/meta/fbnic/Makefile      |   1 +
 drivers/net/ethernet/meta/fbnic/fbnic.h       |   5 +
 drivers/net/ethernet/meta/fbnic/fbnic_fw.c    | 154 ++++++++++++++++++
 drivers/net/ethernet/meta/fbnic/fbnic_fw.h    |  28 ++++
 drivers/net/ethernet/meta/fbnic/fbnic_hwmon.c |  80 +++++++++
 drivers/net/ethernet/meta/fbnic/fbnic_mac.c   |  72 ++++++++
 drivers/net/ethernet/meta/fbnic/fbnic_mac.h   |   7 +
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |   3 +
 8 files changed, 350 insertions(+)
 create mode 100644 drivers/net/ethernet/meta/fbnic/fbnic_hwmon.c

--
2.43.5

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

end of thread, other threads:[~2025-01-14  8:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14  0:07 [PATCH net-next 0/3] eth: fbnic: Add hardware monitoring support Sanman Pradhan
2025-01-14  0:07 ` [PATCH net-next 1/3] eth: fbnic: hwmon: Add completion infrastructure for firmware requests Sanman Pradhan
2025-01-14  8:30   ` Michal Swiatkowski
2025-01-14  0:07 ` [PATCH net-next 2/3] eth: fbnic: hwmon: Add support for reading temperature and voltage sensors Sanman Pradhan
2025-01-14  1:19   ` Andrew Lunn
2025-01-14  4:00     ` Jakub Kicinski
2025-01-14  8:31   ` Michal Swiatkowski
2025-01-14  0:07 ` [PATCH net-next 3/3] eth: fbnic: Add hardware monitoring support via HWMON interface Sanman Pradhan
2025-01-14  8:35   ` Michal Swiatkowski

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).