drm/amdgpu: add common HMM get pages function
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 25 Feb 2020 02:17:30 +0000 (21:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:46:43 +0000 (21:46 -0400)
commit04d8d73dbcbe645a378fca6adc6f0e7111e46c17
tree1dc3c28b81af9a204f067134461f11afda21c38e
parentc5e2e4781ac5760c6b5efb09fed6ac7725fcf041
drm/amdgpu: add common HMM get pages function

Move the HMM get pages function from amdgpu_ttm and to amdgpu_mn. This
common function will be used by new svm APIs.

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/amdgpu/amdgpu_mn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c