From: Wambui Karuga <wambui.karugax@gmail.com>
To: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [RFC PATCH 0/3] drm: introduce new method of creating debugfs files.
Date: Wed, 13 May 2020 14:41:26 +0300 [thread overview]
Message-ID: <20200513114130.28641-1-wambui.karugax@gmail.com> (raw)
Hi All,
Currently drm debugfs files are created using drm_debugfs_create_files()
on request.
This series introduces new functions and infrastructure that will enable
the mass creation of debugfs files during drm_dev_register(). Drivers can
request for the creation of debugfs files at any time using two new
functions: drm_debugfs_add_files()/drm_debugfs_add_file(). The file
requests are added to a list and tracked until drm_dev_register() when
the files are created all at once.
This concept was already in use by the drm/vc4 driver and this series
tries to introduce the same infrastructure in drm core.
Patch 2 removes vc4's functions doing the same, and replaces it
with the new drm core functions.
Patch 3 is an example of how the new functions and structs can replace
the existing drm_info_list and drm_debugfs_create_files() usage.
Hoping to get some feedback or comments on the current progress of this
series.
Thanks,
wambui karuga
Wambui Karuga (3):
drm/debugfs: create debugfs files during drm_dev_register().
drm/vc4: use new debugfs functions for file creation.
drm: use new debugfs functions for various files.
drivers/gpu/drm/drm_atomic.c | 11 +++---
drivers/gpu/drm/drm_client.c | 11 +++---
drivers/gpu/drm/drm_debugfs.c | 59 ++++++++++++++++++++++++++++---
drivers/gpu/drm/drm_drv.c | 2 ++
drivers/gpu/drm/drm_framebuffer.c | 11 +++---
drivers/gpu/drm/vc4/vc4_bo.c | 4 +--
drivers/gpu/drm/vc4/vc4_debugfs.c | 38 +++++---------------
drivers/gpu/drm/vc4/vc4_hdmi.c | 4 +--
drivers/gpu/drm/vc4/vc4_hvs.c | 4 +--
drivers/gpu/drm/vc4/vc4_v3d.c | 4 +--
include/drm/drm_debugfs.h | 38 ++++++++++++++++++++
include/drm/drm_device.h | 12 +++++++
12 files changed, 138 insertions(+), 60 deletions(-)
--
2.26.2
next reply other threads:[~2020-05-13 11:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 11:41 Wambui Karuga [this message]
2020-05-13 11:41 ` [RFC PATCH 1/3] drm/debugfs: create debugfs files during drm_dev_register() Wambui Karuga
2020-05-13 14:10 ` Thomas Zimmermann
2020-05-13 18:11 ` Wambui Karuga
2020-05-13 19:32 ` Daniel Vetter
2020-05-13 11:41 ` [RFC PATCH 2/3] drm/vc4: use new debugfs functions for file creation Wambui Karuga
2020-05-13 11:41 ` [RFC PATCH 3/3] drm: use new debugfs functions for various files Wambui Karuga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200513114130.28641-1-wambui.karugax@gmail.com \
--to=wambui.karugax@gmail.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).