| From: |
| Shravan Kumar Ramani <shravankr-AT-nvidia.com> |
| To: |
| Hans de Goede <hdegoede-AT-redhat.com>, Mark Gross <markgross-AT-kernel.org>, Vadim Pasternak <vadimp-AT-nvidia.com>, David Thompson <davthompson-AT-nvidia.com> |
| Subject: |
| [PATCH v2 0/3] Updates to Mellanox PMC driver |
| Date: |
| Thu, 31 Aug 2023 07:06:16 -0400 |
| Message-ID: |
| <cover.1693479119.git.shravankr@nvidia.com> |
| Cc: |
| Shravan Kumar Ramani <shravankr-AT-nvidia.com>, <platform-driver-x86-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org> |
| Archive-link: |
| Article |
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.
v1 -> v2
Patch 3:
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
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 | 728 +++++++++++++++++++++++---
1 file changed, 669 insertions(+), 59 deletions(-)
--
2.30.1