Lines Matching full:vmid
148 * VMID manager
157 * @id: VMID structure
159 * Check if GPU reset occured since last use of the VMID.
169 * amdgpu_vmid_grab_idle - grab idle VMID
174 * @idle: resulting idle VMID
176 * Try to find an idle VMID, if none is idle add a fence to wait to the sync
198 /* Check if we have an idle VMID */ in amdgpu_vmid_grab_idle()
201 /* Don't use per engine and per process VMID at the same time */ in amdgpu_vmid_grab_idle()
211 /* If we can't find a idle VMID to use, wait till one becomes available */ in amdgpu_vmid_grab_idle()
242 * amdgpu_vmid_grab_reserved - try to assign reserved VMID
248 * @job: job who wants to use the VMID
249 * @id: resulting VMID
251 * Try to assign a reserved VMID.
276 /* Don't use per engine and per process VMID at the same time */ in amdgpu_vmid_grab_reserved()
290 /* Good we can use this VMID. Remember this submission as in amdgpu_vmid_grab_reserved()
291 * user of the VMID. in amdgpu_vmid_grab_reserved()
303 * amdgpu_vmid_grab_used - try to reuse a VMID
309 * @job: job who wants to use the VMID
310 * @id: resulting VMID
312 * Try to reuse a VMID for this submission.
330 /* Check if we can use a VMID already assigned to this VM */ in amdgpu_vmid_grab_used()
334 /* Check all the prerequisites to using this VMID */ in amdgpu_vmid_grab_used()
352 /* Good, we can use this VMID. Remember this submission as in amdgpu_vmid_grab_used()
353 * user of the VMID. in amdgpu_vmid_grab_used()
369 * amdgpu_vmid_grab - allocate the next free VMID
375 * @job: job who wants to use the VMID
408 /* Remember this submission as user of the VMID */ in amdgpu_vmid_grab()
427 job->vmid = id - id_mgr->ids; in amdgpu_vmid_grab()
450 DRM_ERROR("Over limitation of reserved vmid\n"); in amdgpu_vmid_alloc_reserved()
455 /* Select the first entry VMID */ in amdgpu_vmid_alloc_reserved()
484 * amdgpu_vmid_reset - reset VMID to zero
488 * @vmid: vmid number to use
493 unsigned vmid) in amdgpu_vmid_reset() argument
496 struct amdgpu_vmid *id = &id_mgr->ids[vmid]; in amdgpu_vmid_reset()
510 * amdgpu_vmid_reset_all - reset VMID to zero
514 * Reset VMID to force flush on next use
530 * amdgpu_vmid_mgr_init - init the VMID manager
551 /* skip over VMID 0, since it is the system VM */ in amdgpu_vmid_mgr_init()