Lines Matching refs:preempt
70 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) { in preempt_fences_waiting()
95 if (*count >= vm->preempt.num_exec_queues) in alloc_preempt_fences()
98 for (; *count < vm->preempt.num_exec_queues; ++(*count)) { in alloc_preempt_fences()
119 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) { in wait_for_existing_preempt_fences()
147 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) { in xe_vm_is_idle()
160 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) { in arm_preempt_fences()
181 if (!vm->preempt.num_exec_queues) in add_preempt_fences()
184 err = dma_resv_reserve_fences(bo->ttm.base.resv, vm->preempt.num_exec_queues); in add_preempt_fences()
188 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) in add_preempt_fences()
206 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) { in resume_and_reinstall_preempt_fences()
241 list_add(&q->lr.link, &vm->preempt.exec_queues); in xe_vm_add_compute_exec_queue()
242 ++vm->preempt.num_exec_queues; in xe_vm_add_compute_exec_queue()
285 --vm->preempt.num_exec_queues; in xe_vm_remove_compute_exec_queue()
317 list_for_each_entry(q, &vm->preempt.exec_queues, lr.link) in xe_vm_kill()
399 vm->preempt.rebind_deactivated = true; in xe_preempt_work_begin()
423 return xe_vm_validate_rebind(vm, exec, vm->preempt.num_exec_queues); in xe_preempt_work_begin()
434 list_move_tail(&vm->preempt.pm_activate_link, &xe->rebind_resume_list); in vm_suspend_rebind_worker()
450 queue_work(vm->xe->ordered_wq, &vm->preempt.rebind_work); in xe_vm_resume_rebind_worker()
455 struct xe_vm *vm = container_of(w, struct xe_vm, preempt.rebind_work); in preempt_rebind_work_func()
1531 INIT_LIST_HEAD(&vm->preempt.exec_queues); in xe_vm_create()
1533 vm->preempt.min_run_period_ms = xe->min_run_period_pf_ms; in xe_vm_create()
1535 vm->preempt.min_run_period_ms = xe->min_run_period_lr_ms; in xe_vm_create()
1549 INIT_WORK(&vm->preempt.rebind_work, preempt_rebind_work_func); in xe_vm_create()
1551 INIT_LIST_HEAD(&vm->preempt.pm_activate_link); in xe_vm_create()
1617 INIT_WORK(&vm->preempt.rebind_work, preempt_rebind_work_func); in xe_vm_create()
1741 xe_assert(xe, !vm->preempt.num_exec_queues); in xe_vm_close_and_put()
1746 list_del_init(&vm->preempt.pm_activate_link); in xe_vm_close_and_put()
1748 flush_work(&vm->preempt.rebind_work); in xe_vm_close_and_put()
1853 flush_work(&vm->preempt.rebind_work); in vm_destroy_work_func()
2009 else if (XE_IOCTL_DBG(xe, vm->preempt.num_exec_queues)) in xe_vm_destroy_ioctl()