Lines Matching defs:pasid
130 * amdgpu_vm_set_pasid - manage pasid and vm ptr mapping
134 * @pasid: the pasid the VM is using on this GPU
136 * Set the pasid this VM is using on this GPU, can also be used to remove the
137 * pasid by passing in zero.
141 u32 pasid)
145 if (vm->pasid == pasid)
148 if (vm->pasid) {
149 r = xa_err(xa_erase_irq(&adev->vm_manager.pasids, vm->pasid));
153 vm->pasid = 0;
156 if (pasid) {
157 r = xa_err(xa_store_irq(&adev->vm_manager.pasids, pasid, vm,
162 vm->pasid = pasid;
672 if (id->pasid != job->pasid || !id->pasid_mapping ||
700 amdgpu_gmc_emit_pasid_mapping(ring, job->vmid, job->pasid);
730 id->pasid = job->pasid;
1566 r = amdgpu_gmc_flush_gpu_tlb_pasid(adev, vm->pasid, flush_type,
2292 amdgpu_vm_get_vm_from_pasid(struct amdgpu_device *adev, u32 pasid)
2298 vm = xa_load(&adev->vm_manager.pasids, pasid);
2341 * @pasid: PASID identifier for VM
2347 amdgpu_vm_get_task_info_pasid(struct amdgpu_device *adev, u32 pasid)
2350 amdgpu_vm_get_vm_from_pasid(adev, pasid));
2566 * pasid from vm. Compute should stop use of vm after this call.
2757 * @pasid: PASID of the VM
2767 bool amdgpu_vm_handle_fault(struct amdgpu_device *adev, u32 pasid,
2779 vm = xa_load(&adev->vm_manager.pasids, pasid);
2793 if (is_compute_context && !svm_range_restore_pages(adev, pasid, vmid,
2805 vm = xa_load(&adev->vm_manager.pasids, pasid);
2955 * @pasid: PASID of the VM
2963 unsigned int pasid,
2973 vm = xa_load(&adev->vm_manager.pasids, pasid);