mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Allow fdinfo to display size of internal BO's
@ 2024-10-02 23:45 Adrián Larumbe
  2024-10-02 23:45 ` [RFC PATCH 1/2] drm/drm_file: Add display of driver's internal memory size Adrián Larumbe
  2024-10-02 23:45 ` [RFC PATCH 2/2] drm/panthor: register size of internal objects through fdinfo Adrián Larumbe
  0 siblings, 2 replies; 9+ messages in thread
From: Adrián Larumbe @ 2024-10-02 23:45 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, Rob Clark, Abhinav Kumar,
	Dmitry Baryshkov, Sean Paul, Marijn Suijten, Boris Brezillon,
	Rob Herring, Steven Price, Melissa Wen, Maíra Canal
  Cc: Adrián Larumbe, Tvrtko Ursulin, Lucas De Marchi, dri-devel,
	linux-kernel, linux-arm-msm, freedreno

This patch series lets DRM fdinfo stats functions display an additional tag
that will reflect the amount of memory internal BOs of a DRM driver take
up.

The rationale for this is that some drivers, like Panthor, need quite a bit
of memory for things like queue ring buffers or tiler heap chunks, and
these will vary dynamically as new scheduler groups, queues or heap chunks
are created by one or more render contexts.

Because these are tied to an open DRM file that represents an ongoing
render context, then it makes sense to provide users with this information
in the DRM file fdinfo descriptor, even though they would never be exposed
to UM through a handle.

These two patches were originally part of a wider series, but broke it down
into two different submissions for ease of discussion.

The previous debate can be found at [1], in its latest two patches.

[1] https://lore.kernel.org/dri-devel/dqhnxhgho6spfh7xhw6yvs2iiqeqzeg63e6jqqpw2g7gkrfphn@dojsixyl4esv/

Adrián Larumbe (2):
  drm/drm_file: Add display of driver's internal memory size
  drm/panthor: register size of internal objects through fdinfo

 drivers/gpu/drm/drm_file.c               |  6 ++-
 drivers/gpu/drm/msm/msm_drv.c            |  2 +-
 drivers/gpu/drm/panfrost/panfrost_drv.c  |  2 +-
 drivers/gpu/drm/panthor/panthor_device.c |  2 +
 drivers/gpu/drm/panthor/panthor_device.h |  6 +++
 drivers/gpu/drm/panthor/panthor_drv.c    | 16 +++++--
 drivers/gpu/drm/panthor/panthor_fw.c     | 14 ++++--
 drivers/gpu/drm/panthor/panthor_fw.h     |  6 ++-
 drivers/gpu/drm/panthor/panthor_gem.c    | 55 ++++++++++++++++++++++--
 drivers/gpu/drm/panthor/panthor_gem.h    | 15 ++++++-
 drivers/gpu/drm/panthor/panthor_heap.c   | 20 ++++++---
 drivers/gpu/drm/panthor/panthor_heap.h   |  6 ++-
 drivers/gpu/drm/panthor/panthor_mmu.c    |  7 ++-
 drivers/gpu/drm/panthor/panthor_mmu.h    |  3 +-
 drivers/gpu/drm/panthor/panthor_sched.c  | 19 ++++----
 drivers/gpu/drm/v3d/v3d_drv.c            |  2 +-
 include/drm/drm_file.h                   |  7 ++-
 17 files changed, 150 insertions(+), 38 deletions(-)

-- 
2.46.2


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

end of thread, other threads:[~2024-10-28 13:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-02 23:45 [RFC PATCH 0/2] Allow fdinfo to display size of internal BO's Adrián Larumbe
2024-10-02 23:45 ` [RFC PATCH 1/2] drm/drm_file: Add display of driver's internal memory size Adrián Larumbe
2024-10-04 13:41   ` Tvrtko Ursulin
2024-10-09 22:55     ` Adrián Larumbe
2024-10-10  9:50       ` Tvrtko Ursulin
2024-10-15 19:05         ` Adrián Larumbe
2024-10-16  8:07           ` Tvrtko Ursulin
2024-10-28 13:52             ` Adrián Larumbe
2024-10-02 23:45 ` [RFC PATCH 2/2] drm/panthor: register size of internal objects through fdinfo 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

all inboxes | Powered by JetHome®