This series adds initial Debugger support on top of the render-node
EVENTFD and WAIT_EVENT frameworks.

A debugger can attach to a render-node client, receive events through a
dedicated debug fd, and forward selected events to the application. The
series introduces the core infrastructure required for debugger-managed
event handling, including debugger attachment, debug event queueing,
event delivery, forwarding, and detach handling.

Testing:
Compilation tested
Driver load/unload tested

Srinivasan Shanmugam (5):
  drm/amdgpu/uapi: Add debug event definitions
  drm/amdgpu/wait-event: Export push-data helper
  drm/amdgpu: Add debug event fd core
  drm/amdgpu: Register debug event ioctl
  drm/amdgpu: Route events through debugger

 drivers/gpu/drm/amd/amdgpu/Makefile           |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |   2 +
 .../gpu/drm/amd/amdgpu/amdgpu_debug_event.c   | 408 ++++++++++++++++++
 .../gpu/drm/amd/amdgpu/amdgpu_debug_event.h   |  52 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |   2 +
 .../gpu/drm/amd/amdgpu/amdgpu_wait_event.c    |  16 +
 .../gpu/drm/amd/amdgpu/amdgpu_wait_event.h    |   3 +
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c        |  94 ++--
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c        |  14 +-
 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c    |  27 +-
 include/uapi/drm/amdgpu_drm.h                 |  52 +++
 12 files changed, 608 insertions(+), 66 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_debug_event.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_debug_event.h

-- 
2.34.1

Reply via email to