[PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo
Boris Brezillon
boris.brezillon at collabora.com
Wed Jan 4 13:03:04 UTC 2023
Hello,
Here's an attempt at exposing some memory usage stats through fdinfo,
which recently proved useful in debugging a memory leak. Not entirely
sure the name I chose are accurate, so feel free to propose
alternatives, and let me know if you see any other mem-related stuff
that would be interesting to expose.
Regards,
Boris
Boris Brezillon (4):
drm/panfrost: Provide a dummy show_fdinfo() implementation
drm/panfrost: Track BO resident size
drm/panfrost: Add a helper to retrieve MMU context stats
drm/panfrost: Expose some memory related stats through fdinfo
drivers/gpu/drm/panfrost/panfrost_drv.c | 24 ++++++++++++++++-
drivers/gpu/drm/panfrost/panfrost_gem.h | 7 +++++
.../gpu/drm/panfrost/panfrost_gem_shrinker.c | 1 +
drivers/gpu/drm/panfrost/panfrost_mmu.c | 27 +++++++++++++++++++
drivers/gpu/drm/panfrost/panfrost_mmu.h | 10 +++++++
5 files changed, 68 insertions(+), 1 deletion(-)
--
2.38.1
More information about the dri-devel
mailing list