[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250327140845.105962-1-adrian.larumbe@collabora.com>
Date: Thu, 27 Mar 2025 14:08:33 +0000
From: Adrián Larumbe <adrian.larumbe@...labora.com>
To: ?UTF-8?q?Adri=C3=A1n=20Larumbe?= <adrian.larumbe@...labora.com>,
Boris Brezillon <boris.brezillon@...labora.com>,
Steven Price <steven.price@....com>,
Liviu Dudau <liviu.dudau@....com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Sumit Semwal <sumit.semwal@...aro.org>,
Christian König <christian.koenig@....com>
Cc: kernel@...labora.com,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org,
linaro-mm-sig@...ts.linaro.org
Subject: [PATCH v3 0/4] Panthor BO tagging and GEMS debug display
This patch series is aimed at providing UM with detailed memory profiling
information in debug builds. It is achieved through a device-wide list of
DRM GEM objects, and also implementing the ability to label BO's from UM
through a new IOCTL.
The new debugfs file shows a list of driver DRM GEM objects in tabular mode.
To visualise it, cat sudo cat /sys/kernel/debug/dri/*.gpu/gems.
To test this functionality from UM, please refer to this Mesa patch series:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34224
Changelog:
v3:
- Replaced kfree() with kfree_const() when freeing a bo label
- Rearranged functions for delaing with GEMs list adding and deleting
- Changed Kernel BO labelling format not to include quotes
- Return error in labelling ioctl when string length is too long
Adrián Larumbe (4):
drm/panthor: Introduce BO labeling
drm/panthor: Add driver IOCTL for setting BO labels
drm/panthor: show device-wide list of DRM GEM objects over DebugFS
drm/panthor: Display heap chunk entries in DebugFS GEMS file
drivers/gpu/drm/panthor/panthor_device.c | 5 +
drivers/gpu/drm/panthor/panthor_device.h | 11 ++
drivers/gpu/drm/panthor/panthor_drv.c | 66 ++++++++++
drivers/gpu/drm/panthor/panthor_gem.c | 158 +++++++++++++++++++++++
drivers/gpu/drm/panthor/panthor_gem.h | 60 +++++++++
drivers/gpu/drm/panthor/panthor_heap.c | 3 +
include/uapi/drm/panthor_drm.h | 19 +++
7 files changed, 322 insertions(+)
--
2.48.1
Powered by blists - more mailing lists