With the relayed loss fixed (the hang answers GpuHang), the M3 Max's lane test
a_gpu_fault_fails_its_command_buffer_and_the_queue_runs_on went on to its next claim and failed
there (m3-max-13972, m3-max-13988): under MVK_CONFIG_RESUME_LOST_DEVICE off the validation layer
reported VUID-vkQueueSubmit-fence-00064 and VUID-vkQueueSubmit-pCommandBuffers-00071, both on the
m2v-submit-check thread (a diagnostic run printed the backtraces: submit_check::measure -> tax ->
submit_one -> submit -> vkQueueSubmit). The device was lost while its submission checks ran: a
wait for the checks' fence or a submission answered the loss, the check took it as a refused call
(Unchecked, which a record keeps), and the next check submitted the same fence and command buffer
again on the lost device, which the layer reads as still pending. A record of verdicts from a lost
device would also have kept Unchecked for the driver's release, so later devices run no check.
Now a VK_ERROR_DEVICE_LOST from a submission or a wait stops the checks as the device's teardown
does (None): nothing is submitted again, the tax releases the imports it holds first, the checks'
objects go, and nothing is recorded (what had not answered reads Unchecked for the device's life).
The loader word's step is ended before the stop as before a refused call. Another refused call
or failed wait answers as before.
Test: tests::submit_check_device::a_loss_stops_the_checks_with_nothing_submitted_again_or_recorded
holds the checks at a step, injects a lost-device answer at their next fence wait
(SubmitChecks::lost_at_wait, a device-test hook), and holds them to one submission's calls from the
hold, no run to their end, no Pending verdict and no record. Fails without the fix (the checks go on
submitting). Evidence in the report to the orchestrator.
submit_check.rs is bugs-a's area; the change is the loss path of submit()/wait() and the tax's stop.