diff options
author | Shravan Kumar Ramani <shravankr@nvidia.com> | 2023-09-05 08:49:33 -0400 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-09-11 13:13:24 +0200 |
commit | 0f5969452e162efc50bdc98968fb62b424a9874b (patch) | |
tree | e3e5e33e120cc4d0e4aeb12fae8ae5b1ca31ceff /lib/crypto/mpi/mpi-inline.h | |
parent | 80ccd40568bcd3655b0fd0be1e9b3379fd6e1056 (diff) |
platform/mellanox: mlxbf-pmc: Fix reading of unprogrammed events
This fix involves 2 changes:
- All event regs have a reset value of 0, which is not a valid
event_number as per the event_list for most blocks and hence seen
as an error. Add a "disable" event with event_number 0 for all blocks.
- The enable bit for each counter need not be checked before
reading the event info, and hence removed.
Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/04d0213932d32681de1c716b54320ed894e52425.1693917738.git.shravankr@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions