drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
Subsystems (3)
Adrián Larumbe
maintainerPATCH 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.
--- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_gem.c +1 -1
@@ -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
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
Thomas Zimmermann
maintainerHi 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)
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-runShall 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