Skip to contentSkip to conversation

drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file

PATCH In review Adrián Larumbe 3 participants 4 messages Aug 8, 2025 – Aug 11, 2025

Subsystems (3)
lore
Share & tools
lore

Adrián Larumbe

author maintainer
#0 lore raw

PATCH v2 1/1 drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file

Otherwise it would display the virtual allocation size, which is often much bigger than the RSS.

Fixes e48ade5e23ba ("drm/panfrost: show device-wide list of DRM GEM objects over DebugFS")
---
 drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_gem.c +1 -1
index bb73f2a68a12..85d6289a6eda 100644
@@ -432,7 +432,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo,
 	if (!refcount)
 		return;
 
-	resident_size = bo->base.pages ? bo->base.base.size : 0;
+	resident_size = panfrost_gem_rss(&bo->base.base);
 
 	snprintf(creator_info, sizeof(creator_info),
 		 "%s/%d", bo->debugfs.creator.process_name, bo->debugfs.creator.tgid);
Signature · 1 line
2.50.0
#1 lore raw

Hi,

Quoted 2 lines · Adrián Larumbe

Otherwise it would display the virtual allocation size, which is often much bigger than the RSS.

I've pushed this to drm-misc-next-fixes to land in 6.17 with the original commit as well.

Cheers,
Daniel

#2 lore raw

Hi Daniel

Am 08.08.25 um 13:06 schrieb Daniel Stone:

Quoted 8 lines

Hi,

Quoted 2 lines · Adrián Larumbe

Otherwise it would display the virtual allocation size, which is often much bigger than the RSS.

I've pushed this to drm-misc-next-fixes to land in 6.17 with the original commit as well.

I'm going to revert this commit, because of

dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file"): committer Signed-off-by missing.
dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file"): Link tag missing.
dim: WARNING: issues in commits detected, but continuing dry-run

Shall I reapply or do you want to?

Best regards
Thomas

Quoted 3 lines

Cheers,
Daniel

Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
#3 lore raw

Hi Thomas,

Quoted 10 lines · Thomas Zimmermann

Am 08.08.25 um 13:06 schrieb Daniel Stone:

Quoted 6 lines
Quoted 2 lines · Adrián Larumbe

Otherwise it would display the virtual allocation size, which is often much bigger than the RSS.

I've pushed this to drm-misc-next-fixes to land in 6.17 with the original commit as well.

I'm going to revert this commit, because of

Quoted 7 lines

dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file"): committer Signed-off-by missing.
dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file"): Link tag missing.
dim: WARNING: issues in commits detected, but continuing dry-run

Shall I reapply or do you want to?

Damn, I'm sorry about that; I got too used to b4 shazam, so forgot to dim b4-shazam instead. I'm happy to reapply.

Cheers,
Daniel