Home
last modified time | relevance | path

Searched refs:bo_va (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_vm.c297 struct radeon_bo_va *bo_va; in radeon_vm_bo_find() local
299 list_for_each_entry(bo_va, &bo->va, bo_list) { in radeon_vm_bo_find()
300 if (bo_va->vm == vm) in radeon_vm_bo_find()
301 return bo_va; in radeon_vm_bo_find()
324 struct radeon_bo_va *bo_va; in radeon_vm_bo_add() local
326 bo_va = kzalloc(sizeof(struct radeon_bo_va), GFP_KERNEL); in radeon_vm_bo_add()
327 if (bo_va == NULL) in radeon_vm_bo_add()
330 bo_va->vm = vm; in radeon_vm_bo_add()
331 bo_va->bo = bo; in radeon_vm_bo_add()
332 bo_va->it.start = 0; in radeon_vm_bo_add()
[all …]
Dradeon_gem.c204 struct radeon_bo_va *bo_va; in radeon_gem_object_open() local
217 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_open()
218 if (!bo_va) { in radeon_gem_object_open()
219 bo_va = radeon_vm_bo_add(rdev, vm, rbo); in radeon_gem_object_open()
221 ++bo_va->ref_count; in radeon_gem_object_open()
235 struct radeon_bo_va *bo_va; in radeon_gem_object_close() local
249 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_close()
250 if (bo_va) { in radeon_gem_object_close()
251 if (--bo_va->ref_count == 0) { in radeon_gem_object_close()
252 radeon_vm_bo_rmv(rdev, bo_va); in radeon_gem_object_close()
[all …]
Dradeon_trace.h66 TP_PROTO(struct radeon_bo_va *bo_va),
67 TP_ARGS(bo_va),
75 __entry->soffset = bo_va->it.start;
76 __entry->eoffset = bo_va->it.last + 1;
77 __entry->flags = bo_va->flags;
Dradeon_cs.c506 struct radeon_bo_va *bo_va; in radeon_bo_vm_update_pte() local
531 bo_va = radeon_vm_bo_find(vm, bo); in radeon_bo_vm_update_pte()
532 if (bo_va == NULL) { in radeon_bo_vm_update_pte()
537 r = radeon_vm_bo_update(rdev, bo_va, bo->tbo.resource); in radeon_bo_vm_update_pte()
541 radeon_sync_fence(&p->ib.sync, bo_va->last_pt_update); in radeon_bo_vm_update_pte()
Dradeon.h2854 struct radeon_bo_va *bo_va,
2864 struct radeon_bo_va *bo_va,
2868 struct radeon_bo_va *bo_va);
/linux-6.6.21/drivers/gpu/drm/lima/
Dlima_vm.c79 struct lima_bo_va *bo_va, *ret = NULL; in lima_vm_bo_find() local
81 list_for_each_entry(bo_va, &bo->va, list) { in lima_vm_bo_find()
82 if (bo_va->vm == vm) { in lima_vm_bo_find()
83 ret = bo_va; in lima_vm_bo_find()
93 struct lima_bo_va *bo_va; in lima_vm_bo_add() local
99 bo_va = lima_vm_bo_find(vm, bo); in lima_vm_bo_add()
100 if (bo_va) { in lima_vm_bo_add()
101 bo_va->ref_count++; in lima_vm_bo_add()
112 bo_va = kzalloc(sizeof(*bo_va), GFP_KERNEL); in lima_vm_bo_add()
113 if (!bo_va) { in lima_vm_bo_add()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vm.c1007 static void amdgpu_vm_bo_get_memory(struct amdgpu_bo_va *bo_va, in amdgpu_vm_bo_get_memory() argument
1010 struct amdgpu_vm *vm = bo_va->base.vm; in amdgpu_vm_bo_get_memory()
1011 struct amdgpu_bo *bo = bo_va->base.bo; in amdgpu_vm_bo_get_memory()
1032 struct amdgpu_bo_va *bo_va, *tmp; in amdgpu_vm_get_memory() local
1035 list_for_each_entry_safe(bo_va, tmp, &vm->idle, base.vm_status) in amdgpu_vm_get_memory()
1036 amdgpu_vm_bo_get_memory(bo_va, stats); in amdgpu_vm_get_memory()
1038 list_for_each_entry_safe(bo_va, tmp, &vm->evicted, base.vm_status) in amdgpu_vm_get_memory()
1039 amdgpu_vm_bo_get_memory(bo_va, stats); in amdgpu_vm_get_memory()
1041 list_for_each_entry_safe(bo_va, tmp, &vm->relocated, base.vm_status) in amdgpu_vm_get_memory()
1042 amdgpu_vm_bo_get_memory(bo_va, stats); in amdgpu_vm_get_memory()
[all …]
Damdgpu_csa.c67 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va, in amdgpu_map_static_csa() argument
85 *bo_va = amdgpu_vm_bo_add(adev, vm, bo); in amdgpu_map_static_csa()
86 if (!*bo_va) { in amdgpu_map_static_csa()
91 r = amdgpu_vm_bo_map(adev, *bo_va, csa_addr, 0, size, in amdgpu_map_static_csa()
97 amdgpu_vm_bo_del(adev, *bo_va); in amdgpu_map_static_csa()
107 struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va, in amdgpu_unmap_static_csa() argument
125 r = amdgpu_vm_bo_unmap(adev, bo_va, csa_addr); in amdgpu_unmap_static_csa()
131 amdgpu_vm_bo_del(adev, bo_va); in amdgpu_unmap_static_csa()
Damdgpu_gem.c168 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_open() local
184 bo_va = amdgpu_vm_bo_find(vm, abo); in amdgpu_gem_object_open()
185 if (!bo_va) in amdgpu_gem_object_open()
186 bo_va = amdgpu_vm_bo_add(adev, vm, abo); in amdgpu_gem_object_open()
188 ++bo_va->ref_count; in amdgpu_gem_object_open()
202 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_close() local
219 bo_va = amdgpu_vm_bo_find(vm, bo); in amdgpu_gem_object_close()
220 if (!bo_va || --bo_va->ref_count) in amdgpu_gem_object_close()
223 amdgpu_vm_bo_del(adev, bo_va); in amdgpu_gem_object_close()
608 struct amdgpu_bo_va *bo_va, in amdgpu_gem_va_update_vm() argument
[all …]
Damdgpu_csa.h35 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va,
38 struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va,
Damdgpu_amdkfd_gpuvm.c82 if (entry->bo_va->base.vm == avm) in kfd_mem_is_attached()
517 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
564 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_dmabuf()
607 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_sg_bo()
684 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmaunmap_userptr()
730 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmaunmap_sg_bo()
917 attachment[i]->bo_va = amdgpu_vm_bo_add(adev, vm, bo[i]); in kfd_mem_attach()
919 if (unlikely(!attachment[i]->bo_va)) { in kfd_mem_attach()
939 if (attachment[i]->bo_va) { in kfd_mem_attach()
941 amdgpu_vm_bo_del(adev, attachment[i]->bo_va); in kfd_mem_attach()
[all …]
Damdgpu_trace.h246 TP_PROTO(struct amdgpu_bo_va *bo_va,
248 TP_ARGS(bo_va, mapping),
258 __entry->bo = bo_va ? bo_va->base.bo : NULL;
270 TP_PROTO(struct amdgpu_bo_va *bo_va,
272 TP_ARGS(bo_va, mapping),
282 __entry->bo = bo_va ? bo_va->base.bo : NULL;
Damdgpu_vm.h431 struct amdgpu_bo_va *bo_va,
443 struct amdgpu_bo_va *bo_va,
447 struct amdgpu_bo_va *bo_va,
451 struct amdgpu_bo_va *bo_va,
460 struct amdgpu_bo_va *bo_va);
Damdgpu_cs.c912 e->bo_va = amdgpu_vm_bo_find(vm, e->bo); in amdgpu_cs_parser_bos()
1092 struct amdgpu_bo_va *bo_va; in amdgpu_cs_vm_handling() local
1109 bo_va = fpriv->csa_va; in amdgpu_cs_vm_handling()
1110 BUG_ON(!bo_va); in amdgpu_cs_vm_handling()
1111 r = amdgpu_vm_bo_update(adev, bo_va, false); in amdgpu_cs_vm_handling()
1115 r = amdgpu_sync_fence(&p->sync, bo_va->last_pt_update); in amdgpu_cs_vm_handling()
1121 bo_va = e->bo_va; in amdgpu_cs_vm_handling()
1122 if (bo_va == NULL) in amdgpu_cs_vm_handling()
1125 r = amdgpu_vm_bo_update(adev, bo_va, false); in amdgpu_cs_vm_handling()
1129 r = amdgpu_sync_fence(&p->sync, bo_va->last_pt_update); in amdgpu_cs_vm_handling()
[all …]
Damdgpu_mes.c1148 struct amdgpu_bo_va *bo_va; in amdgpu_mes_ctx_map_meta_data() local
1169 bo_va = amdgpu_vm_bo_add(adev, vm, ctx_data->meta_data_obj); in amdgpu_mes_ctx_map_meta_data()
1170 if (!bo_va) { in amdgpu_mes_ctx_map_meta_data()
1176 r = amdgpu_vm_bo_map(adev, bo_va, ctx_data->meta_data_gpu_addr, 0, in amdgpu_mes_ctx_map_meta_data()
1186 r = amdgpu_vm_bo_update(adev, bo_va, false); in amdgpu_mes_ctx_map_meta_data()
1191 amdgpu_sync_fence(&sync, bo_va->last_pt_update); in amdgpu_mes_ctx_map_meta_data()
1204 ctx_data->meta_data_va = bo_va; in amdgpu_mes_ctx_map_meta_data()
1208 amdgpu_vm_bo_del(adev, bo_va); in amdgpu_mes_ctx_map_meta_data()
1219 struct amdgpu_bo_va *bo_va = ctx_data->meta_data_va; in amdgpu_mes_ctx_unmap_meta_data() local
1221 struct amdgpu_vm *vm = bo_va->base.vm; in amdgpu_mes_ctx_unmap_meta_data()
[all …]
Damdgpu_bo_list.h39 struct amdgpu_bo_va *bo_va; member
Damdgpu_object.h65 struct amdgpu_bo_va *bo_va; member
Damdgpu_amdkfd.h61 struct amdgpu_bo_va *bo_va; member
Dgmc_v9_0.c1188 struct amdgpu_vm *vm = mapping->bo_va->base.vm; in gmc_v9_0_get_coherence_flags()
1216 if (mapping->bo_va->is_xgmi) in gmc_v9_0_get_coherence_flags()
1290 struct amdgpu_bo *bo = mapping->bo_va->base.bo; in gmc_v9_0_get_vm_pte()
1304 gmc_v9_0_get_coherence_flags(adev, mapping->bo_va->base.bo, in gmc_v9_0_get_vm_pte()
Dvcn_v1_0.c1930 if (!mapping || !mapping->bo_va || !mapping->bo_va->base.bo) in vcn_v1_0_validate_bo()
1933 bo = mapping->bo_va->base.bo; in vcn_v1_0_validate_bo()
Dgmc_v11_0.c525 struct amdgpu_bo *bo = mapping->bo_va->base.bo; in gmc_v11_0_get_vm_pte()
Dgmc_v10_0.c617 struct amdgpu_bo *bo = mapping->bo_va->base.bo; in gmc_v10_0_get_vm_pte()
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c367 wptr_bo = wptr_mapping->bo_va->base.bo; in kfd_ioctl_create_queue()
Dkfd_svm.c2733 bo = mapping->bo_va->base.bo; in svm_range_check_vm_userptr()