Files
reims-vgpu/docs
Anees Iqbal 0ac7209ebd 🐛 Set a timeline on the CPU only after its queue's earlier signals
Where a queue's buffer is not carried out and its queue makes no command
buffer for its stand-in, nor for a signal of its own (the platform out of
memory), the host set the queue's surface timeline to the buffer's seqno on
the CPU at once. A buffer of another queue that waited on the GPU for that
seqno then went on while the queue's earlier buffers, which named the same
surfaces, could still be running.

The host now notes, per queue, the highest seqno a committed command buffer
signals (a buffer whose walk faulted after its signal was encoded leaves it
as it was), and the CPU set waits first, with no lock held, for the timeline
to reach it, as a command buffer's signal would come after them. A reset of
the device ends the wait, as it ends the host's other waits for another
queue's buffers. A queue's destroy or close that has to set on the CPU waits
the same way.

What the guest observes, only where the platform makes no command buffer: a
buffer of another queue that runs after such a buffer now runs after the
queue's earlier work on the surfaces they share, not alongside it.

Test: a_cpu_set_for_a_buffer_not_carried_out_waits_for_its_queue_s_earlier_work
fails before. a_buffer_not_carried_out_still_signals finishes the queue's
earlier signals before its CPU set, which now waits for them.

Car 13's stack: resolved surface_order.rs's Release::signal, where
c13-decode-stalls (5e922707f) raises the done mark from the completion-seen
handler: kept that handler and took this commit's Arc clone of the marks for
it, and its committed mark after the commit. The CPU set's wait also ends on
the event's GPU-set value, so it still comes only after the queue's earlier
signals.
2026-11-05 21:59:34 -08:00
..