Documentation/ABI: Add new sysfs field to sysfs-platform-mellanox-pmc
authorShravan Kumar Ramani <shravankr@nvidia.com>
Thu, 9 Jan 2025 14:39:23 +0000 (09:39 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:26:36 +0000 (16:26 +0200)
Document newly added "count_clock" sysfs entry for the Mellanox
BlueField PMC driver.

Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/367301238efff01fc200c67bca461c0424baf95d.1736413033.git.shravankr@nvidia.com
[ij: corrected KernelVersion & Date]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/ABI/testing/sysfs-platform-mellanox-pmc

index 9f987c6410da2fe09ff11497920459b3db3abf06..29b3f9c58e00601746f3a21591d455991d4e359a 100644 (file)
@@ -52,3 +52,13 @@ Description:
                Writing 0 to the sysfs will clear the counter, writing any other
                value is not allowed.
 
+What:          /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/count_clock
+Date:          Mar 2025
+KernelVersion: 6.14
+Contact:       "Shravan Kumar Ramani <shravankr@nvidia.com>"
+Description:
+               Use a counter for counting cycles. This is used to repurpose/dedicate
+               any of the counters in the block to counting cycles. Each counter is
+               represented by a bit (bit 0 for counter0, bit1 for counter1 and so on)
+               and setting the corresponding bit will reserve that specific counter
+               for counting cycles and override the event<N> setting.