drm/amdkfd: validate svm range system memory
authorPhilip Yang <Philip.Yang@amd.com>
Sat, 15 Feb 2020 20:02:49 +0000 (15:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:46:56 +0000 (21:46 -0400)
commitb1c46c7d622bed62898579548a7e9a21e1320c9d
treeeda763f5f1ed2cec61cdbb5b60c27485ee1869ce
parentd8a3c1c80ceb656de00b45fe1595a040e5535202
drm/amdkfd: validate svm range system memory

Use HMM to get system memory pages address, which will be used to
map to GPUs or migrate to vram.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h