mlxbf-ptm: add ddr thermal throttle debugfs nodes

Bug #2029505 reported by Jitendra Lanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-bluefield (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Committed
Undecided
Unassigned

Bug Description

SRU Justification:

[Impact]

mlxbf-ptm is a kernel driver that provides debufgs interface for system
software to monitor Bluefield devices' power and thermal management
parameters.

[Fix]

This change:
* This change adds additional debugfs nodes that provides event counter
   and throttling states of ddr thermal management state machine.

[Test Case]

* After installing the kernel module, debugfs entry at
  /sys/kernel/debug/mlxbf-ptm will be created
* monitors/status folder contains read-only parameters reported from the
  Bluefield device

[Regression Potential]

* Minimal - as these are read-only parameters that report Bluefield device
  information.

[Other]

* This code is likely to change depending on feedback we received from
  maintainers.

Changed in linux-bluefield (Ubuntu):
status: New → Invalid
Changed in linux-bluefield (Ubuntu Jammy):
status: New → Fix Committed
Revision history for this message
Bartlomiej Zolnierkiewicz (bzolnier) wrote :

This bug is awaiting verification that the linux-bluefield/5.15.0-1022.24 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' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

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: verification-needed-jammy
Revision history for this message
Feysel Mohammed (feyselm) wrote :

root@bu-lab60v1-oob:~# uname -r
5.15.0-1022-bluefield
root@bu-lab60v1-oob:~# modprobe mlxbf-ptm
root@bu-lab60v1-oob:~# cd /sys/kernel/debug/mlxbf-ptm/monitors/status/
root@bu-lab60v1-oob:/sys/kernel/debug/mlxbf-ptm/monitors/status# ll
total 0
drwxr-xr-x 2 root root 0 Aug 24 20:41 ./
drwxr-xr-x 3 root root 0 Aug 24 20:41 ../
-r--r--r-- 1 root root 0 Aug 24 20:41 active_power_profile
-r--r--r-- 1 root root 0 Aug 24 20:41 atx_power_available
-r--r--r-- 1 root root 0 Aug 24 20:41 core_temp
-r--r--r-- 1 root root 0 Aug 24 20:41 ddr_temp
-r--r--r-- 1 root root 0 Aug 24 20:41 ddr_thermal_throttling_event_count
-r--r--r-- 1 root root 0 Aug 24 20:41 ddr_thermal_throttling_state
-r--r--r-- 1 root root 0 Aug 24 20:41 error_state
-r--r--r-- 1 root root 0 Aug 24 20:41 power_envelope
-r--r--r-- 1 root root 0 Aug 24 20:41 power_throttling_event_count
-r--r--r-- 1 root root 0 Aug 24 20:41 power_throttling_state
-r--r--r-- 1 root root 0 Aug 24 20:41 thermal_throttling_event_count
-r--r--r-- 1 root root 0 Aug 24 20:41 thermal_throttling_state
-r--r--r-- 1 root root 0 Aug 24 20:41 throttling_state
-r--r--r-- 1 root root 0 Aug 24 20:41 total_power
-r--r--r-- 1 root root 0 Aug 24 20:41 vr0_power
-r--r--r-- 1 root root 0 Aug 24 20:41 vr1_power

tags: added: verification-done-jammy
removed: verification-needed-jammy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.