Skip to content

Upstream of kernel support for AMDGPU ISA debugging

Jonathan Kim amd-gfx dri-devel oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest32 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32drm/amdkfd: add debug and runtime enable interfacedrivers/gpu/drm/amd/amdkfd/kfd_chardev.c include/uapi/linux/kfd_ioctl.h+710 -11 reply
2/32drm/amdkfd: display debug capabilitiesdrivers/gpu/drm/amd/amdkfd/kfd_topology.c drivers/gpu/drm/amd/amdkfd/kfd_topology.h include/uapi/linux/kfd_sysfs.h+117 -51 reply
3/32drm/amdkfd: prepare per-process debug enable and disabledrivers/gpu/drm/amd/amdkfd/Makefile drivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c +4 more+308 -293 replies
4/32drm/amdgpu: add kgd hw debug mode setting interfacedrivers/gpu/drm/amd/include/kgd_kfd_interface.h+34 -00 replies
5/32drm/amdgpu: setup hw debug registers on driver initializationdrivers/gpu/drm/amd/amdgpu/gfx_v10_0.c drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +8 more+173 -01 reply
6/32drm/amdgpu: add gfx9 hw debug mode enable and disable callsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h drivers/gpu/drm/amd/amdkfd/kfd_debug.h+105 -01 reply
7/32drm/amdgpu: add gfx9.4.1 hw debug mode enable and disable callsdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+122 -31 reply
8/32drm/amdgpu: add gfx10 hw debug mode enable and disable callsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c+126 -1441 reply
9/32drm/amdgpu: add gfx9.4.2 hw debug mode enable and disable callsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c+41 -21 reply
10/32drm/amdgpu: add gfx11 hw debug mode enable and disable callsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c+39 -01 reply
11/32drm/amdgpu: add configurable grace period for unmap queuesdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c +10 more+291 -201 reply
12/32drm/amdkfd: prepare map process for single process debug devicesdrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c +1 more+114 -61 reply
13/32drm/amdgpu: prepare map process for multi-process debug devicesdrivers/gpu/drm/amd/amdkfd/kfd_debug.h drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h +3 more+89 -01 reply
14/32drm/amdgpu: expose debug api for mesdrivers/gpu/drm/amd/amdgpu/amdgpu_mes.c drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +1 more+84 -11 reply
15/32drm/amdkfd: prepare trap workaround for gfx11drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h drivers/gpu/drm/amd/amdgpu/mes_v11_0.c drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +10 more+124 -293 replies
16/32drm/amdkfd: add per process hw trap enable and disable functionsdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h +2 more+190 -21 reply
17/32drm/amdkfd: add raise exception event functiondrivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h drivers/gpu/drm/amd/amdkfd/kfd_priv.h+102 -11 reply
18/32drm/amdkfd: add send exception operationdrivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c drivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c +5 more+135 -61 reply
19/32drm/amdkfd: add runtime enable operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h +1 more+157 -42 replies
20/32drm/amdkfd: add debug trap enabled flag to tmadrivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_priv.h drivers/gpu/drm/amd/amdkfd/kfd_process.c+28 -00 replies
21/32drm/amdkfd: update process interrupt handling for debug eventsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdkfd/Makefile +9 more+681 -201 reply
22/32drm/amdkfd: add debug set exceptions enabled operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h+41 -00 replies
23/32drm/amdkfd: add debug wave launch override operationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c +8 more+350 -21 reply
24/32drm/amdkfd: add debug wave launch mode operationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c +8 more+124 -61 reply
25/32drm/amdkfd: add debug suspend and resume process queues operationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +7 more+518 -101 reply
26/32drm/amdkfd: add debug set and clear address watch points operationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c +10 more+451 -51 reply
27/32drm/amdkfd: add debug set flags operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h+41 -01 reply
28/32drm/amdkfd: add debug query event operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h+75 -00 replies
29/32drm/amdkfd: add debug query exception info operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h+133 -00 replies
30/32drm/amdkfd: add debug queue snapshot operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h +2 more+91 -01 reply
31/32drm/amdkfd: add debug device snapshot operationdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_debug.c drivers/gpu/drm/amd/amdkfd/kfd_debug.h+82 -21 reply
32/32drm/amdkfd: bump kfd ioctl minor version for debug api availabilitydrivers/gpu/drm/amd/amdkfd/kfd_chardev.c include/uapi/linux/kfd_ioctl.h+2 -21 reply

Reviews trailers per patch

21 of 32 patches have a Reviewed-by or Acked-by.

PatchFelix Kuehling
1/32R-b
2/32R-b
3/32
4/32R-b
5/32R-b
6/32R-b
7/32R-b
8/32R-b
9/32R-b
10/32R-b
11/32R-b
12/32
13/32
14/32R-b
15/32
16/32
17/32
18/32
19/32
20/32R-b
21/32R-b
22/32R-b
23/32R-b
24/32
25/32
26/32R-b
27/32
28/32R-b
29/32R-b
30/32R-b
31/32R-b
32/32R-b R-b

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

Read the v1 thread

Cover letter [PATCH 00/32] Upstream of kernel support for AMDGPU ISA debugging

AMDGPU kernel upstream support for debugging of compute ISA.

Current production ROCm GDB interface for ISA debugging:
https://rocmdocs.amd.com/en/latest/ROCm_Tools/ROCgdb.html

WIP upstream source for ROCm GDB API, ROC Kernel and ROC Thunk can be referenced here:
https://github.com/ROCm-Developer-Tools/ROCdbgapi/tree/wip-dbgapi
https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/wip-dbgapi
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/wip-dbgapi