#18512·tinygrad

usb_drained hangs when USB GPU loses 12V supply

Author: elkoledCreated Sep 30, 2026Updated Sep 30, 2026

Cutting the GPU 12V supply voltage while running hangs in usb_drained

The bridge stays powered over USB, so every fence read succeeds, but the fence byte never changes (stuck at 0x94 in gdb). There is no timeout, so it never returns.

DEV=USB+AMD SIZE=200000000 PYTHONUNBUFFERED=1 python test/external/external_test_usb_asm24.py TestDevCopySpeeds.testCopyCPUtoDefault

After the first copies print, disconnect the GPU 12V supply. The test never finishes. gdb on the hung thread: libusb_control_transfer (reqtype 0xc0, req 0xe4, len 1) called over and over, always ret=1