mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
904bc54798
Fix Panthor documentation build errors uncovered by the makedocs target
when building with extra warnings enabled.
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Fixes: 6a797bdfde
("drm/panthor: add sysfs knob for enabling job profiling")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009214346.2308917-1-adrian.larumbe@collabora.com
47 lines
1.5 KiB
ReStructuredText
47 lines
1.5 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+
|
|
|
|
=========================
|
|
drm/Panthor CSF driver
|
|
=========================
|
|
|
|
.. _panthor-usage-stats:
|
|
|
|
Panthor DRM client usage stats implementation
|
|
==============================================
|
|
|
|
The drm/Panthor driver implements the DRM client usage stats specification as
|
|
documented in :ref:`drm-client-usage-stats`.
|
|
|
|
Example of the output showing the implemented key value pairs and entirety of
|
|
the currently possible format options:
|
|
|
|
::
|
|
pos: 0
|
|
flags: 02400002
|
|
mnt_id: 29
|
|
ino: 491
|
|
drm-driver: panthor
|
|
drm-client-id: 10
|
|
drm-engine-panthor: 111110952750 ns
|
|
drm-cycles-panthor: 94439687187
|
|
drm-maxfreq-panthor: 1000000000 Hz
|
|
drm-curfreq-panthor: 1000000000 Hz
|
|
drm-total-memory: 16480 KiB
|
|
drm-shared-memory: 0
|
|
drm-active-memory: 16200 KiB
|
|
drm-resident-memory: 16480 KiB
|
|
drm-purgeable-memory: 0
|
|
|
|
Possible `drm-engine-` key names are: `panthor`.
|
|
`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/panthor/[a-f0-9]*.gpu/profiling
|
|
|
|
Where `N` is a bit mask where cycle and timestamp sampling are respectively
|
|
enabled by the first and second bits.
|