diff options
author | Adrián Larumbe <adrian.larumbe@collabora.com> | 2024-03-06 01:56:36 +0000 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@collabora.com> | 2024-03-11 13:27:10 +0100 |
commit | b12f3ea7c1884c0c79e516ed9ffee7c7058a61c3 (patch) | |
tree | 3907219a42d0f7ba3187b5f9fa5e34cbc2afeb5a /Documentation/gpu | |
parent | 57a4e3a94caee6cfda41700da877bee77eab939c (diff) | |
download | linux-stable-b12f3ea7c1884c0c79e516ed9ffee7c7058a61c3.tar.gz linux-stable-b12f3ea7c1884c0c79e516ed9ffee7c7058a61c3.tar.bz2 linux-stable-b12f3ea7c1884c0c79e516ed9ffee7c7058a61c3.zip |
drm/panfrost: Replace fdinfo's profiling debugfs knob with sysfs
Debugfs isn't always available in production builds that try to squeeze
every single byte out of the kernel image, but we still need a way to
toggle the timestamp and cycle counter registers so that jobs can be
profiled for fdinfo's drm engine and cycle calculations.
Drop the debugfs knob and replace it with a sysfs file that accomplishes
the same functionality, and document its ABI in a separate file.
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240306015819.822128-2-adrian.larumbe@collabora.com
Diffstat (limited to 'Documentation/gpu')
-rw-r--r-- | Documentation/gpu/panfrost.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/gpu/panfrost.rst b/Documentation/gpu/panfrost.rst index b80e41f4b2c5..51ba375fd80d 100644 --- a/Documentation/gpu/panfrost.rst +++ b/Documentation/gpu/panfrost.rst @@ -38,3 +38,12 @@ the currently possible format options: Possible `drm-engine-` key names are: `fragment`, and `vertex-tiler`. `drm-curfreq-` values convey the current operating frequency for that engine. + +Users must bear in mind that engine and cycle sampling are disabled by default, +because of power saving concerns. `fdinfo` users and benchmark applications which +query the fdinfo file must make sure to toggle the job profiling status of the +driver by writing into the appropriate sysfs node:: + + echo <N> > /sys/bus/platform/drivers/panfrost/[a-f0-9]*.gpu/profiling + +Where `N` is either `0` or `1`, depending on the desired enablement status. |