Commit 54d4f445 authored by Adrián Larumbe's avatar Adrián Larumbe Committed by Thomas Zimmermann
Browse files

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: default avatarAdrián Larumbe <adrian.larumbe@collabora.com>
Fixes: e48ade5e ("drm/panfrost: show device-wide list of DRM GEM objects over DebugFS")
Tested-by: default avatarChristopher Healy <healych@amazon.com>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250808010235.2831853-1-adrian.larumbe@collabora.com
parent c0a8e444
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);