Skip to content

Commit 54d4f44

Browse files
larunbetdz
authored andcommitted
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. Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com> Fixes: e48ade5 ("drm/panfrost: show device-wide list of DRM GEM objects over DebugFS") Tested-by: Christopher Healy <healych@amazon.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20250808010235.2831853-1-adrian.larumbe@collabora.com
1 parent c0a8e44 commit 54d4f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo,
432432
if (!refcount)
433433
return;
434434

435-
resident_size = bo->base.pages ? bo->base.base.size : 0;
435+
resident_size = panfrost_gem_rss(&bo->base.base);
436436

437437
snprintf(creator_info, sizeof(creator_info),
438438
"%s/%d", bo->debugfs.creator.process_name, bo->debugfs.creator.tgid);

0 commit comments

Comments
 (0)