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

Daniel Stone daniel at fooishbar.org
Wed Aug 6 15:19:56 UTC 2025


Hi Adrián,

On Thu, 31 Jul 2025 at 18:36, Adrián Larumbe
<adrian.larumbe at collabora.com> wrote:
> @@ -432,7 +432,8 @@ 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 = bo->base.pages ?
> +               (bo->is_heap ? bo->heap_rss_size : bo->base.base.size) : 0;

Just use panfrost_gem_rss() here, though you'll need to make it non-static.

With that:
Reviewed-by: Daniel Stone <daniels at collabora.com>

Cheers,
Daniel


More information about the dri-devel mailing list