11b32401bSShravan Kumar RamaniHID Driver Description 21b32401bSShravan Kumar RamaniMLNXBFD0 mlxbf-pmc Performance counters (BlueField-1) 31b32401bSShravan Kumar RamaniMLNXBFD1 mlxbf-pmc Performance counters (BlueField-2) 41b32401bSShravan Kumar RamaniMLNXBFD2 mlxbf-pmc Performance counters (BlueField-3) 51b32401bSShravan Kumar Ramani 61b32401bSShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/event_list 71b32401bSShravan Kumar RamaniDate: Dec 2020 81b32401bSShravan Kumar RamaniKernelVersion: 5.10 91b32401bSShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 101b32401bSShravan Kumar RamaniDescription: 111b32401bSShravan Kumar Ramani List of events supported by the counters in the specific block. 121b32401bSShravan Kumar Ramani It is used to extract the event number or ID associated with 131b32401bSShravan Kumar Ramani each event. 141b32401bSShravan Kumar Ramani 151b32401bSShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/event<N> 161b32401bSShravan Kumar RamaniDate: Dec 2020 171b32401bSShravan Kumar RamaniKernelVersion: 5.10 181b32401bSShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 191b32401bSShravan Kumar RamaniDescription: 201b32401bSShravan Kumar Ramani Event monitored by corresponding counter. This is used to 211b32401bSShravan Kumar Ramani program or read back the event that should be or is currently 221b32401bSShravan Kumar Ramani being monitored by counter<N>. 231b32401bSShravan Kumar Ramani 241b32401bSShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/counter<N> 251b32401bSShravan Kumar RamaniDate: Dec 2020 261b32401bSShravan Kumar RamaniKernelVersion: 5.10 271b32401bSShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 281b32401bSShravan Kumar RamaniDescription: 291b32401bSShravan Kumar Ramani Counter value of the event being monitored. This is used to 301b32401bSShravan Kumar Ramani read the counter value of the event which was programmed using 311b32401bSShravan Kumar Ramani event<N>. This is also used to clear or reset the counter value 321b32401bSShravan Kumar Ramani by writing 0 to the counter sysfs. 331b32401bSShravan Kumar Ramani 341b32401bSShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/enable 351b32401bSShravan Kumar RamaniDate: Dec 2020 361b32401bSShravan Kumar RamaniKernelVersion: 5.10 371b32401bSShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 381b32401bSShravan Kumar RamaniDescription: 391b32401bSShravan Kumar Ramani Start or stop counters. This is used to start the counters 401b32401bSShravan Kumar Ramani for monitoring the programmed events and also to stop the 411b32401bSShravan Kumar Ramani counters after the desired duration. Writing value 1 will 421b32401bSShravan Kumar Ramani start all the counters in the block, and writing 0 will 431b32401bSShravan Kumar Ramani stop all the counters together. 441b32401bSShravan Kumar Ramani 451b32401bSShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/<reg> 461b32401bSShravan Kumar RamaniDate: Dec 2020 471b32401bSShravan Kumar RamaniKernelVersion: 5.10 481b32401bSShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 491b32401bSShravan Kumar RamaniDescription: 501b32401bSShravan Kumar Ramani Value of register. This is used to read or reset the registers 511b32401bSShravan Kumar Ramani where various performance statistics are counted for each block. 521b32401bSShravan Kumar Ramani Writing 0 to the sysfs will clear the counter, writing any other 531b32401bSShravan Kumar Ramani value is not allowed. 541b32401bSShravan Kumar Ramani 55*913240e4SShravan Kumar RamaniWhat: /sys/bus/platform/devices/<HID>/hwmon/hwmonX/<block>/count_clock 56*913240e4SShravan Kumar RamaniDate: Mar 2025 57*913240e4SShravan Kumar RamaniKernelVersion: 6.14 58*913240e4SShravan Kumar RamaniContact: "Shravan Kumar Ramani <shravankr@nvidia.com>" 59*913240e4SShravan Kumar RamaniDescription: 60*913240e4SShravan Kumar Ramani Use a counter for counting cycles. This is used to repurpose/dedicate 61*913240e4SShravan Kumar Ramani any of the counters in the block to counting cycles. Each counter is 62*913240e4SShravan Kumar Ramani represented by a bit (bit 0 for counter0, bit1 for counter1 and so on) 63*913240e4SShravan Kumar Ramani and setting the corresponding bit will reserve that specific counter 64*913240e4SShravan Kumar Ramani for counting cycles and override the event<N> setting. 65