[SRU][F/J:linux-bluefield][PATCH 0/1] mlxbf-pmc: BlueField-3 support

Shravan Kumar Ramani shravankr at nvidia.com
Wed Jan 11 09:49:22 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2002501

SRU Justification:

[Impact]
Currently, the mlxbf-pmc driver supports only BlueField-1 and BlueField-2
devices. BlueField-3 is not supported.

[Fix]
Add support for BlueField-3 devices by adding new access mechanism for
programming and reading counter values as in the new design, along with the
list of supported events in each HW block in BlueField-3.

[Test Case]
Previously, the driver would not be loaded when the OS is loaded on a
BlueField-3 card. With the fix, the driver should get loaded and create sysfs
entries as a hwmon device under /sys/class/hwmon/hwmon0.

[Regression Potential]
The ACPI table needs to be in sync with this change since it depends on newly
introduces parameters such as mss_enable and llt_enable, which were not present
earlier.

Shravan Kumar Ramani (1):
  UBUNTU: SAUCE: mlxbf-pmc: Support for BlueField-3 performance counters

 drivers/platform/mellanox/mlxbf-pmc.c | 252 +++++++++++++--
 drivers/platform/mellanox/mlxbf-pmc.h | 445 +++++++++++++++++++++++++-
 2 files changed, 658 insertions(+), 39 deletions(-)

-- 
2.30.1




More information about the kernel-team mailing list