diff options
author | 2022-07-25 07:06:38 -0400 | |
---|---|---|
committer | 2022-07-28 16:05:14 -0400 | |
commit | 4959e609de1ed4199f33124a88a4c9ab95f5cd9a (patch) | |
tree | d12a0b44de38c8d3700ec968b0692da50ac83597 /drivers/gpu/drm/amd/amdkfd/kfd_svm.h | |
parent | drm/amdgpu: Allow TTM to evict svm bo from same process (diff) | |
download | linux-4959e609de1ed4199f33124a88a4c9ab95f5cd9a.tar.gz linux-4959e609de1ed4199f33124a88a4c9ab95f5cd9a.tar.bz2 linux-4959e609de1ed4199f33124a88a4c9ab95f5cd9a.zip |
drm/amdkfd: Set svm range max pages
This will be used to split giant svm range into smaller ranges, to
support VRAM overcommitment by giant range and improve GPU retry fault
recover on giant range.
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/amdkfd/kfd_svm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h index eab7f6d3b13c..9156b041ef17 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h @@ -204,6 +204,9 @@ void svm_range_list_lock_and_flush_work(struct svm_range_list *svms, struct mm_s #define KFD_IS_SVM_API_SUPPORTED(dev) ((dev)->pgmap.type != 0) void svm_range_bo_unref_async(struct svm_range_bo *svm_bo); + +void svm_range_set_max_pages(struct amdgpu_device *adev); + #else struct kfd_process; |