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