[PATCH 0/2] platform/mellanox: mlxbf-pmc: Fix module loading
From: Luiz Capitulino
Date: Thu Feb 22 2024 - 15:58:24 EST
Hi,
The mlxbf-pmc driver fails to load when the firmware reports a new but not
yet implemented performance block. I can reproduce this today with a
Bluefield-3 card and UEFI version 4.6.0-18-g7d063bb-BId13035, since this
reports the new clock_measure performance block.
This[1] patch from Shravan implements the clock_measure support and will
solve the issue. But this series avoids the situation by ignoring and
logging unsupported performance blocks.
NOTE: This series is based on latest linux-next which contains new changes
to mlxbf-pmc.
[1] https://lore.kernel.org/lkml/1c2f1b6da51523fe0f338f9ddce9e3903148f604.1707808180.git.shravankr@xxxxxxxxxx/
Luiz Capitulino (2):
platform/mellanox: mlxbf-pmc: mlxbf_pmc_event_list(): make size ptr
optional
platform/mellanox: mlxbf-pmc: Ignore unsupported performance blocks
drivers/platform/mellanox/mlxbf-pmc.c | 56 +++++++++++++++++----------
1 file changed, 36 insertions(+), 20 deletions(-)
--
2.43.1