drm/amdkfd: add debug query exception info operation
authorJonathan Kim <jonathan.kim@amd.com>
Mon, 9 May 2022 17:37:36 +0000 (13:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:36:53 +0000 (12:36 -0400)
commit2b36de971d25daa2ad287114ae3ca11a8f8d49d7
tree7df8973d81475fb979cbccde23040604a437063b
parent5bc20c224bcb863571e8831cdbba23cd61b10ac3
drm/amdkfd: add debug query exception info operation

Allow the debugger to query additional info based on an exception code.
For device exceptions, it's currently only memory violation information.
For process exceptions, it's currently only runtime information.
Queue exception only report the queue exception status.

The debugger has the option of clearing the target exception on query.

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