From: Sunil Khatri <sunil.khatri@amd.com>
To: "Christian König" <christian.koenig@amd.com>,
dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org, Sunil Khatri <sunil.khatri@amd.com>
Subject: [PATCH v2 0/2] Support for debugfs directory for each client-id in /dri directory
Date: Mon, 16 Jun 2025 15:35:01 +0530 [thread overview]
Message-ID: <20250616100503.1204166-1-sunil.khatri@amd.com> (raw)
Add support of debugfs for client-id so information specific to each
client could be added by corresponding driver such as page table and
queues associted etc.
For amdgpu below is the information and data stucture added:
----------------------------------------------------------------------------------------------------------------------------------
root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat 128/clients
command tgid dev master a uid magic name client-id
systemd-logind 1049 0 y y 0 0 <unset> 5
Xwayland 1706 128 n n 120 0 <unset> 8
mutter-x11-fram 2019 128 n n 120 0 <unset> 9
ibus-x11 2046 128 n n 120 0 <unset> 10
root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-5/
0/ pt_base_info
root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-5/pt_base_info
pid: 1049
comm: systemd-logind
pt_base: 0x81febe9000
root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-8/pt_base_info
pid: 1706
comm: Xwayland
pt_base: 0x81febdc000
-------------------------------------------------------------------------------------------------------------------------------------
Sunil Khatri (2):
drm/debugfs: add client-id to the debugfs entry
drm: add debugfs support on per client-id basis
drivers/gpu/drm/drm_debugfs.c | 10 ++++++----
drivers/gpu/drm/drm_file.c | 26 ++++++++++++++++++++++++++
include/drm/drm_device.h | 4 ++++
include/drm/drm_file.h | 7 +++++++
4 files changed, 43 insertions(+), 4 deletions(-)
--
2.34.1
next reply other threads:[~2025-06-16 10:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 10:05 Sunil Khatri [this message]
2025-06-16 10:05 ` [PATCH v2 1/2] drm/debugfs: add client-id to the debugfs entry Sunil Khatri
2025-06-16 10:05 ` [PATCH v2 2/2] drm: add debugfs support on per client-id basis Sunil Khatri
2025-06-16 12:11 ` Christian König
2025-06-16 12:25 ` Khatri, Sunil
2025-06-16 12:56 ` Christian König
2025-06-16 14:32 ` Khatri, Sunil
2025-06-16 14:59 ` Christian König
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=20250616100503.1204166-1-sunil.khatri@amd.com \
--to=sunil.khatri@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
/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).