Conversation
otherwise everything good |
|
These commits can be squashed |
combine get_gpu_time_panthor into get_gpu_time
|
|
||
| #### Panfrost notes | ||
| - GPU usage requires `echo 1 | sudo tee /sys/class/drm/renderD*/device/profiling` | ||
| - If your linux kenel is newer than 6.10 and using "Panthor" drm driver,requires `echo 3 | sudo tee /sys/bus/platform/drivers/panthor/[a-f0-9]*.gpu/profiling` |
There was a problem hiding this comment.
is this 100% needed? are there no profiling file inside /sys/class/drm/renderD*/device like with panfrost?
There was a problem hiding this comment.
echo 1 | sudo tee /sys/class/drm/renderD*/device/profiling would not work with panthor, official document shows the new address https://docs.kernel.org/gpu/panthor.html
There was a problem hiding this comment.
echo <N> > /sys/bus/platform/drivers/panthor/[a-f0-9]*.gpu/profiling
echo <N> > /sys/bus/platform/drivers/panfrost/[a-f0-9]*.gpu/profiling
Are you sure?
https://docs.kernel.org/gpu/panfrost.html
There was a problem hiding this comment.
To me it seems like two identical file paths, except driver names.
Only thing that might've changed is the value that you should write inside that file
There was a problem hiding this comment.
Not working with my rk3588 at least.
There was a problem hiding this comment.
echo 3 | sudo tee /sys/class/drm/renderD*/device/profiling
works
| @@ -691,4 +691,4 @@ Example output: | |||
|
|
|||
| #### Panfrost notes | |||
There was a problem hiding this comment.
just write this:
#### Panfrost and Panthor notes
- GPU usage requires `echo N | sudo tee /sys/class/drm/renderD*/device/profiling`
- Where N is a number, 1 for panfrost and 3 for panthor.
Added codes to support panthor drm driver introduce to kernel newer than 6.10. work on rk3588 with MaliG610 right now.