Kernel driver ionic-hwmon¶
Supported chips:
AMD Pensando Ethernet adapters whose firmware advertises
IONIC_DEV_CAP_HWMONPrefix: ‘ionic’
Author:
Arun Kumar Prakash <ArunKumar.Prakash@amd.com>
Description¶
AMD Pensando Ethernet adapters carry on-board sensors that the adapter
firmware can report. The ionic Ethernet driver creates an ionic.hwmon
auxiliary device for adapters whose firmware advertises sensors, and the
ionic-hwmon driver binds to it and exposes the readings to the Linux hwmon
subsystem, so userspace utilities such as sensors can read them. The
hwmon device is a child of the adapter’s PCI function.
The adapter reports which sensors it has when the hwmon device is created, so the files that appear depend on the adapter and its firmware version. The hwmon device is removed and re-created across a firmware recovery, and the sensors are read again when it is re-created.
The labels are reported once, with the capabilities, and do not change while the device is bound.
sysfs interface¶
Attribute files exist only for the channels and attributes the firmware
reports, within /sys/class/hwmon/hwmon[X]:
Name |
Perm |
Description |
|---|---|---|
|
RO |
Temperature in millidegrees Celsius (m°C). May read below zero. |
|
RO |
Temperature sensor label. |
|
RO |
Critical temperature threshold, in millidegrees Celsius. |
|
RO |
Critical temperature alarm indicator. |
|
RO |
Voltage in millivolts (mV). |
|
RO |
Voltage sensor label. |
|
RO |
Power in microwatts (uW). |
|
RO |
Power sensor label. |
|
RO |
Maximum power threshold, in microwatts. |
Labels are strings supplied by the firmware. A channel that reports an
empty label has no _label attribute.