Searched refs:prange (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_svm.c | 81 static void svm_range_unlink(struct svm_range *prange) in svm_range_unlink() argument 83 pr_debug("svms 0x%p prange 0x%p [0x%lx 0x%lx]\n", prange->svms, in svm_range_unlink() 84 prange, prange->start, prange->last); in svm_range_unlink() 86 if (prange->svm_bo) { in svm_range_unlink() 87 spin_lock(&prange->svm_bo->list_lock); in svm_range_unlink() 88 list_del(&prange->svm_bo_list); in svm_range_unlink() 89 spin_unlock(&prange->svm_bo->list_lock); in svm_range_unlink() 92 list_del(&prange->list); in svm_range_unlink() 93 if (prange->it_node.start != 0 && prange->it_node.last != 0) in svm_range_unlink() 94 interval_tree_remove(&prange->it_node, &prange->svms->objects); in svm_range_unlink() [all …]
|
D | kfd_migrate.c | 219 svm_migrate_get_vram_page(struct svm_range *prange, unsigned long pfn) in svm_migrate_get_vram_page() argument 224 svm_range_bo_ref(prange->svm_bo); in svm_migrate_get_vram_page() 225 page->zone_device_data = prange->svm_bo; in svm_migrate_get_vram_page() 296 svm_migrate_copy_to_vram(struct amdgpu_device *adev, struct svm_range *prange, in svm_migrate_copy_to_vram() argument 308 pr_debug("svms 0x%p [0x%lx 0x%lx]\n", prange->svms, prange->start, in svm_migrate_copy_to_vram() 309 prange->last); in svm_migrate_copy_to_vram() 314 r = svm_range_vram_node_new(adev, prange, true); in svm_migrate_copy_to_vram() 320 amdgpu_res_first(prange->ttm_res, prange->offset << PAGE_SHIFT, in svm_migrate_copy_to_vram() 327 svm_migrate_get_vram_page(prange, migrate->dst[i]); in svm_migrate_copy_to_vram() 405 svm_migrate_vma_to_vram(struct amdgpu_device *adev, struct svm_range *prange, in svm_migrate_vma_to_vram() argument [all …]
|
D | kfd_svm.h | 138 static inline void svm_range_lock(struct svm_range *prange) in svm_range_lock() argument 140 mutex_lock(&prange->lock); in svm_range_lock() 141 prange->saved_flags = memalloc_noreclaim_save(); in svm_range_lock() 144 static inline void svm_range_unlock(struct svm_range *prange) in svm_range_unlock() argument 146 memalloc_noreclaim_restore(prange->saved_flags); in svm_range_unlock() 147 mutex_unlock(&prange->lock); in svm_range_unlock() 166 struct amdgpu_device *svm_range_get_adev_by_id(struct svm_range *prange, 169 struct svm_range *prange, bool clear); 170 void svm_range_vram_node_free(struct svm_range *prange); 173 struct svm_range *prange); [all …]
|
D | kfd_migrate.h | 43 int svm_migrate_to_vram(struct svm_range *prange, uint32_t best_loc, 45 int svm_migrate_vram_to_ram(struct svm_range *prange, struct mm_struct *mm,
|