[SRU][J:linux-bluefield][PATCH v1 0/3] Updates to mlxbf-pmc
Shravan Kumar Ramani
shravankr at nvidia.com
Mon Jun 9 08:20:00 UTC 2025
This submission addresses the following issues:
1. Replace SAUCE patche with upstream commit (Patches 1 and 2)
BugLink: https://bugs.launchpad.net/bugs/2113757
SRU Justification:
[Impact]
The mlxbf_pmc BlueField platform driver in the Jammy repo consists of a SAUCE
patch that needs to be replaced with the corresponding upstream commit.
[Fix]
The fix is to revert the SAUCE patch, and replace it with upstream commit for
the same functionality.
[Test Case]
* Boot BF2/BF3 platform, verify no new errors with loading the driver.
* Test sysfs interface exposed by driver for programming various counters
and events.
[Regression Potential]
Minimal
2. Print error if enable/event input is invalid (Patch 3)
BugLink: https://bugs.launchpad.net/bugs/2113758
SRU Justification:
[Impact]
The enable and event sysfs files are used to program and enable the performance
counters. However, they also seem to take invalid input, which should be
handled by the driver with an error.
[Fix]
Check "enable" input to allow only 0 or 1, and not other values.
For "event" info, check if the user input is a valid event number for the
corresponding block and if not, print an error message.
[Test Case]
Try invalid values to the "enable" sysfs in any block and it should not be
accepted by the driver.
For event sysfs, enter any event number that is not listed in the "event_list"
and validate that the driver does not accept this input.
[Regression Potential]
Minimal
Shravan Kumar Ramani (3):
Revert "UBUNTU: SAUCE: platform/mellanox: mlxbf-pmc: Support
additional PMC blocks"
platform/mellanox: mlxbf-pmc: Support additional PMC blocks
UBUNTU: SAUCE: mlxbf-pmc: Print error if event/enable input is invalid
drivers/platform/mellanox/mlxbf-pmc.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
--
2.43.2
More information about the kernel-team
mailing list