Skip to content

Commit

Permalink
drm/amdkfd: send SIGSEGV to process upon KFD_EVENT_TYPE_MEMORY
Browse files Browse the repository at this point in the history
Signed-off-by: Moses Reuben <moses.reuben@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
  • Loading branch information
Moses Reuben authored and Oded Gabbay committed Jul 12, 2018
1 parent e47cb82 commit 101fee6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/amd/amdkfd/kfd_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,13 @@ static void lookup_events_by_type_and_signal(struct kfd_process *p,
ev->memory_exception_data = *ev_data;
}

if (type == KFD_EVENT_TYPE_MEMORY) {
dev_warn(kfd_device,
"Sending SIGSEGV to HSA Process with PID %d ",
p->lead_thread->pid);
send_sig(SIGSEGV, p->lead_thread, 0);
}

/* Send SIGTERM no event of type "type" has been found*/
if (send_signal) {
if (send_sigterm) {
Expand Down

0 comments on commit 101fee6

Please sign in to comment.