Searched refs:prange (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_svm.c | 92 static void svm_range_unlink(struct svm_range *prange) in svm_range_unlink() argument 94 pr_debug("svms 0x%p prange 0x%p [0x%lx 0x%lx]\n", prange->svms, in svm_range_unlink() 95 prange, prange->start, prange->last); in svm_range_unlink() 97 if (prange->svm_bo) { in svm_range_unlink() 98 spin_lock(&prange->svm_bo->list_lock); in svm_range_unlink() 99 list_del(&prange->svm_bo_list); in svm_range_unlink() 100 spin_unlock(&prange->svm_bo->list_lock); in svm_range_unlink() 103 list_del(&prange->list); in svm_range_unlink() 104 if (prange->it_node.start != 0 && prange->it_node.last != 0) in svm_range_unlink() 105 interval_tree_remove(&prange->it_node, &prange->svms->objects); in svm_range_unlink() [all …]
|
H A D | kfd_migrate.c | 213 svm_migrate_get_vram_page(struct svm_range *prange, unsigned long pfn) in svm_migrate_get_vram_page() argument 218 svm_range_bo_ref(prange->svm_bo); in svm_migrate_get_vram_page() 219 page->zone_device_data = prange->svm_bo; in svm_migrate_get_vram_page() 290 svm_migrate_copy_to_vram(struct kfd_node *node, struct svm_range *prange, in svm_migrate_copy_to_vram() argument 303 pr_debug("svms 0x%p [0x%lx 0x%lx 0x%llx]\n", prange->svms, prange->start, in svm_migrate_copy_to_vram() 304 prange->last, ttm_res_offset); in svm_migrate_copy_to_vram() 309 amdgpu_res_first(prange->ttm_res, ttm_res_offset, in svm_migrate_copy_to_vram() 316 svm_migrate_get_vram_page(prange, migrate->dst[i]); in svm_migrate_copy_to_vram() 394 svm_migrate_vma_to_vram(struct kfd_node *node, struct svm_range *prange, in svm_migrate_vma_to_vram() argument 398 struct kfd_process *p = container_of(prange->svms, struct kfd_process, svms); in svm_migrate_vma_to_vram() [all …]
|
H A 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 kfd_node *svm_range_get_node_by_id(struct svm_range *prange, 168 int svm_range_vram_node_new(struct kfd_node *node, struct svm_range *prange, 170 void svm_range_vram_node_free(struct svm_range *prange); 173 struct svm_range *prange); [all …]
|
H A 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,
|