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 */
395 /* How many times we had to re-generate the page tables */
430 /* Memory partition number, -1 means any partition */
480 #define amdgpu_vm_copy_pte(adev, ib, pe, src, count) ((adev)->vm_manager.vm_pte_funcs->copy_pte((ib…
481 #define amdgpu_vm_write_pte(adev, ib, pe, value, count, incr) ((adev)->vm_manager.vm_pte_funcs->wri…
482 …_vm_set_pte_pde(adev, ib, pe, addr, count, incr, flags) ((adev)->vm_manager.vm_pte_funcs->set_pte_…
615 * amdgpu_vm_tlb_seq - return tlb flush sequence number
632 lock = vm->last_tlb_flush->lock; in amdgpu_vm_tlb_seq()
638 return atomic64_read(&vm->tlb_seq); in amdgpu_vm_tlb_seq()
642 * vm eviction_lock can be taken in MMU notifiers. Make sure no reclaim-FS
644 * an MMU notifier runs in reclaim-FS context.
648 mutex_lock(&vm->eviction_lock); in amdgpu_vm_eviction_lock()
649 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_lock()
654 if (mutex_trylock(&vm->eviction_lock)) { in amdgpu_vm_eviction_trylock()
655 vm->saved_flags = memalloc_noreclaim_save(); in amdgpu_vm_eviction_trylock()
663 memalloc_noreclaim_restore(vm->saved_flags); in amdgpu_vm_eviction_unlock()
664 mutex_unlock(&vm->eviction_lock); in amdgpu_vm_eviction_unlock()