geramyloveless
457a75876b
dext: survive the GPU leaving the bus
...
Unplugging the eGPU with a session open took the whole iPad down. When
its PCI provider and clients are terminated the device is already gone,
but the close treated it as a GPU that might still run: every teardown
step waited on hardware that never answered, the session quarantined
(retaining the provider, the DMA backing and the upstream driver), and a
dext that dies while it holds the device panics the kernel in
IOPCIFamily's client crash recovery, as on the Mac.
Detect the removal when a client or the driver stops: configuration
space no longer answers (asked on the provider directly, since a fault
may have closed admission). From then on nothing touches the device:
admission closes for good, nothing resets or isolates it, BAR0 CPU
accesses through the io accessors read ~0 and drop writes, and the
runtime's removal begins (GPU work completes with -ECANCELED). A device
off the bus can reach no memory, so DMA safety holds: the DMA seam lifts
a quarantine and its holds and completes retired descriptors at once,
compute stop and client release stop refusing on account of uncertain
GPU work, and no step quarantines. The close runs to the end, removes
the upstream driver after the removal thread stops, releases the BAR0
aperture and closes the provider once nothing is admitted and no
interrupt source is left, then reopens admission so the replugged GPU
probes afresh. A session already quarantined when the removal is seen is
released the same way. New session opens fail with kIOReturnNotAttached
meanwhile.
The power state goes to lost with the new cause "device removed" and
the link-down flag, so clients learn what happened; the session state
has a device-removed flag and read-driver-log.py names both.
Tests: the session shutdown fixture removes the device under a client's
open session whose compute stop fails, and under a session already
quarantined; neither resets, isolates or quarantines, every Stop
finishes, and a new client opens a new session. The production backend
stops a device whose legacy queue could not be removed once it is
removed.
2026-10-03 15:44:38 -07:00
..
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:41:36 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 15:44:38 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 20:41:36 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 15:44:38 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 21:22:41 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00