]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9766be7cc761cb3c0202d134b7ed954d8bf884d
tree85b2b28e9b3cde27a0e30e274c91e12917a78127
parentda4137fb125bf13083a063899ffd1be15ec540d6
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