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
352 /* Per-VM and PT BOs who needs a validation */
390 /* How many times we had to re-generate the page tables */
425 /* Memory partition number, -1 means any partition */
475 #define amdgpu_vm_copy_pte(adev, ib, pe, src, count) ((adev)->vm_manager.vm_pte_funcs->copy_pte((ib), (pe), (src), (count)))
476 #define amdgpu_vm_write_pte(adev, ib, pe, value, count, incr) ((adev)->vm_manager.vm_pte_funcs->write_pte((ib), (pe), (value), (count), (incr)))
477 #define amdgpu_vm_set_pte_pde(adev, ib, pe, addr, count, incr, flags) ((adev)->vm_manager.vm_pte_funcs->set_pte_pde((ib), (pe), (addr), (count), (incr), (flags)))
609 * amdgpu_vm_tlb_seq - return tlb flush sequence number
626 lock = vm->last_tlb_flush->lock;
632 return atomic64_read(&vm->tlb_seq);
636 * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
638 * an MMU notifier runs in reclaim-FS context.
642 mutex_lock(&vm->eviction_lock);
643 vm->saved_flags = memalloc_noreclaim_save();
648 if (mutex_trylock(&vm->eviction_lock)) {
649 vm->saved_flags = memalloc_noreclaim_save();
657 memalloc_noreclaim_restore(vm->saved_flags);
658 mutex_unlock(&vm->eviction_lock);