[PATCH] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
Adrián Larumbe
adrian.larumbe at collabora.com
Wed Aug 6 17:46:56 UTC 2025
On 06.08.2025 16:19, Daniel Stone wrote:
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.
It's still within the same compilation unit (panfrost_gem.c) so it can remain static.
>
> With that:
> Reviewed-by: Daniel Stone <daniels at collabora.com>
>
> Cheers,
> Daniel
Adrian Larumbe
More information about the dri-devel
mailing list