drm/amdkfd: add debug query event operation
authorJonathan Kim <jonathan.kim@amd.com>
Mon, 9 May 2022 15:10:32 +0000 (11:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:36:51 +0000 (12:36 -0400)
commit5bc20c224bcb863571e8831cdbba23cd61b10ac3
tree7df4a5ce30d60ce1b5c8c34f99e78319b60076f6
parent103d5f08ff42b666c61c350be2c3e724c1646918
drm/amdkfd: add debug query event operation

Allow the debugger to query a single queue, device and process
exception.
The KFD should also return the GPU or Queue id of the exception.
The debugger also has the option of clearing exceptions after
being queried.

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
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
drivers/gpu/drm/amd/amdkfd/kfd_debug.h