Skip to content

Updates to Mellanox PMC driver

Shravan Kumar Ramani lkml platform-driver-x86 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches1 replySuperseded

Changes in v4 from the cover letter

Added macro for crspace event register size
Changed line split as suggested

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/mellanox: mlxbf-pmc: Fix potential buffer overflowsdrivers/platform/mellanox/mlxbf-pmc.c+7 -71 reply
2/3platform/mellanox: mlxbf-pmc: Fix reading of unprogrammed eventsdrivers/platform/mellanox/mlxbf-pmc.c+7 -201 reply
3/3platform/mellanox: mlxbf-pmc: Add support for BlueField-3drivers/platform/mellanox/mlxbf-pmc.c+654 -321 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchVadim PasternakDavid Thompson
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Updates to Mellanox PMC driver

This submission consists of 3 patches:
1. Patch 1 replaces sprintf usage with snprintf or sysfs_emit, as applicable.
2. Patch 2 fixes a bug with reading unprogrammed events.
3. Patch 3 adds support for BlueField-3 platform which uses a different access mechanism.

Patch 3:
v1 -> v2
1. Fixed naming inconsistency with events struct
2. Replaced switch case instance with if else as suggested
3. Used rounddown instead of calculating the value

v2 -> v3
Removed empty lines and added Reviewed-by tag

v3 -> v4
Added macro for crspace event register size
Changed line split as suggested

Shravan Kumar Ramani (3):
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 | 727 +++++++++++++++++++++++---
 1 file changed, 668 insertions(+), 59 deletions(-)
Signature · 1 line
2.30.1