From c14df7724cecbfa9b994577fadd2c5d2ce89b4b1 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 20:13:27 -0800 Subject: [PATCH] rt README: a submission a reset cut can report completed on RADV, a known gap On a GPU fault, Metal ends the faulting command buffer with an error. On RADV (a 780M), the reset that follows signals the cut submission's progress semaphore before any call reports the loss, so a wait sees its value reached and the runtime reports those command buffers completed. The loss is reported by the next call. Vulkan tells no command buffer's fault apart, and spec 5.2.3 counts VK_ERROR_DEVICE_LOST as VK_SUCCESS for whether a command buffer is pending. The planner ruled this a known gap: a marker on every submission would be a check beside the program's work. Evidence: u3 on gem10's 780M (48704). The fault was at 16:31:01.833 and the ring reset at 16:31:03.873. Submission 33466's completion wait returned Ok after 2,052 ms. Submission 33467 met VK_ERROR_DEVICE_LOST 28 ms later. Docs only; the floor test reads only the README's Floor section. --- crates/metal2vulkan-rt/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 430e09bf7..47df9bc4a 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -952,10 +952,13 @@ that touch blocks first. device every frame, the hang lasts about a frame and then every guest process sees the device lost; it lasts indefinitely only when nothing else submits. RADV (a 780M and an RX 7900 XTX) signals the semaphore within about 2 s and refuses the next submission; Intel's Windows driver (a - UHD 630) does so at once; ANV (an Iris Xe) takes the store with no fault. The old runtime took a - store through a pointer to an address nothing maps, and one 64 TiB past a buffer, without a fault - on all six GPUs, since it does not hand kernels raw addresses; the new runtime refuses the first - kernel and took the second without a fault. A bad address that the old runtime survived ends the + UHD 630) does so at once; ANV (an Iris Xe) takes the store with no fault. On RADV (a 780M), the + command buffers of the submission a reset cut can report completed, since the reset signals its + semaphore before any call reports the loss: the loss is reported by the next call, where Metal + ends the faulting command buffer with an error. The old runtime took a store through a pointer to + an address nothing maps, and one 64 TiB past a buffer, without a fault on all six GPUs, since it + does not hand kernels raw addresses; the new runtime refuses the first kernel and took the second + without a fault. A bad address that the old runtime survived ends the GPU's work for every guest process under the new runtime on NVIDIA and RADV: the consequence of one device and direct addresses, which the owner accepted. - An index past a set 1 array's length is a fault of the same kind. A kernel indexes the arrays