]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panfrost: show device-wide list of DRM GEM objects over DebugFS
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Tue, 20 May 2025 17:44:01 +0000 (18:44 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 2 Jun 2025 12:51:15 +0000 (13:51 +0100)
commite48ade5e23ba1f4ecdb0b1ce0f5a14e0b9af37a2
tree411a91c42e816d3dde1d9ac52d24bfd72c18f294
parent2f684bbbcb27048e6b16732b440dbadc0e342363
drm/panfrost: show device-wide list of DRM GEM objects over DebugFS

This change is essentially a Panfrost port of commit a3707f53eb3f
("drm/panthor: show device-wide list of DRM GEM objects over DebugFS").

The DebugFS file is almost the same as in Panthor, minus the GEM object
usage flags, since Panfrost has no kernel-only BO's.

Two additional GEM state flags which are displayed but aren't relevant
to Panthor are 'Purged' and 'Purgeable', since Panfrost implements an
explicit shrinker and a madvise ioctl to flag objects as reclaimable.

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: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250520174634.353267-5-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_gem.h