drm/amdkfd: Enforce kill all waves on process termination
authorBen Goz <ben.goz@amd.com>
Wed, 20 May 2015 15:05:44 +0000 (18:05 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 3 Jun 2015 08:34:47 +0000 (11:34 +0300)
commitc3447e815062bb48d70a5afa0567fd6f30bc7f1b
treee4893ad147322c0f563cdd9919667920c045fa91
parentedad40239ffcaafd7eb56e4060d472aa5af2df21
drm/amdkfd: Enforce kill all waves on process termination

This commit makes sure that on process termination, after
we're destroying all the active queues, we're killing all the
existing wave front of the current process.

By doing this we're making sure that if any of the CUs were blocked
by infinite loop we're enforcing it to end the shader explicitly.

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