drm/amdkfd: Add module parameter of send_sigterm
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 24 Dec 2014 11:30:52 +0000 (13:30 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2015 10:02:28 +0000 (13:02 +0300)
commit81663016dbfd53e29d1b5c5ddbc9b12ae1d66474
tree337823c18adb9dac0f812b4e76eb2ed9747c4c71
parent930c5ff4390221cccf368b305c04351fbcf0dfcf
drm/amdkfd: Add module parameter of send_sigterm

This patch adds a new kernel module parameter to amdkfd,
called send_sigterm.

This parameter specifies whether amdkfd should send the
SIGTERM signal to an HSA process, when the following conditions
occur:

1. The GPU triggers an exception regarding a kernel that was
   issued by this process.

2. The HSA process isn't waiting on an event that handles
   this exception.

The default behavior is not to send a SIGTERM and suffice
with a dmesg error print.

Reviewed-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_events.c
drivers/gpu/drm/amd/amdkfd/kfd_module.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h