drm/amdkfd: add debug and runtime enable interface
authorJonathan Kim <jonathan.kim@amd.com>
Wed, 2 Mar 2022 19:30:12 +0000 (14:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:34:41 +0000 (12:34 -0400)
commit4f98cf2baf9faee5b6f2f7889dad7c0f7686a787
tree0586bcce3c8cbec7546455acf594c0c12c774361
parentba3c87fffb79311f54464288c66421d19c2c1234
drm/amdkfd: add debug and runtime enable interface

Introduce the GPU debug operations interface.

For ROCm-GDB to extend the GNU Debugger's ability to inspect the AMD GPU
instruction set, provide the necessary interface to allow the debugger
to HW debug-mode set and query exceptions per HSA queue, process or
device.

The runtime_enable interface coordinates exception handling with the
HSA runtime.

Usage is available in the kern docs at uapi/linux/kfd_ioctl.h.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
include/uapi/linux/kfd_ioctl.h