* [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
@ 2025-08-08 1:02 Adrián Larumbe
2025-08-08 11:06 ` Daniel Stone
0 siblings, 1 reply; 4+ messages in thread
From: Adrián Larumbe @ 2025-08-08 1:02 UTC (permalink / raw)
To: linux-kernel
Cc: dri-devel, Boris Brezillon, kernel, Adrián Larumbe,
Christopher Healy, Daniel Stone, Rob Herring, Steven Price,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter
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: e48ade5e23ba ("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>
---
drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panfrost/panfrost_gem.c b/drivers/gpu/drm/panfrost/panfrost_gem.c
index bb73f2a68a12..85d6289a6eda 100644
--- a/drivers/gpu/drm/panfrost/panfrost_gem.c
+++ b/drivers/gpu/drm/panfrost/panfrost_gem.c
@@ -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);
--
2.50.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
2025-08-08 1:02 [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file Adrián Larumbe
@ 2025-08-08 11:06 ` Daniel Stone
2025-08-11 12:10 ` Thomas Zimmermann
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Stone @ 2025-08-08 11:06 UTC (permalink / raw)
To: Adrián Larumbe
Cc: linux-kernel, dri-devel, Boris Brezillon, kernel,
Christopher Healy, Daniel Stone, Rob Herring, Steven Price,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter
Hi,
On Fri, 8 Aug 2025 at 02:03, Adrián Larumbe
<adrian.larumbe@collabora.com> wrote:
> Otherwise it would display the virtual allocation size, which is often
> much bigger than the RSS.
I've pushed this to drm-misc-next-fixes to land in 6.17 with the
original commit as well.
Cheers,
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
2025-08-08 11:06 ` Daniel Stone
@ 2025-08-11 12:10 ` Thomas Zimmermann
2025-08-11 15:56 ` Daniel Stone
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Zimmermann @ 2025-08-11 12:10 UTC (permalink / raw)
To: Daniel Stone, Adrián Larumbe
Cc: linux-kernel, dri-devel, Boris Brezillon, kernel,
Christopher Healy, Daniel Stone, Rob Herring, Steven Price,
Maarten Lankhorst, Maxime Ripard, David Airlie, Simona Vetter
Hi Daniel
Am 08.08.25 um 13:06 schrieb Daniel Stone:
> Hi,
>
> On Fri, 8 Aug 2025 at 02:03, Adrián Larumbe
> <adrian.larumbe@collabora.com> wrote:
>> Otherwise it would display the virtual allocation size, which is often
>> much bigger than the RSS.
> I've pushed this to drm-misc-next-fixes to land in 6.17 with the
> original commit as well.
I'm going to revert this commit, because of
dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in
debugfs GEMS file"): committer Signed-off-by missing.
dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in
debugfs GEMS file"): Link tag missing.
dim: WARNING: issues in commits detected, but continuing dry-run
Shall I reapply or do you want to?
Best regards
Thomas
>
> Cheers,
> Daniel
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file
2025-08-11 12:10 ` Thomas Zimmermann
@ 2025-08-11 15:56 ` Daniel Stone
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Stone @ 2025-08-11 15:56 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: Adrián Larumbe, linux-kernel, dri-devel, Boris Brezillon,
kernel, Christopher Healy, Daniel Stone, Rob Herring,
Steven Price, Maarten Lankhorst, Maxime Ripard, David Airlie,
Simona Vetter
Hi Thomas,
On Mon, 11 Aug 2025 at 13:11, Thomas Zimmermann <tzimmermann@suse.de> wrote:
> Am 08.08.25 um 13:06 schrieb Daniel Stone:
> > On Fri, 8 Aug 2025 at 02:03, Adrián Larumbe
> > <adrian.larumbe@collabora.com> wrote:
> >> Otherwise it would display the virtual allocation size, which is often
> >> much bigger than the RSS.
> > I've pushed this to drm-misc-next-fixes to land in 6.17 with the
> > original commit as well.
>
> I'm going to revert this commit, because of
>
> dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in
> debugfs GEMS file"): committer Signed-off-by missing.
> dim: 216d6d913861 ("drm/panfrost: Print RSS for tiler heap BO's in
> debugfs GEMS file"): Link tag missing.
> dim: WARNING: issues in commits detected, but continuing dry-run
>
> Shall I reapply or do you want to?
Damn, I'm sorry about that; I got too used to b4 shazam, so forgot to
dim b4-shazam instead. I'm happy to reapply.
Cheers,
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-11 15:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-08 1:02 [PATCH v2] drm/panfrost: Print RSS for tiler heap BO's in debugfs GEMS file Adrián Larumbe
2025-08-08 11:06 ` Daniel Stone
2025-08-11 12:10 ` Thomas Zimmermann
2025-08-11 15:56 ` Daniel Stone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).