lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250114000705.2081288-1-sanman.p211993@gmail.com>
Date: Mon, 13 Jan 2025 16:07:02 -0800
From: Sanman Pradhan <sanman.p211993@...il.com>
To: netdev@...r.kernel.org
Cc: alexanderduyck@...com,
	kuba@...nel.org,
	kernel-team@...a.com,
	andrew+netdev@...n.ch,
	davem@...emloft.net,
	edumazet@...gle.com,
	pabeni@...hat.com,
	kalesh-anakkur.purayil@...adcom.com,
	linux@...ck-us.net,
	mohsin.bashr@...il.com,
	jdelvare@...e.com,
	horms@...nel.org,
	suhui@...china.com,
	linux-kernel@...r.kernel.org,
	vadim.fedorenko@...ux.dev,
	linux-hwmon@...r.kernel.org,
	sanmanpradhan@...a.com,
	sanman.p211993@...il.com
Subject: [PATCH net-next 0/3] eth: fbnic: Add hardware monitoring support

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ