Lines Matching full:vmid
147 * VMID manager
156 * @id: VMID structure
158 * Check if GPU reset occured since last use of the VMID.
188 * amdgpu_vmid_grab_idle - grab idle VMID
191 * @idle: resulting idle VMID
194 * Try to find an idle VMID, if none is idle add a fence to wait to the sync
216 /* Check if we have an idle VMID */ in amdgpu_vmid_grab_idle()
219 /* Don't use per engine and per process VMID at the same time */ in amdgpu_vmid_grab_idle()
229 /* If we can't find a idle VMID to use, wait till one becomes available */ in amdgpu_vmid_grab_idle()
260 * amdgpu_vmid_grab_reserved - try to assign reserved VMID
264 * @job: job who wants to use the VMID
265 * @id: resulting VMID
268 * Try to assign a reserved VMID.
294 * reserved VMID or otherwise the gang could deadlock. in amdgpu_vmid_grab_reserved()
308 /* Don't use per engine and per process VMID at the in amdgpu_vmid_grab_reserved()
326 /* Good we can use this VMID. Remember this submission as in amdgpu_vmid_grab_reserved()
327 * user of the VMID. in amdgpu_vmid_grab_reserved()
339 * amdgpu_vmid_grab_used - try to reuse a VMID
343 * @job: job who wants to use the VMID
344 * @id: resulting VMID
346 * Try to reuse a VMID for this submission.
362 /* Check if we can use a VMID already assigned to this VM */ in amdgpu_vmid_grab_used()
366 /* Check all the prerequisites to using this VMID */ in amdgpu_vmid_grab_used()
384 /* Good, we can use this VMID. Remember this submission as in amdgpu_vmid_grab_used()
385 * user of the VMID. in amdgpu_vmid_grab_used()
401 * amdgpu_vmid_grab - allocate the next free VMID
405 * @job: job who wants to use the VMID
438 /* Remember this submission as user of the VMID */ in amdgpu_vmid_grab()
456 job->vmid = id - id_mgr->ids; in amdgpu_vmid_grab()
476 * amdgpu_vmid_uses_reserved - check if a VM will use a reserved VMID
481 * Returns: True if the VM will use a reserved VMID.
530 * amdgpu_vmid_reset - reset VMID to zero
534 * @vmid: vmid number to use
539 unsigned vmid) in amdgpu_vmid_reset() argument
542 struct amdgpu_vmid *id = &id_mgr->ids[vmid]; in amdgpu_vmid_reset()
556 * amdgpu_vmid_reset_all - reset VMID to zero
560 * Reset VMID to force flush on next use
576 * amdgpu_vmid_mgr_init - init the VMID manager
597 /* skip over VMID 0, since it is the system VM */ in amdgpu_vmid_mgr_init()
604 /* alloc a default reserved vmid to enforce isolation */ in amdgpu_vmid_mgr_init()