Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/gpu: Add fdinfo meanings of panthor-*-memory tags

A previous commit enabled display of driver-internal kernel BO sizes
through the device file's fdinfo interface.

Expand the description of the relevant driver-specific key:value pairs
with the definitions of the new panthor-*-memory ones.

Reviewed-by: Mihail Atanassov <mihail.atanassov@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-5-adrian.larumbe@collabora.com

authored by

Adrián Larumbe and committed by
Boris Brezillon
f780ef56 434e5ca5

+10
+10
Documentation/gpu/panthor.rst
··· 26 26 drm-cycles-panthor: 94439687187 27 27 drm-maxfreq-panthor: 1000000000 Hz 28 28 drm-curfreq-panthor: 1000000000 Hz 29 + panthor-resident-memory: 10396 KiB 30 + panthor-active-memory: 10396 KiB 29 31 drm-total-memory: 16480 KiB 30 32 drm-shared-memory: 0 31 33 drm-active-memory: 16200 KiB ··· 46 44 47 45 Where `N` is a bit mask where cycle and timestamp sampling are respectively 48 46 enabled by the first and second bits. 47 + 48 + Possible `panthor-*-memory` keys are: `active` and `resident`. 49 + These values convey the sizes of the internal driver-owned shmem BO's that 50 + aren't exposed to user-space through a DRM handle, like queue ring buffers, 51 + sync object arrays and heap chunks. Because they are all allocated and pinned 52 + at creation time, only `panthor-resident-memory` is necessary to tell us their 53 + size. `panthor-active-memory` shows the size of kernel BO's associated with 54 + VM's and groups currently being scheduled for execution by the GPU.