platform/mellanox: mlxbf-pmc: Add support for monitoring cycle count
authorShravan Kumar Ramani <shravankr@nvidia.com>
Thu, 9 Jan 2025 14:39:21 +0000 (09:39 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:26:33 +0000 (16:26 +0200)
commit5efc800975d9a66cf7e7684c07d4c1928f025972
tree3f4ca1f9d5393e23940d7b14c9bd1bcb72cdc0bd
parent1b32401b52084d3b5b29c18b95dc0a8757cca132
platform/mellanox: mlxbf-pmc: Add support for monitoring cycle count

Add support for programming any counter to monitor the cycle count.
This will allow the user to repurpose and dedicate any of the counters
in the block to counting cycles.

Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/bd7747897cf1ce77e2e39e271cac21684830f7e7.1736413033.git.shravankr@nvidia.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/mellanox/mlxbf-pmc.c