Lines Matching +full:access +full:- +full:granularity
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
3 * Copyright 2020-2021 Advanced Micro Devices, Inc.
40 ((adev)->hive ? (void *)(adev)->hive : (void *)(adev))
69 * struct svm_range - shared virtual memory range
76 * aligned, page size is (last - start + 1)
95 * @granularity:migration granularity, log2 num pages
102 * @bitmap_access: index bitmap of GPUs which can access the range
103 * @bitmap_aip: index bitmap of GPUs which can access the range in place
130 uint8_t granularity; member
145 mutex_lock(&prange->lock); in svm_range_lock()
146 prange->saved_flags = memalloc_noreclaim_save(); in svm_range_lock()
151 memalloc_noreclaim_restore(prange->saved_flags); in svm_range_unlock()
152 mutex_unlock(&prange->lock); in svm_range_unlock()
158 kref_get(&svm_bo->kref); in svm_range_bo_ref()
204 #define KFD_IS_SVM_API_SUPPORTED(adev) ((adev)->kfd.pgmap.type != 0 ||\
205 ((adev)->flags & AMD_IS_APU))
230 return -EFAULT; in svm_range_restore_pages()
237 return -EINVAL; in svm_range_schedule_evict_svm_bo()
261 return -EINVAL; in kfd_criu_restore_svm()