diff options
author | Philip Yang <Philip.Yang@amd.com> | 2019-05-29 09:52:16 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-11 12:56:01 -0500 |
commit | 66c45500bfdc6a7f1c143767dfbc8fc8f9435e73 (patch) | |
tree | 713e14e89711527734f243481ce43367f83707a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | |
parent | 8252562d5270c13e6123a5939d0db1bbf04327a1 (diff) | |
download | linux-66c45500bfdc6a7f1c143767dfbc8fc8f9435e73.tar.gz linux-66c45500bfdc6a7f1c143767dfbc8fc8f9435e73.tar.bz2 linux-66c45500bfdc6a7f1c143767dfbc8fc8f9435e73.zip |
drm/amdgpu: use new HMM APIs and helpers
HMM provides new APIs and helps in kernel 5.2-rc1 to simplify driver
path. The old hmm APIs are deprecated and will be removed in future.
Below are changes in driver:
1. Change hmm_vma_fault to hmm_range_register and hmm_range_fault which
supports range with multiple vmas, remove the multiple vmas handle path
and data structure.
2. Change hmm_vma_range_done to hmm_range_unregister.
3. Use default flags to avoid pre-fill pfn arrays.
4. Use new hmm_device_ helpers.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index 41ccee49a224..e0bb47ce570b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c @@ -519,7 +519,6 @@ void amdgpu_hmm_init_range(struct hmm_range *range) range->flags = hmm_range_flags; range->values = hmm_range_values; range->pfn_shift = PAGE_SHIFT; - range->pfns = NULL; INIT_LIST_HEAD(&range->list); } } |