[Kernel-packages] [Bug 2042525] Re: mlxbf-pmc: Support 64-bit counter and counting cycles

2023-11-06 Thread Shravan Kumar Ramani
** Tags removed: verification-needed-jammy-linux-bluefield
** Tags added: verification-done-jammy-linux-bluefield

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-bluefield in Ubuntu.
https://bugs.launchpad.net/bugs/2042525

Title:
  mlxbf-pmc: Support 64-bit counter and counting cycles

Status in linux-bluefield package in Ubuntu:
  Invalid
Status in linux-bluefield source package in Jammy:
  Fix Committed

Bug description:
  SRU Justification:

  [Impact]
  Currently, there is no method to keep track of the cycle count when an event 
is being monitored. And since cycle count increments quickly, the 32-bit 
counter values could wrap around and hence support for 64-bit counters is also 
needed for the same.

  [Fix]
  Expose 2 additional sysfs entries: count_clock and use_odd_counter. These 
fields are supported in BlueField-3 PMC hardware and each bit in count_clock 
corresponds to each counter, while each bit in use_odd_counter corresponds to 
an even counter.Exposing these fields will allow the user to program any 
counter of choice to monitor the cycle count for the required duration. 
Similarly, use_odd_counter can be set to couple 2 adjacent odd and even 
counters to form a 64-bit counter.

  [Test Case]
  1. Verify that count_clock and use_odd_counter sysfs entries are created for 
each BlueField-3 HW block. These are not supported by BlueField-1 or 
BlueField-2 HW.
  2. Set any bit in count_clock and check if the corresponding counter values 
increment after enabling.
  3. Set any bit in use_odd_counter and check if the cycle count increments on 
2 counters with the odd counter being the lower 32 bits and the even counter 
being the upper 32 bits.

  [Regression Potential]
  Can be considered minimal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2042525/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 2042525] Re: mlxbf-pmc: Support 64-bit counter and counting cycles

2023-11-03 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux-
bluefield/5.15.0-1031.33 kernel in -proposed solves the problem. Please
test the kernel and update this bug with the results. If the problem is
solved, change the tag 'verification-needed-jammy-linux-bluefield' to
'verification-done-jammy-linux-bluefield'. If the problem still exists,
change the tag 'verification-needed-jammy-linux-bluefield' to
'verification-failed-jammy-linux-bluefield'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-jammy-linux-bluefield-v2 
verification-needed-jammy-linux-bluefield

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-bluefield in Ubuntu.
https://bugs.launchpad.net/bugs/2042525

Title:
  mlxbf-pmc: Support 64-bit counter and counting cycles

Status in linux-bluefield package in Ubuntu:
  Invalid
Status in linux-bluefield source package in Jammy:
  Fix Committed

Bug description:
  SRU Justification:

  [Impact]
  Currently, there is no method to keep track of the cycle count when an event 
is being monitored. And since cycle count increments quickly, the 32-bit 
counter values could wrap around and hence support for 64-bit counters is also 
needed for the same.

  [Fix]
  Expose 2 additional sysfs entries: count_clock and use_odd_counter. These 
fields are supported in BlueField-3 PMC hardware and each bit in count_clock 
corresponds to each counter, while each bit in use_odd_counter corresponds to 
an even counter.Exposing these fields will allow the user to program any 
counter of choice to monitor the cycle count for the required duration. 
Similarly, use_odd_counter can be set to couple 2 adjacent odd and even 
counters to form a 64-bit counter.

  [Test Case]
  1. Verify that count_clock and use_odd_counter sysfs entries are created for 
each BlueField-3 HW block. These are not supported by BlueField-1 or 
BlueField-2 HW.
  2. Set any bit in count_clock and check if the corresponding counter values 
increment after enabling.
  3. Set any bit in use_odd_counter and check if the cycle count increments on 
2 counters with the odd counter being the lower 32 bits and the even counter 
being the upper 32 bits.

  [Regression Potential]
  Can be considered minimal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2042525/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 2042525] Re: mlxbf-pmc: Support 64-bit counter and counting cycles

2023-11-02 Thread Bartlomiej Zolnierkiewicz
** Also affects: linux-bluefield (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Changed in: linux-bluefield (Ubuntu)
   Status: New => Invalid

** Changed in: linux-bluefield (Ubuntu Jammy)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-bluefield in Ubuntu.
https://bugs.launchpad.net/bugs/2042525

Title:
  mlxbf-pmc: Support 64-bit counter and counting cycles

Status in linux-bluefield package in Ubuntu:
  Invalid
Status in linux-bluefield source package in Jammy:
  Fix Committed

Bug description:
  SRU Justification:

  [Impact]
  Currently, there is no method to keep track of the cycle count when an event 
is being monitored. And since cycle count increments quickly, the 32-bit 
counter values could wrap around and hence support for 64-bit counters is also 
needed for the same.

  [Fix]
  Expose 2 additional sysfs entries: count_clock and use_odd_counter. These 
fields are supported in BlueField-3 PMC hardware and each bit in count_clock 
corresponds to each counter, while each bit in use_odd_counter corresponds to 
an even counter.Exposing these fields will allow the user to program any 
counter of choice to monitor the cycle count for the required duration. 
Similarly, use_odd_counter can be set to couple 2 adjacent odd and even 
counters to form a 64-bit counter.

  [Test Case]
  1. Verify that count_clock and use_odd_counter sysfs entries are created for 
each BlueField-3 HW block. These are not supported by BlueField-1 or 
BlueField-2 HW.
  2. Set any bit in count_clock and check if the corresponding counter values 
increment after enabling.
  3. Set any bit in use_odd_counter and check if the cycle count increments on 
2 counters with the odd counter being the lower 32 bits and the even counter 
being the upper 32 bits.

  [Regression Potential]
  Can be considered minimal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2042525/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp