dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Support for debugfs directory for each client-id in /dri directory
@ 2025-06-16 10:05 Sunil Khatri
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Sunil Khatri @ 2025-06-16 10:05 UTC (permalink / raw)
  To: Christian König, dri-devel; +Cc: amd-gfx, Sunil Khatri

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-06-16 14:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 10:05 [PATCH v2 0/2] Support for debugfs directory for each client-id in /dri directory Sunil Khatri
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

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).