drm/amdkfd: Add skeleton H/W debugger module support
authorYair Shachar <yair.shachar@amd.com>
Wed, 20 May 2015 10:48:26 +0000 (13:48 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 3 Jun 2015 08:32:28 +0000 (11:32 +0300)
commitfbeb661bfa895dc14ea1f093edc5e6e80f1b6a95
treeee65082f201e113043b706682b74df8edb6d880d
parent992839ad64f21ff4e5ed0a71691098ab7cfcb9dc
drm/amdkfd: Add skeleton H/W debugger module support

This patch adds the skeleton H/W debugger module support. This code
enables registration and unregistration of a single HSA process at a
time.

The module saves the process's pasid and use it to verify that only the
registered process is allowed to execute debugger operations through the
kernel driver.

v2: rename get_dbgmgr_mutex to kfd_get_dbgmgr_mutex to namespace it

Signed-off-by: Yair Shachar <yair.shachar@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/Makefile
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c