drm/amdkfd: add raise exception event function
authorJonathan Kim <jonathan.kim@amd.com>
Wed, 6 Apr 2022 16:03:31 +0000 (12:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:35:58 +0000 (12:35 -0400)
commit44b87bb0836c65d1b9d21b01503eb6e9b9297771
treeb6cc3c68fa63ea1bff4ac649f2705b31514eec8f
parent69a8c3ae2dea84a6d571e4c1aad306f630f3ccfd
drm/amdkfd: add raise exception event function

Exception events can be generated from interrupts or queue activitity.

The raise event function will save exception status of a queue, device
or process then notify the debugger of the status change by writing to
a debugger polled file descriptor that the debugger provides during
debug attach.

For memory violation exceptions, extra exception data will be saved.

The debugger will be able to query the saved exception states by query
operation that will be provided by follow up patches.

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