Files
reims-vgpu/docs
Anees Iqbal 0cc3c2c4a7 🐛 Leave the device untouched when the kext refuses to start
The framebuffer's teardown wrote STATUS 0 (the device's reset) whenever BAR0
was mapped, so every refusal of its start reset the device too: a wrong MAGIC,
another wire VERSION, no BAR2, a region too small, no mapping, no MSI-X, no
work loop. The host's reset ends the scanout the option ROM set up. With the
kext refused, the OS drives the display through the firmware's framebuffer and
WindowServer composites into it in software, but the host no longer scans it
out: on msi, a VERSION 1 kext against a version 2 host left the host's screen
on the boot logo with its progress bar a tenth full, while WindowServer ran.
Without our kext at all the same boot shows the desktop.

Start now resets the device only once every check that needs no command has
passed, and teardown resets only a device start took. A refused kext writes
nothing to the registers or the region, which is what design.md's "leave the
device" asks, so the firmware's scanout stays and the desktop the OS draws
reaches the host. A failure after the take (no usable display, IOFramebuffer's
start) still resets the device, as before. The accelerator's start writes
nothing to the device on any of its refusals.
2026-11-05 21:59:20 -08:00
..