Lines Matching refs:abo
123 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain() argument
125 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_bo_placement_from_domain()
126 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain()
127 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain()
128 u64 flags = abo->flags; in amdgpu_bo_placement_from_domain()
153 abo->flags & AMDGPU_GEM_CREATE_PREEMPTIBLE ? in amdgpu_bo_placement_from_domain()
1268 struct amdgpu_bo *abo; in amdgpu_bo_move_notify() local
1274 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_move_notify()
1275 amdgpu_vm_bo_invalidate(adev, abo, evict); in amdgpu_bo_move_notify()
1277 amdgpu_bo_kunmap(abo); in amdgpu_bo_move_notify()
1279 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify()
1281 dma_buf_move_notify(abo->tbo.base.dma_buf); in amdgpu_bo_move_notify()
1292 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
1325 struct amdgpu_bo *abo; in amdgpu_bo_release_notify() local
1331 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_release_notify()
1333 if (abo->kfd_bo) in amdgpu_bo_release_notify()
1334 amdgpu_amdkfd_unreserve_memory_limit(abo); in amdgpu_bo_release_notify()
1340 amdgpu_amdkfd_remove_fence_on_pt_pd_bos(abo); in amdgpu_bo_release_notify()
1343 !(abo->flags & AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE)) in amdgpu_bo_release_notify()
1348 r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence); in amdgpu_bo_release_notify()
1350 amdgpu_bo_fence(abo, fence, false); in amdgpu_bo_release_notify()
1372 struct amdgpu_bo *abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_fault_reserve_notify() local
1377 abo->flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED; in amdgpu_bo_fault_reserve_notify()
1387 if (abo->tbo.pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1392 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_bo_fault_reserve_notify()
1396 abo->placement.num_busy_placement = 1; in amdgpu_bo_fault_reserve_notify()
1397 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_bo_fault_reserve_notify()
1399 r = ttm_bo_validate(bo, &abo->placement, &ctx); in amdgpu_bo_fault_reserve_notify()