Lines Matching +full:gfx +full:- +full:mem

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 */
134 /* PDE Block Fragment Size for gfx v12 */
138 /* PDE is handled as PTE for gfx v12 */
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
209 /* if the bo is counted as shared in mem stats
353 /* Per-VM and PT BOs who needs a validation */
391 /* How many times we had to re-generate the page tables */
426 /* Memory partition number, -1 means any partition */
476 #define amdgpu_vm_copy_pte(adev, ib, pe, src, count) ((adev)->vm_manager.vm_pte_funcs->copy_pte((ib…
477 #define amdgpu_vm_write_pte(adev, ib, pe, value, count, incr) ((adev)->vm_manager.vm_pte_funcs->wri…
478 …_vm_set_pte_pde(adev, ib, pe, addr, count, incr, flags) ((adev)->vm_manager.vm_pte_funcs->set_pte_…
611 * amdgpu_vm_tlb_seq - return tlb flush sequence number
628 lock = vm->last_tlb_flush->lock; in amdgpu_vm_tlb_seq()
634 return atomic64_read(&vm->tlb_seq); in amdgpu_vm_tlb_seq()
638 * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
640 * an MMU notifier runs in reclaim-FS context.
644 mutex_lock(&vm->eviction_lock); in amdgpu_vm_eviction_lock()
645 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_lock()
650 if (mutex_trylock(&vm->eviction_lock)) { in amdgpu_vm_eviction_trylock()
651 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_trylock()
659 memalloc_noreclaim_restore(vm->saved_flags); in amdgpu_vm_eviction_unlock()
660 mutex_unlock(&vm->eviction_lock); in amdgpu_vm_eviction_unlock()