diff options
author | 2021-02-24 23:02:21 -0500 | |
---|---|---|
committer | 2021-04-20 21:49:07 -0400 | |
commit | 2383f56bbe4ae1460d11ae77b93c1730c4a20c26 (patch) | |
tree | 31e23d101fe2f70559148119a124267a20981e3a /drivers/gpu/drm/amd/amdkfd/kfd_svm.h | |
parent | drm/amdgpu: enable 48-bit IH timestamp counter (diff) | |
download | linux-2383f56bbe4ae1460d11ae77b93c1730c4a20c26.tar.gz linux-2383f56bbe4ae1460d11ae77b93c1730c4a20c26.tar.bz2 linux-2383f56bbe4ae1460d11ae77b93c1730c4a20c26.zip |
drm/amdkfd: page table restore through svm API
Page table restore implementation in SVM API. This is called from
the fault handler at amdgpu_vm. To update page tables through
the page fault retry IH.
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_svm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h index d88926d2855f..9a078d354cba 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h @@ -155,6 +155,8 @@ void svm_range_vram_node_free(struct svm_range *prange); int svm_range_split_by_granularity(struct kfd_process *p, struct mm_struct *mm, unsigned long addr, struct svm_range *parent, struct svm_range *prange); +int svm_range_restore_pages(struct amdgpu_device *adev, + unsigned int pasid, uint64_t addr); void svm_range_add_list_work(struct svm_range_list *svms, struct svm_range *prange, struct mm_struct *mm, enum svm_work_list_ops op); |