[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <j7x47m2hpo3fgatuoryefkuqk7ijv32ztc63kxfjgud2ng3u3b@yipnrnby5cuz>
Date: Wed, 6 Aug 2025 18:46:56 +0100
From: Adrián Larumbe <adrian.larumbe@...labora.com>
To: Daniel Stone <daniel@...ishbar.org>
Cc: linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
Boris Brezillon <boris.brezillon@...labora.com>, kernel@...labora.com, Rob Herring <robh@...nel.org>,
Steven Price <steven.price@....com>, Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>
Subject: Re: [PATCH] drm/panfrost: Print RSS for tiler heap BO's in debugfs
GEMS file
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@...labora.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@...labora.com>
>
> Cheers,
> Daniel
Adrian Larumbe
Powered by blists - more mailing lists