Lines Matching +full:compute +full:- +full:cb

55 #define AMDGPU_VM_PTE_COUNT(adev) (1 << (adev)->vm_manager.block_size)
89 /* Flag combination to set no-retry with TF disabled */
93 /* Flag combination to set no-retry with TF enabled */
169 #define AMDGPU_VA_RESERVED_CSA_START(adev) (((adev)->vm_manager.max_pfn \
171 - AMDGPU_VA_RESERVED_CSA_SIZE)
174 - AMDGPU_VA_RESERVED_SEQ64_SIZE)
177 - AMDGPU_VA_RESERVED_TRAP_SIZE)
188 * PDB2->PDB1->PDB0->PTB
356 * evicted -> relocated (PDs, PTs) or moved (per VM BOs) -> idle
359 /* Per-VM and PT BOs who needs a validation */
376 * evicted_user or invalidated -> done
408 /* How many times we had to re-generate the page tables */
440 /* Flag to indicate if VM is used for compute */
443 /* Memory partition number, -1 means any partition */
477 /* controls how VM page tables are updated for Graphics and Compute.
479 * BIT1[= 0] Compute updated by SDMA [= 1] by CPU
493 #define amdgpu_vm_copy_pte(adev, ib, pe, src, count) ((adev)->vm_manager.vm_pte_funcs->copy_pte((ib…
494 #define amdgpu_vm_write_pte(adev, ib, pe, value, count, incr) ((adev)->vm_manager.vm_pte_funcs->wri…
495 …_vm_set_pte_pde(adev, ib, pe, addr, count, incr, flags) ((adev)->vm_manager.vm_pte_funcs->set_pte_…
626 * amdgpu_vm_tlb_seq - return tlb flush sequence number
639 * the cb. The lock is static after initially setting it up, just make in amdgpu_vm_tlb_seq()
643 lock = vm->last_tlb_flush->lock; in amdgpu_vm_tlb_seq()
649 return atomic64_read(&vm->tlb_seq); in amdgpu_vm_tlb_seq()
653 * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
655 * an MMU notifier runs in reclaim-FS context.
659 mutex_lock(&vm->eviction_lock); in amdgpu_vm_eviction_lock()
660 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_lock()
665 if (mutex_trylock(&vm->eviction_lock)) { in amdgpu_vm_eviction_trylock()
666 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_trylock()
674 memalloc_noreclaim_restore(vm->saved_flags); in amdgpu_vm_eviction_unlock()
675 mutex_unlock(&vm->eviction_lock); in amdgpu_vm_eviction_unlock()
691 list_for_each_entry(mapping, &(bo_va)->valids, list)
693 list_for_each_entry(mapping, &(bo_va)->invalids, list)