aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2018-03-23 15:32:28 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2018-03-23 15:32:28 -0400
commite52482dec8366a98ac380b3bdc1a4abb8a390914 (patch)
treefa7b80e387e3d73bd3bc4a3fbeae15875f477505 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e (diff)
drm/amdgpu: Add MMU notifier type for KFD userptr
This commit adds the notion of MMU notifier types GFX and HSA. GFX continues to work like MMU notifiers did before. HSA adds support for KFD userptr BOs. The implementation of KFD userptr eviction is a stub for now. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c7
1 files changed, 7 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 1d6e1479da38..2463ff6ac9ca 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@ -1418,6 +1418,13 @@ bo_reserve_failed:
1418 return ret; 1418 return ret;
1419} 1419}
1420 1420
1421int amdgpu_amdkfd_evict_userptr(struct kgd_mem *mem,
1422 struct mm_struct *mm)
1423{
1424 /* TODO */
1425 return 0;
1426}
1427
1421/** amdgpu_amdkfd_gpuvm_restore_process_bos - Restore all BOs for the given 1428/** amdgpu_amdkfd_gpuvm_restore_process_bos - Restore all BOs for the given
1422 * KFD process identified by process_info 1429 * KFD process identified by process_info
1423 * 1430 *