aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
diff options
context:
space:
mode:
authorAmber Lin <Amber.Lin@amd.com>2018-12-13 11:57:35 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-01-14 15:04:28 -0500
commit2d3d25b616a09c16c2506f23289532a31638620f (patch)
tree7cbe6060daca7886efe481f20df24a94ca4f50c1 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
parent4ed46c6c4ec7a6a2176289a19485a7b04753dc3e (diff)
drm/amdgpu: Relocate kgd2kfd function declaration
Since amdkfd is merged into amdgpu module and amdgpu can access amdkfd directly, move declaration of kgd2kfd functions from kfd_priv.h to amdgpu_amdkfd.h Signed-off-by: Amber Lin <Amber.Lin@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
index be1ab43473c6..3fc2618ca646 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@ -44,6 +44,8 @@
44 */ 44 */
45#define AMDGPU_USERPTR_RESTORE_DELAY_MS 1 45#define AMDGPU_USERPTR_RESTORE_DELAY_MS 1
46 46
47extern const struct kgd2kfd_calls *kgd2kfd;
48
47/* Impose limit on how much memory KFD can use */ 49/* Impose limit on how much memory KFD can use */
48static struct { 50static struct {
49 uint64_t max_system_mem_limit; 51 uint64_t max_system_mem_limit;