Skip to content

Enable debugfs information based on client-id

Sunil Khatri amd-gfx dri-devel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest4 patches 2 repliesIn review
  2. v94 patches 3 repliesSuperseded
  3. v84 patches 3 repliesSuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm: move drm based debugfs funcs to drm_debugfs.cdrivers/accel/drm_accel.c drivers/gpu/drm/drm_debugfs.c drivers/gpu/drm/drm_drv.c +3 more+55 -441 reply
2/4drm: add debugfs support on per client-id basisdrivers/gpu/drm/drm_debugfs.c drivers/gpu/drm/drm_file.c include/drm/drm_debugfs.h +1 more+110 -01 reply
3/4drm/amdgpu: add debugfs support for VM pagetable per clientdrivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.h drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c+55 -00 replies
4/4drm/amdgpu: add support of debugfs for mqd informationdrivers/gpu/drm/amd/amdgpu/amdgpu_userq.c drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h+53 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchChristian KönigJeff Hugo
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/4] Enable debugfs information based on client-id

client-id is a unique id across the system no matter if its from a VM or on a host system. This unique id is a good base to use create client-id based dentry in debugfs in the root directory.

This directory could be a unique directory where drivers could dump the debug information.

For amdgpu driver, we want to dump the VM PTBASE address and MQD for userqueue which can be used by a tool like amd umr to dump the memory and that is really important to debug userqueues and VM related issues.

One of the challenge in this how to access the root directory which is beyond the drm_device hence moving the debugfs related information to drm_debugfs.c

v10: rebase patch 1 and patch 3 on the drm-misc-next. In the process move the drm bridge code to have access to drm root node for patch 1. for patch 3 remove drm_file from amdgpu_vm_init and call the vm debugfs function directly before calling the amdgpu_vm_init

Sunil Khatri (4):
drm: move drm based debugfs funcs to drm_debugfs.c
drm: add debugfs support on per client-id basis drm/amdgpu: add debugfs support for VM pagetable per client drm/amdgpu: add support of debugfs for mqd information

 drivers/accel/drm_accel.c                   |  16 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c |  52 +++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.h |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c     |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c   |  52 +++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h   |   1 +
 drivers/gpu/drm/drm_debugfs.c               | 118 +++++++++++++++++++-
 drivers/gpu/drm/drm_drv.c                   |  16 +--
 drivers/gpu/drm/drm_file.c                  |  11 ++
 drivers/gpu/drm/drm_internal.h              |   6 +-
 include/drm/drm_accel.h                     |   5 -
 include/drm/drm_debugfs.h                   |  11 ++
 include/drm/drm_drv.h                       |  19 +++-
 include/drm/drm_file.h                      |   7 ++
 14 files changed, 273 insertions(+), 44 deletions(-)
Signature · 1 line
2.34.1