summaryrefslogtreecommitdiffstats
path: root/scripts/unload_vgpu_stack.sh
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-23 14:03:27 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-23 14:03:27 -0400
commit2a59dcb768541b759ada9cd6f24986e2c234bd37 (patch)
tree862bedd8078b64871e34ece655d627dc7ba3dccd /scripts/unload_vgpu_stack.sh
parentfade84f8b5b781d29daad40699d07928dedea550 (diff)
downloadopen-iov-2a59dcb768541b759ada9cd6f24986e2c234bd37.tar.gz
open-iov-2a59dcb768541b759ada9cd6f24986e2c234bd37.zip
kernel: track channels and execute host-class pushed work
The guest's CUDA stack was stuck inside context creation because the work it submits is never executed by the emulated GPU. Two forms of pushed work were missing, and the completion path had grown far too slow to be useful: - Channel tracking: on a channel allocation parse the GPFIFO GPU VA and entry count, the USERD address/aperture and the instance block, hand them to the progress service and drop them again when the channel is freed. - Host-class (C46F) semaphore releases: pushes on a compute channel signal progress with a five-dword method run (SEM_ADDR_LO/HI, PAYLOAD_LO/HI, EXECUTE) rather than the copy-engine group the service already understood, so those releases were never applied. Decode both forms. - Emulated vidmem: channel blocks (USERD/instance) and some client semaphores live in the emulated frame buffer, whose VAs are a window over the BAR1 backing rather than guest RAM; access them through the right aperture. - Latency: the service's full-RAM sweep took seconds per pass, so guests' progress waits took whole seconds and the driver tore its own setup back down in the meantime. Sweep guest RAM in bounded, chunked windows on every pass, remember the pages pushes are actually found in and revisit those first, and keep the VA->PA map complete (dedup, sort, binary search) so semaphores resolve reliably. Also add a vidmem poke parameter for bringing up and debugging emulated frame-buffer state.
Diffstat (limited to 'scripts/unload_vgpu_stack.sh')
0 files changed, 0 insertions, 0 deletions