ionic: report on-board sensors through an hwmon auxiliary driver
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected] change-id 20261102-pr46-b4-4967f18fd3a2Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ionic: register auxiliary devices from a table of device typesdrivers/ drivers/ drivers/ +2 more | +86 | 1 reply | Applied |
| 2/4 | ionic: add device interface definitions for hardware monitoringMAINTAINERS drivers/ drivers/ +2 more | +255 | 1 reply | Applied |
| 3/4 | ionic: add an auxiliary device for hardware monitoringdrivers/ drivers/ drivers/ +1 more | +152 | 1 reply | Applied |
| 4/4 | hwmon: add AMD Pensando ionic sensor driverDocumentation/ Documentation/ MAINTAINERS +3 more | +576 | 1 reply | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Brett Creeley | Guenter Roeck | Simon Horman |
|---|---|---|---|
| 1/4 | R-b | R-b | |
| 2/4 | R-b | R-b | |
| 3/4 | R-b | R-b | |
| 4/4 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next 0/4] ionic: report on-board sensors through an hwmon auxiliary driver
AMD Pensando adapters can report board and ASIC sensors (temperature, voltage and power) through the device firmware. This series exposes them through hwmon.
Following the discussion in [1], ionic creates an "ionic.hwmon" auxiliary device and a new driver in drivers/hwmon/ binds to it. Guenter suggested taking the series through net-next with his Ack on the hwmon driver, and agreed to his off-list reply being quoted here:
Quoted 3 lines
For b), an Ack from me and applying it through the network subsystem would probably be the easiest approach, but I am open to anything.
The set of sensors depends on the board and the firmware, so firmware describes it at runtime:
- Patch 1 registers ionic's auxiliary devices from a table of device types, so a second type can be added next to the RDMA device.
- Patch 2 adds the device interface: a capability bit, IONIC_CMD_HWMON_GETCAPS, which returns a buffer describing the sensor types, their channels, and each channel's attributes, permissions and label, and IONIC_CMD_HWMON_GETATTR, which reads one attribute.
- Patch 3 creates the "ionic.hwmon" auxiliary device when the firmware advertises the capability, and exports the calls the hwmon driver uses to issue those commands.
- Patch 4 adds the ionic-hwmon driver. It parses the capability buffer into hwmon channel configuration at probe, and serves each sensor read with one GETATTR admin command. Only standard hwmon attributes are exposed.
Tested on an AMD Pensando adapter, including driver unbind and PCI reset with concurrent sensor reads.
This series was developed with the help of an LLM-based coding assistant (Claude).
[1] https://lore.kernel.org/all/[email protected]/
---
Arun Kumar Prakash (2):
ionic: add device interface definitions for hardware monitoring
hwmon: add AMD Pensando ionic sensor driver
Nikhil P. Rao (2):
ionic: register auxiliary devices from a table of device types
ionic: add an auxiliary device for hardware monitoring
Documentation/hwmon/index.rst | 1 + Documentation/hwmon/ionic-hwmon.rst | 61 +++ MAINTAINERS | 9 + drivers/hwmon/Kconfig | 13 + drivers/hwmon/Makefile | 1 + drivers/hwmon/ionic-hwmon.c | 492 +++++++++++++++++++++ drivers/net/ethernet/pensando/ionic/ionic.h | 3 + drivers/net/ethernet/pensando/ionic/ionic_aux.c | 203 +++++++-- drivers/net/ethernet/pensando/ionic/ionic_aux.h | 2 +- .../net/ethernet/pensando/ionic/ionic_bus_pci.c | 14 +- drivers/net/ethernet/pensando/ionic/ionic_dev.h | 8 + drivers/net/ethernet/pensando/ionic/ionic_if.h | 104 +++++ drivers/net/ethernet/pensando/ionic/ionic_lif.h | 8 +- drivers/net/ethernet/pensando/ionic/ionic_main.c | 4 + include/linux/ionic/ionic_hwmon.h | 178 ++++++++ 15 files changed, 1069 insertions(+), 32 deletions(-)
---
base-commit: 4dd16e31135ea8437a720222df34e8745f385d6d
change-id: 20261102-pr46-b4-4967f18fd3a2
Best regards,
Signature · 1 line
Nikhil P. Rao <[email protected]>