xe_vm.c
Adds an entry to a linked listRemoves an entry from a linked list
SHA-256d50fbc78a7c39d256f58d9739f007dd4136260f43c2172b5dbc46f2bea9e005b
MaleculeO(Er)H(Db₂)
Evidence
124:17… e);
125 if (!timeout) {
126 xe_assert(vm->xe, vf_migration);
127 return -EAGAIN;
128 }
129
130 /* Only -ETIME on fence indicates VM needs to be killed */
131 if (timeout < 0 || q->lr.pfence->error == -ETIME)
132 r …
236:7… S_ERR(pfence)) {
237 err = PTR_ERR(pfence);
238 goto out_fini;
239 }
240
241 list_add(&q->lr.link, &vm->preempt.exec_queues);
242 ++vm->preempt.num_exec_queues;
243 q->lr.pfence = pfence;
⋯4 lines
518:26… ERNEL,
519 false, MAX_SCHEDULE_TIMEOUT);
520 if (wait <= 0) {
521 err = -ETIME;
522 goto out_unlock;
523 }
⋯4 lines
732:8… s:
733 list_for_each_entry_safe(op, next_op, &vops.list, link) {
734 list_del(&op->link);
735 kfree(op);
736 }
⋯6 lines
4282:35… n; j += sizeof(u32)) {
4283 u32 *val = snap->snap[i].data + j;
4284 char dumped[ASCII85_BUFSZ];
4285
4286 drm_puts(p, ascii85_encode(*val, dumped));
⋯5 lines