Home
last modified time | relevance | path

Searched refs:svm_bo (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_svm.c86 if (prange->svm_bo) { in svm_range_unlink()
87 spin_lock(&prange->svm_bo->list_lock); in svm_range_unlink()
89 spin_unlock(&prange->svm_bo->list_lock); in svm_range_unlink()
173 amdgpu_ttm_adev(prange->svm_bo->bo->tbo.bdev); in svm_range_dma_map_dev()
348 static bool svm_bo_ref_unless_zero(struct svm_range_bo *svm_bo) in svm_bo_ref_unless_zero() argument
350 if (!svm_bo || !kref_get_unless_zero(&svm_bo->kref)) in svm_bo_ref_unless_zero()
358 struct svm_range_bo *svm_bo; in svm_range_bo_release() local
360 svm_bo = container_of(kref, struct svm_range_bo, kref); in svm_range_bo_release()
361 pr_debug("svm_bo 0x%p\n", svm_bo); in svm_range_bo_release()
363 spin_lock(&svm_bo->list_lock); in svm_range_bo_release()
[all …]
Dkfd_svm.h117 struct svm_range_bo *svm_bo; member
150 static inline struct svm_range_bo *svm_range_bo_ref(struct svm_range_bo *svm_bo) in svm_range_bo_ref() argument
152 if (svm_bo) in svm_range_bo_ref()
153 kref_get(&svm_bo->kref); in svm_range_bo_ref()
155 return svm_bo; in svm_range_bo_ref()
203 void svm_range_bo_unref_async(struct svm_range_bo *svm_bo);
Dkfd_migrate.c224 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()
555 struct svm_range_bo *svm_bo = page->zone_device_data; in svm_migrate_page_free() local
557 if (svm_bo) { in svm_migrate_page_free()
558 pr_debug_ratelimited("ref: %d\n", kref_read(&svm_bo->kref)); in svm_migrate_page_free()
559 svm_range_bo_unref_async(svm_bo); in svm_migrate_page_free()
889 struct svm_range_bo *svm_bo; in svm_migrate_to_ram() local
897 svm_bo = vmf->page->zone_device_data; in svm_migrate_to_ram()
898 if (!svm_bo) { in svm_migrate_to_ram()
902 if (!mmget_not_zero(svm_bo->eviction_fence->mm)) { in svm_migrate_to_ram()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_fence.c65 struct svm_range_bo *svm_bo) in amdgpu_amdkfd_fence_create() argument
78 fence->svm_bo = svm_bo; in amdgpu_amdkfd_fence_create()
129 if (!fence->svm_bo) { in amdkfd_fence_enable_signaling()
177 else if (fence->mm == mm && !fence->svm_bo) in amdkfd_fence_check_mm()
Damdgpu_amdkfd.h93 struct svm_range_bo *svm_bo; member
175 struct svm_range_bo *svm_bo);