public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Panthor BO tagging and GEMS debug display
@ 2025-03-27 14:08 Adrián Larumbe
  2025-03-27 14:08 ` [PATCH v3 1/4] drm/panthor: Introduce BO labeling Adrián Larumbe
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Adrián Larumbe @ 2025-03-27 14:08 UTC (permalink / raw)
  To: ?UTF-8?q?Adri=C3=A1n=20Larumbe?=, Boris Brezillon, Steven Price,
	Liviu Dudau, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, Sumit Semwal, Christian König
  Cc: kernel, dri-devel, linux-kernel, linux-media, linaro-mm-sig

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-02 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 14:08 [PATCH v3 0/4] Panthor BO tagging and GEMS debug display Adrián Larumbe
2025-03-27 14:08 ` [PATCH v3 1/4] drm/panthor: Introduce BO labeling Adrián Larumbe
2025-03-27 14:08 ` [PATCH v3 2/4] drm/panthor: Add driver IOCTL for setting BO labels Adrián Larumbe
2025-03-27 14:08 ` [PATCH v3 3/4] drm/panthor: show device-wide list of DRM GEM objects over DebugFS Adrián Larumbe
2025-03-28 14:30   ` Boris Brezillon
2025-04-02 12:09     ` Adrián Larumbe
2025-03-27 14:08 ` [PATCH v3 4/4] drm/panthor: Display heap chunk entries in DebugFS GEMS file Adrián Larumbe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox