ACK/Cmnt: [SRU][J:linux-bluefield][Pull Request][v1] Cherry-pick of mlxbf-pmc from upstream

Tim Gardner tim.gardner at canonical.com
Tue Oct 17 12:59:05 UTC 2023


On 10/17/23 5:29 AM, Shravan Kumar Ramani wrote:
> BugLink: https://bugs.launchpad.net/bugs/2039561
> 
> The mlxbf-pmc driver has been upstreamed and hence the SAUCE patches need to be
> reverted and replaced with upstream commits.
> 
> This series reverts 5 commits merged to linux-bluefield:master-next as SAUCE
> patches. The reverted commits are replaced by 3 commits from upstream, 2 of
> which are in linux and 1 is in linux-next.
> 
> Testing:
> * Boot BF2/BF3 platform, verify no new errors
> * Test sysfs interface exposed by driver for programming various counters and
> events.
> 
> The pull request can be found at:
> https://code.launchpad.net/~sramani/ubuntu/+source/linux-bluefield/+git/linux-bluefield/+merge/453759
> 
> Git repo can be found at:
> https://code.launchpad.net/~sramani/ubuntu/+source/linux-bluefield/+git/linux-bluefield/+ref/pmc
> 
> Signed-off-by: Shravan Kumar Ramani <shravankr at nvidia.com>
> 
> Shravan Kumar Ramani (8):
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Bug fix for BlueField-3 counter
>      offsets"
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Support for BlueField-3 performance
>      counters"
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Fix error when reading unprogrammed
>      events"
>    Revert "UBUNTU: SAUCE: mlxbf_pmc: Fix references to sprintf"
>    Revert "UBUNTU: SAUCE: platform/mellanox: Updates to mlxbf-pmc"
>    platform/mellanox: mlxbf-pmc: Fix potential buffer overflows
>    platform/mellanox: mlxbf-pmc: Fix reading of unprogrammed events
>    platform/mellanox: mlxbf-pmc: Add support for BlueField-3
> 
>   drivers/platform/mellanox/mlxbf-pmc.c | 2382 ++++++++++++++++---------
>   drivers/platform/mellanox/mlxbf-pmc.h | 863 ---------
>   2 files changed, 1521 insertions(+), 1724 deletions(-)
>   delete mode 100644 drivers/platform/mellanox/mlxbf-pmc.h
> 
> Shravan Kumar Ramani (8):
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Bug fix for BlueField-3 counter
>      offsets"
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Support for BlueField-3 performance
>      counters"
>    Revert "UBUNTU: SAUCE: mlxbf-pmc: Fix error when reading unprogrammed
>      events"
>    Revert "UBUNTU: SAUCE: mlxbf_pmc: Fix references to sprintf"
>    Revert "UBUNTU: SAUCE: platform/mellanox: Updates to mlxbf-pmc"
>    platform/mellanox: mlxbf-pmc: Fix potential buffer overflows
>    platform/mellanox: mlxbf-pmc: Fix reading of unprogrammed events
>    platform/mellanox: mlxbf-pmc: Add support for BlueField-3
> 
>   drivers/platform/mellanox/mlxbf-pmc.c | 2382 ++++++++++++++++---------
>   drivers/platform/mellanox/mlxbf-pmc.h |  863 ---------
>   2 files changed, 1521 insertions(+), 1724 deletions(-)
>   delete mode 100644 drivers/platform/mellanox/mlxbf-pmc.h
> 
Acked-by: Tim Gardner <tim.gardner at canonical.com>

Patch 8 should be:

(cherry picked from commit 423c3361855c1e81f1cb91728a2ac5ddfd2cbf16 
linux-next)

Can be added when the patch is applied if the commit has not been merged 
upstream.
-- 
-----------
Tim Gardner
Canonical, Inc




More information about the kernel-team mailing list