OSDN Git Service

drm/amdgpu: Relocate some definitions v2
authorAmber Lin <Amber.Lin@amd.com>
Wed, 29 Aug 2018 17:39:16 +0000 (12:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Aug 2018 17:41:50 +0000 (12:41 -0500)
commit2690262ec9fea3aa364ca9cd31981d7fe3888a5b
tree85b2b28e9b3cde27a0e30e274c91e12917a78127
parentdcaaff4eed13c4dcc15525ff87269b3f4544345a
drm/amdgpu: Relocate some definitions v2

Move some KFD-related (but used in amdgpu_drv.c) definitions from
kfd_priv.h to kgd_kfd_interface.h so we don't need to include kfd_priv.h
in amdgpu_drv.c. This fixes a build failure when AMDGPU is enabled but
MMU_NOTIFIER is not.
This patch also disables KFD-related module options when HSA_AMD is not
enabled.

v2: rebase (Alex)

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/include/kgd_kfd_interface.h