]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/file: Add fdinfo helper for printing regions with prefix
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Thu, 30 Jan 2025 17:28:10 +0000 (17:28 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 7 Feb 2025 14:23:36 +0000 (15:23 +0100)
commitaf6c2b7c46e16701fba44a21326cb634786e3e71
treee019bc28ba1384fa378258c3805dc5339b29e6eb
parent3ddf003c7e41c038c877ee4661d4900d5eb05268
drm/file: Add fdinfo helper for printing regions with prefix

This is motivated by the desire of some drivers (eg. Panthor) to print the
size of internal memory regions with a prefix that reflects the driver
name, as suggested in the previous documentation commit.

That means adding a new argument to print_size and making it available for
DRM users.

Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-3-adrian.larumbe@collabora.com
drivers/gpu/drm/drm_file.c
include/drm/drm_file.h