Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,3 +691,4 @@ Example output:

#### Panfrost notes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

- 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`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this 100% needed? are there no profiling file inside /sys/class/drm/renderD*/device like with panfrost?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not working with my rk3588 at least.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo 3 | sudo tee /sys/class/drm/renderD*/device/profiling

works