interplane.Get Omega
Read in your language

omega-gpu-driver

aien-dev/omega-gpu-driver

Brought by drakestapleton

Unfinished: not checked yet

There is no published receipt of a rebuild from its source yet. What a receipt is

Get this repository
Git over HTTPS
git clone --no-checkout https://interplane.io/projects/omega-gpu-driver/repo.git omega-gpu-driver && git -C omega-gpu-driver checkout --detach 81b579e4c371cc6e5c1eba3c57bc93ef20040800
Source archive of 81b579e4c371cc6e5c1eba3c57bc93ef20040800
Download ZIP · tar.gz

README.md

omega-gpu-driver

The GB10 GPU driver written in seeded Omega. Status: **W0 IMPLEMENTED and EXERCISED in QEMU. Existing driver units are host-exercised against C referees and simulators. The new bounded boot image and RPC replay units below are IMPLEMENTED and HOST_EXERCISED with exact binary parity and behavior mutants. Nothing has run on GB10 hardware; nothing here is QUALIFIED. No NVIDIA kernel driver replacement is deployed.**

Parent: aien-dev/omega-mv, the seeded Omega compiler. This repo keeps two explicit compiler pins. Historical gates and W0 stay on tools/omc.pin: 397e67040fb74853c6814097fe02ae4e1ebd6f66, SHA-256 bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6 (pending omega-mv#878/#890). New provider/model gates and build/ogd use tools/irq-omc.pin: 78122a72a7bb7129271088b30093e8b3b9b52f8d, SHA-256 734bf4f3f858d56288902700cf581cdbaa4a24d1b3254a2beea014aaccf0fa38 (draft omega-mv#1045). That extension adds typed eventfd/vfioirq effects; its trust change still requires review. Neither compiler dependency is silently treated as merged.

DESIGN.md records the proposed isolation/submit/cache model and the implemented, host-exercised owned DMA-window lifecycle. Hardware execution and the Linux-kernel replacement remain NOT_RUN.

The 2026-10-28 candidate corrects the common-mode GB10B MCTP-header oracle defect and adds a separate source-selected GB20B COTv2 arena and SEC2 response path. See GB20B.md for exact vendor/reference pins, mismatch refusals, host-only scope, composed-launcher/native-effect gaps and the unexecuted minimal W0 authorization procedure. fwprep accepts an explicit gb20b profile for offline firmware preparation. gpchip does not admit GB20B to the existing GB10B transport. No physical boot/RPC/compute ran.

W0: bind, read identity, release

w0 BDF GROUP [HEXOFF] opens one PCI function that the operator has already bound to vfio-pci, reads its identity and releases it. It never writes to the device and never calls DEVICE_RESET.

  1. Refuses unless /sys/bus/pci/devices/BDF/iommu_group is GROUP (exit 3), the driver link is vfio-pci (exit 4) and /sys/kernel/iommu_groups/GROUP/devices lists exactly BDF (exit 5).
  2. Container /dev/vfio/vfio: API version 0 and the TYPE1v2 extension (exit 6). Group: viable (exit 7), attached, TYPE1v2 set (exit 8). Device fd by name (exit 9).
  3. DEVICE_GET_INFO (must be PCI with at least 8 regions), region info for BAR0 (index 0) and CONFIG (index 7) (exit 10).
  4. Config identity through pread of the CONFIG region: vendor/device 0x00, revision/class 0x08, subsystem 0x2C.
  5. PMC_BOOT_0 (0x000), PMC_BOOT_1 (0x004) and PMC_BOOT_42 (0xA00) through pread of BAR0, then through a read-only vfiomap of BAR0 (mapget, one DSB-bracketed 32-bit load each). Optional HEXOFF reads one more aligned word through the map; an offset outside BAR0 or misaligned traps (exit 103).
  6. Unmaps and closes device, group and container. Exit 11 if BOOT_0 reads 0xffffffff, 13 if the map and pread values differ, 12 if the map fails.

w0 does not avoid a reset. It never asks for one, but Linux vfio-pci (v7.0) resets the device itself: opening the device fd FLRs the function when a reset method is enabled, and closing it sets needs_reset and calls pci_reset_bus, a Secondary Bus Reset of the parent bridge. Writing '' to reset_method disables only the function-level paths; pci_reset_bus ignores reset_method and checks only PCI_DEV_FLAGS_NO_BUS_RESET. On the Spark the GPU 000f:01:00.0 sits behind root port 10de:22d1, which the running kernel does not quirk NO_BUS_RESET (only 22ce and 22d0 are), so the release would assert SBR on that port. EXERCISED in QEMU with the host kernel and a kprobe trace: qemu/sbr/sbr-on-release.log (CASE B: pci_reset_bus then pci_bridge_secondary_bus_reset on release with reset_method empty; CASE C: refused w0, zero reset calls). Not run on hardware.

Register offsets (NVIDIA open-gpu-kernel-modules 580.173.02, src/common/inc/swref/published/nv_ref.h): NV_PMC_BOOT_0 0x0 at :108, NV_PMC_BOOT_1 0x4 at :138, NV_PMC_BOOT_42 0xA00 at :149; NV_CONFIG_PCI_NV_0 at :52, NV_CONFIG_PCI_NV_2 at :66, NV_CONFIG_PCI_NV_11 at :81. VFIO ABI: Linux include/uapi/linux/vfio.h.

The compiler enforces the device boundary: vfioctl accepts only literal allowlisted VFIO requests at their exact sizes, and vfiomap only maps a region read-only, so a write through the BAR0 handle traps. See omega-mv seed/host/MAPPING.md.

Build and test

sh build.sh          # births the pinned omc from seed-0, checks its sha256, writes build/w0, build/fwprep
OGKM=<open-gpu-kernel-modules 580.173.02 checkout> sh build.sh
                     # also runs build/fwprep on the installed gsp_ga10x.bin into build/fw (fw.manifest)
KERNEL=img/boot/vmlinuz-7.0.0-1019-nvidia sh qemu/test.sh
                     # QEMU virt + SMMUv3, edu device on vfio-pci, 9 commands, all results checked
KERNEL=... DEVICES='-device pcie-root-port,id=rp1,chassis=1,slot=1 -device edu,bus=rp1' \
  sh qemu/bench/run.sh build/w0 qemu/sbr/sbr.cmds qemu/sbr/sbr-on-release.log
                     # kprobe trace of the resets vfio-pci performs around w0 (see above)

The QEMU bench (qemu/bench/) boots the host's Ubuntu 7.0.0-1019-nvidia kernel with busybox and the host's own iommufd, vfio, vfio-pci-core and vfio-pci modules. qemu/w0-edu.log is the committed transcript: edu reads 0x010000ed at BAR0 0x0 through both the map and pread; wrong group, an unbound edu, a virtio device, an access at the BAR0 size and a misaligned access are all refused. qemu/mutant-*.log show two compiler mutants (MAP_PRIVATE, wrong device-fd request) failing there.

Every QEMU boot and test command runs under nice -n 19 taskset -c "${AIEN_TEST_CPUS:-0-9,15-19}". AIEN_TEST_CPUS is the one CPU list the scripts pin to. The default 0-9,15-19 keeps them off cores 10-14, which the shared Spark reserves for its live service; set it to use other cores, e.g. AIEN_TEST_CPUS=0-3 KERNEL=... sh qemu/test.sh.

Complete host suite

The suite entrypoint runs every tests/*.sh gate except itself, fails closed on the first failure, and retains each gate's output and return code in build/host-tests/. It never opens a GPU device. Set all oracle paths explicitly:

Every host/sim/differential/mutant invocation, including older recipes below, must run inside a device-free namespace: bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 <command>. It supplies a minimal /dev, hiding host NVIDIA, VFIO and CUSE nodes. Do not rerun a failing sim outside it; a sim that requires a physical node is defective. This wrapper does not authorize hardware or replace the separate window gate.

# tools/getomc.sh also accepts AIEN_OMC=<matching prebuilt compiler>.
sh tools/getomc.sh
# tests/run.sh separately acquires/verifies tools/irq-omc.pin; AIEN_IRQ_OMC
# may name the matching prebuilt compiler. It never replaces build/omc.
AIENUX=<aienux-at-a108b1144a064aa7b824374a622d627c6ba91fd1> \
OGKM=<open-gpu-kernel-modules-at-20e4e6e19cc26ba47b5cbe23130a396be100c427> \
FW=/lib/firmware/nvidia/580.173.02/gsp_ga10x.bin \
AIEN_TEST_CPUS=10-14 bwrap --dev-bind / / --dev /dev --proc /proc -- \
  taskset -c 10-14 nice -n 10 sh tests/run.sh

The explicit CPU override above is for the CUDA-stack host-only assignment; choose the currently authorized CPU list elsewhere. The historical gate compiler remains omega-mv@397e67040fb74853c6814097fe02ae4e1ebd6f66, SHA-256 bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6. The corrected aienux oracle is the existing arena/RPC gate pin, not its older c5bb3a4b predecessor. These checkouts and installed firmware are verification oracles only: nothing from them is linked into the Omega driver. The suite needs Linux/AArch64, shell, Python 3, C compiler, binutils, coreutils, git, qemu-aarch64, bwrap (acceptance used bubblewrap0.9.0), and permission to ptrace a child process. Ptrace is used only by the independent memfd/UAPI verifier; it neither opens a GPU nor attaches to an unrelated process. There is no custom GitHub Actions host workflow in this revision; the observed CodeQL run was successful. Local host results do not claim CI execution.

GSP interrupt service model

gsp/irq.om implements the next host-only interrupt milestone with an independent in-image peer in gsp/irqsim.om. Pending sources are the intersection of status, interrupt mask and host destination. SWGEN0 is acknowledged before draining the event queue, never after: a new edge during the drain or at the final status read remains pending. A bounded caller budget, inactive runtime PM, stale generation, peer failure and unsupported sources fail closed. HALT and other sources are retained and quarantined, not falsely claimed as CrashCat/ECC handling. A lockdown notification ends the drain without any further register access or masking. Initialization is one-shot: no reset/rearm/reclaim or global idle authority is introduced.

The source contract is NVIDIA open-gpu-kernel-modules 580.173.02 at 20e4e6e19cc26ba47b5cbe23130a396be100c427: kernel_gsp_tu102.c:1188-1203, kernel_falcon_ga102.c:318-320, and dev_falcon_v4.h:26-35. Bit constants were checked with WolframLanguageEvaluator: {2^6,2^4,BitOr[2^6,2^4]} -> {64,16,80}. The independent C referee is test-only, not a runtime implementation. The model injects finite queues, one concurrent edge, peer errors and lockdown; it is not GSP firmware emulation. This isolated historical gate retains its own explicit seam.

Run bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 sh tests/irq_host.sh. It checks exact output against that referee, explicit boundary expectations, every byte-sized raw IRQ status against routing-mask combinations, and compiling behavior mutants. This historical fixture rejects physical mode before seam access. Its immutable receipt is tests/irq-host-receipt.txt. The composed successor and narrower physical-provider fixture evidence are described below, not retroactively added to that receipt.

IRQ hardware runbook / blocked gate

build/ogd now exists, but advertises only model and model-trace. Its default and every physical command refuse with status 95. It has no physical ident, boot, hello or exec admission. D3 preflight and the post-reboot runner require a successful mode query containing exactly exec, before VFIO binding. A model-only executable, suffix match or failed query is refused. D2's optional driver steps remain NOT_RUN. These predicates do not grant a hardware window.

The typed IRQ lease and provider below are implemented and host-exercised. Physical device-stop attestation, coherent mapped RPC, actual firmware/engine execution and safe physical DMA reclamation are not supplied. In particular, the physical provider returns -95 for device stop, quarantines and retains its mapping/registration; IRQ disable, cancellation, eventfd readiness or semaphore progress never substitutes for a device-specific idle proof.

  1. Before a chip attempt, implement and qualify the missing device-stop, coherency/cache, firmware/engine execution and physical composition boundaries. Preserve acknowledgement-before-drain, ordered immutable consumption, lockdown's no-register-access rule and retained published backing. Rehearse positives and negative controls against an independent modeled/QEMU device.
  2. Freeze that composed candidate, its compiler and firmware hashes. Obtain Drake's fresh exclusive-window approval explicitly covering service stop/restore, VFIO binding, firmware execution, FLR/SBR and reboot. The historical W0 identity permission is not this approval.
  3. Follow window/README.md rather than issuing ad hoc bind/module commands. Its D2 entry command is sh window/d2-pre.sh --go D2 and has real reboot, reset and service effects. Do not run it for this model-only candidate. Today W4/W5 still report NOT_RUN because this launcher has no physical modes.
  4. In an authorized future candidate, record delivered/routed IRQ sources, ack-before-drain ordering, a preserved concurrent edge, bounded overflow quarantine, lockdown cessation and fault/teardown behavior. Restore through the window's existing R path. Only a dated chip receipt can qualify those effects; this change leaves that tier NOT_RUN and does not promote any ROADMAP nvidia.ko status.

Composed host model and typed IRQ provider (2026-11-05)

Build with taskset -c 10-14 nice -n 10 sh tools/buildogd.sh, or sh build.sh. tools/ogd.units is the production-only composition manifest: no test driver, C referee, Python runtime or UVM implementation is linked into build/ogd. Run bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 build/ogd model; model-trace emits the same path's binary observations under the same wrapper. The synthetic endpoint starts before INIT_DONE, using explicit synthetic arena segments; it is not signed firmware, Falcon/GSP firmware emulation or a physical fallback. tests/ogd_host.sh independently checks native and QEMU-user results and compiling behavior mutants.

Implemented boundaries:

  • gsp/transport.om splits immutable capture/validation (qtstage), semantic handling (qthandled) and exactly-once consumer publication (qtfinish). gsp/irqqueue.om drives the existing drvstep through that held capture. Its sequencer result 2 means work was dispatched, not IRQ lockdown. Lockdown is only an actual validated engaging wire event, and is not published as a successfully handled consumer. Failures quarantine; no cursor rollback, semantic retry or reclaim is inferred after an uncertain store.
  • gsp/irqtypes.om, irqlease.om and irqprovider.om bind a lease and MMIO span to one generation/backing identity. Serialized handler/waiter owners retire exactly once; stale owners, duplicate close, invalid alignment/range and post-lockdown MMIO are denied. These nominal types are not process isolation, compiler-enforced linearity or a concurrent/thread-safe implementation.
  • Revoke closes admission before disable/cancel/device-stop requests. Synchronize requires acknowledged disable/cancel and no handlers, waiters or held captures. Quiescence is a separate backend-owned attestation of the exact revoke epoch/backing, after independently modeled queued/device work ends. Only then can the interrupt span/event source close. Published DMA is retained.
  • gsp/irqvfio.om is the real Omega UAPI backend: borrowed proven device fd, checked BAR region, checked IRQ index/vector range/capabilities, owned nonblocking eventfd, bind/mask/unmask/disable and wait cancellation. Bind and mask are not atomic; pre-enable notifications are hints, not handler admission/completion. Ambiguous registration/disable/close failures retain ownership; close is never retried against a possibly reused numeric fd. The provider never opens a path, binds a PCI device, resets it or closes its borrowed device fd.
  • tests/irqvfio_ref.py is verification-only. It intercepts its own child's VFIO requests on that child's memfd, verifies real kernel ENOTTY, then supplies an independent modeled UAPI response. Actual eventfd/read/write/wait/mapping operations remain kernel operations. This exercises packed UAPI/ownership and failure order, not a physical VFIO device, GSP or QEMU-system device.
  • gsp/irqctl.om composes existing IRQ policy, ordered receive and typed owners. Lockdown is sticky before cleanup and forbids later MMIO. The composed model handles a CPU sequencer, INIT_DONE, then engaging lockdown; it revokes, synchronizes, observes premature idle refusal, waits for modeled device work, closes only interrupt storage and retains the published/quarantined DMA arena.

Focused gates (all verification-only):

GateIndependent positive/boundary casesCompiling behavior mutants
tests/irqqueue_host.sh1510
tests/irqlease_host.sh117, including 21 named boundaries12
tests/irqvfio_host.sh2110
tests/ogd_host.shnative and QEMU-user composition, 7 physical refusals each6
tests/irqcmd_host.sh125

Current receipt: tests/ogd-host-receipt.txt. Hardware tier remains NOT_RUN.

Remaining CUDA-stack driver gaps and next reachable item

Against CUDApp ROADMAP.md section 1 at 575ba1884e91abf5c62c3dbc8229975d5fa2531b, the nvidia.ko row remains BUILDING: unread physical BOOT_42 identity, no authorized chip window, physical firmware/engine boot and coherent RPC/DMA/IRQ qualification absent, and the nvrm/ client still uses NVIDIA ioctls. This model does not migrate that client or qualify either other driver track. The nvidia-uvm.ko row likewise remains BUILDING: a physical MMU/TLB/fault/replay service and its coherency/lifetime/completion evidence are still required. Signed NVIDIA GSP firmware remains an explicit outside dependency by design; display modules are outside this compute-driver slice.

The next host-reachable UVM handoff has started and is exercised: iqcommand(op,seq,va,pa,flags) admits an ordered eight-record model queue with five little-endian u64 fields (40 bytes). Local op 1 is replay and op 2 invalidate; these are not GSP RPC identifiers. gsp/irqcmd.om captures an immutable record, requires its exact sequence to acknowledge once, handles wrap/full/duplicate controls, and revokes without publishing an unacknowledged consumer. Queue acceptance and consumer acknowledgement are not MMU/TLB completion. UVM page-table/service implementation stays with the UvmOmega/UvmService lanes; no UVM ownership or hardware qualification is claimed here.

Driver units (host-exercised)

Existing units port aienux PR #441 C or pinned vendor contracts. Each gate compares Omega output with an independent test-only reference; mutants require observable behavioral disagreement, not a compiler or setup failure.

UnitPorted fromGateMutants
gsp/mmio.om, gsp/sim.om (register-level GSP start-up via SEC2, runtime-PM gate, SEC2+GSP falcon simulator)gpu/gsp_mmio.c, gpu/gsp_sim.ctests/mmio_diff.sh, tests/pm_gate.shtests/mutants-mmio.sh
gsp/sysinfo.om (GSP_SET_SYSTEM_INFO payload)tools/ck_gsp_sysinfo_encode.ctests/sysinfo_diff.shtests/mutants-sysinfo.sh
gsp/seq.om (GSP_RUN_CPU_SEQUENCER, CPU side)gpu/gsp_seq.ctests/seq_diff.shtests/mutants-seq.sh
gsp/sha2.om, gsp/inflate.om, gsp/fw.om, gsp/bindata.om, fwprep.om (firmware inputs)ck_gsp_fw_inspect.c, ck_gsp_bindata_extract.c, argus/sha256.ctests/fw_diff.shtests/mutants-fw.sh
chan/gmmu.om, chan/mem.om, chan/chan.om, chan/sim.om (page tables, buffers, channels; simulator mode only)gpu/gmmu.c, gpu_mem.c, gpu_chan.c, gpu_sim.ctests/chan_diff.shtests/mutants-chan.sh
chan/dma.om, owned backend of chan/gmmu.om (Linux userspace VFIO; not a kernel module)Linux VFIO ABI and pinned Omega handle contracttests/dma_host.sh11 compiling ownership/order/range/error mutants in the same gate
chan/params.om (RM alloc/control records for GSP-RM, NVIDIA 580.173.02 layouts)NVIDIA headerstests/params_diff.shtests/mutants-chan.sh
gsp/rpc.om, gsp/boot.om (SWAP_RX transport frames, boot handshake, correlated RM transactions and quarantine; replay only)dev/gb10_gsp_boot.c and pinned vendor protocoltests/rpc_diff.shtests/mutants-rpc.sh
gsp/arena.om, gsp/connect.om (bounded WPR/libos/log/radix/FMC/COT composition and preboot queue attachment)dev/gb10_gsp_boot.ctests/arena_diff.shtests/mutants-arena.sh
gsp/sec2.om, gsp/sec2sim.om, profile-2 gsp/arena.om (GB20B secure-boot/COTv2/MSGQ cold-production candidate)NVIDIA 580.173.02 SEC2 GB20B HALtests/sec2_host.shtests/mutants-sec2.sh
gsp/profile.om, gsp/transport.om, gsp/notify.om, gsp/service.om (checked mapped queue mechanism and caller pump; not production admission)pinned vendor SWAP_RX/notification plus explicit host peertests/transport_host.shcompiling transport/notification/service mutants plus generated-fence checker negative control
gsp/dispatch.om (whole-stream prevalidation and explicit host sequencer execution; hardware refusal)pinned vendor sequencer plus aienux sequencertests/dispatch_diff.shtests/dispatch_mutants.sh
chan/complete.om, chan/rmchan.om (semaphore progress and async RM lifecycle; no global idle proof)pinned NVIDIA headers and independent C refereetests/complete_diff.sh, tests/rmchan_diff.shtests/mutants-complete.sh, tests/mutants-rmchan.sh
gsp/irq.om, gsp/irqsim.om (bounded GSP IRQ drain policy and explicit model; no physical IRQ provider)pinned vendor pending/ack/lockdown contract and independent C refereetests/irq_host.sh14 compiling behavior mutants in the same gate
uvm/fmt.om, uvm/pt.om, uvm/fault.om (Blackwell VER3 page tables, 32-slot VA allocator, map/unmap, NVC369 fault replay; host only, no device words)open-gpu-kernel-modules 580.173.02 VER3 field positions, read only; not a port of chan/gmmu.omtests/uvm_diff.shtests/mutants-uvm.sh
uvm/range.om, uvm/ring.om, uvm/resident.om, uvm/service.om, uvm/ioctl.om (bounded UVM service, no device words)first-party interval/residency policy, open-header field positions and host-cc measured ioctl ABI; Python is an independent test oracle onlytaskset -c 10-14 nice -n 10 python3 tests/uvms_check.py --mutantstwo compiling, terminating, byte-difference mutants per new unit
uvm/endpoint.om, uvm/notify.om (per-open CUSE worker transport and nominal model-fault eventfd binding)first-party Omega, Linux FUSE/CUSE ABI measured by host cc; Python fake kernel and C consumer are test-onlytaskset -c 10-14 nice -n 10 python3 -u tests/uvme_check.py --mutantsexact-size, cross-client routing, stale handle, inherited fd, dead-worker SIGPIPE, notification count and closed-token mutants
rm/{ioctl,handles,memory,model,uvmclient,import,dispatch,endpoint}.om (RM escape serving and token-imported per-open CUSE namespaces; explicit HOST_MODEL only)NVIDIA 580.173.02 ABI/routes and labeled fixture, existing chan/params.om/gsp/rpc.om; independent Python model and unmodified CUDApp clienttests/rme_check.py --mutants and tests/rms_check.py --mutants --client /tmp/ogd-cudapp-client under the device-hiding command belowten structural and ten serving compiling mutants, independent-model red controls and fixture rejection

The service is stacked on draft #10, feat/uvm-page-tables at 4917e4e218e392526351e05b9169bd00679ac724. It composes the model-only command queue from draft #11 (itself on #9), pinned at b06b3f9a3dd1e74a3099350760cb3d26a3f33577. UVM_QUEUE_ROOT locates a checkout containing that commit; the gate reads its committed queue units, not mutable working files. UVM_OMC must match #10's omc SHA 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. OGKM locates the read-only 580.173.02 header checkout at 20e4e6e19cc26ba47b5cbe23130a396be100c427 for the cc offsetof oracle. Defaults match the lane checkouts; no driver binary or NVIDIA implementation is linked. See DESIGN section 6 for capacities, entry points, wire formats, refusals and the NOT_RUN chip runbook. The command queue accepts local replay/invalidate records, not physical GSP RPCs. An accepted or consumed record is not proof of a completed replay, TLB invalidate, coherence operation or safe physical memory reclamation. The ioctl dispatcher is a server-side model, not a Linux /dev/nvidia-uvm endpoint.

The endpoint follow-on is feat/uvm-endpoint, stacked on draft #12 at e7aa07f34f5156b0ae129378f4aa46df6be11375. uvm/endpoint.om carries the eight ioctls through sidispatch in isolated, forked workers, one namespace per open file description. Duplicated/inherited fds deliberately share their namespace; independent opens do not. The production transport is entirely .om, not a C or Python fallback. Its additional compiler dependency is draft omega-mv#1045, source 78122a72a7bb7129271088b30093e8b3b9b52f8d, omc SHA256 734bf4f3f858d56288902700cf581cdbaa4a24d1b3254a2beea014aaccf0fa38, for host eventfd. The older service/page-table compiler pins remain unchanged.

The endpoint gate exercises real Omega processes, sockets and eventfd against an independent fake-kernel byte oracle and two concurrent client processes. It never opens a device. --emit-dir /tmp/omega-uvm-endpoint retains passed binaries for the separately authorized CUSE runbook in DESIGN section 7. The real CUSE ioctl hop is NOT_RUN (/dev/cuse is absent); trusted RM backing resolution, physical IRQ/ TLB effects, hardware-safe teardown and chip qualification are NOT_RUN. --cuse never invents a backing PA, so MAP refuses without trusted RM ownership. Nothing installs /dev/nvidia-uvm, replaces a module, or closes the ROADMAP row.

fwprep FWFILE OGKMSRC OUTDIR reads the signed gsp_ga10x.bin (unchanged) and the NVIDIA open-source bindata tables, and writes fmc.img, fmc.hash, fmc.pubkey, fmc.sig, bl.img and, last, fw.manifest. Add gb20b as the fourth argument to prepare the pinned GB20B production inputs in a fresh directory. Its commit marker is fw.gb20b.manifest. sh tests/fw_diff.sh compares both profiles against the independent extractors. Channel ops other than the simulator (mode 0) trap; on the GB10 they go through GSP RPC.

The hardware backing assumption is now explicit: mmwinit keeps the simulator array; mmwalloc owns shared anonymous mapnew memory and CPU accesses use the live handle plus offset. The IOVA, CPU base and GPU VA are distinct. mmwdmap maps before mmwpublish; a DMA-mapped, never-published window unmaps its whole recorded extent before dropping backing. Never-mapped backing drops directly. Epoch checks refuse stale users. Publication is sticky: timeouts, uncertain mapping/completion and partial/unexpected unmap results quarantine backing. No documented idle-proof API exists, so published/quarantined backing cannot be reclaimed or reset. The caller exclusively owns container/process lifetime; this is not crash-safe containment. See DESIGN.md section 4 for the exact state contract and required future GSP publication callsites.

OMC=/path/to/pinned/omc sh tests/dma_host.sh passes 23 host replay/boundary cases, real invalid-fd MAP_DMA retry/drop refusal, and 11 compiling negative-control mutants. Only anonymous host memory and invalid fd -1 are exercised by the real backend; the DMA success/error transport is explicit test-only link-time replay. No device open/release, DMA, hardware MMIO or reset is performed. The separate simulator diff remains byte-identical across 391 lines. Hardware: NOT_RUN.

Test-only referees and harnesses (disclosed; never linked into the driver): tests/seq_ref.c and tests/params_ref.c (C), the aienux C tools built fresh by the diff scripts, and the shell scripts in tests/. Host tools in the build and test path: sh, git, sha256sum, cc, QEMU 8.2.2, busybox, zstd, cpio, gzip.

RM endpoint: IMPLEMENTED / HOST_EXERCISED, not a deployed nvidia.ko replacement

The serving follow-on is stacked on draft #14 at 742afd90. rm/omc.pin retains the seeded service compiler SHA 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. The executable requires explicit --fake --host-model rm/host-model.fixture. The fixture is synthetic and labeled HOST_MODEL, not a capture or device truth. Its GR static response uses the real GSP_RM_CONTROL RPC (76); local vendor inventory/cache calls are served locally, not assigned fictional RPC IDs. DESIGN section 8 cites the exact OGKM 580.173.02 routes and limits.

Prepare the unmodified, read-only consumer checkout outside this repository:

git -C /path/to/CUDApp worktree add --detach /tmp/ogd-cudapp-client origin/feat/c4-streams-submit
# Acceptance source pin: 16f11c47fa9587349b607d5ed174113b6fc9b504

All tests, mutants, diffs and compiled consumers run with device nodes hidden:

AIEN_TEST_CPUS=10-14 RM_OMC=/path/to/the/pinned/service/omc \
OGKM=/path/to/open-gpu-kernel-modules-580.173.02 \
bwrap --dev-bind / / --dev /dev --proc /proc -- \
  taskset -c 10-14 nice -n 10 python3 -u tests/rme_check.py --mutants

AIEN_TEST_CPUS=10-14 RM_OMC=/path/to/the/pinned/service/omc \
OGKM=/path/to/open-gpu-kernel-modules-580.173.02 \
bwrap --dev-bind / / --dev /dev --proc /proc -- \
  taskset -c 10-14 nice -n 10 python3 -u tests/rms_check.py \
    --mutants --client /tmp/ogd-cudapp-client

The first gate measures vendor layouts, compares handle behavior and executes the structural C consumer. The second compares page/mapping policy against a Python reference, kills ten compiling serving mutants, rejects a deliberately wrong oracle and corrupt/unlabeled fixtures, and builds/runs the pinned unmodified nvrm.c with checked Omega client policy. Only its OS transport is interposed by the C fake kernel (CUDAPP_NVRM_TEST_TRANSPORT=1). It completes open, allocation, control, CPU/DMA/UVM mapping, a CPU byte roundtrip, free and close. Anonymous CPU backing exists only in this test kernel; it is not real device backing.

CallStatus
CARD_INFO; GET_ID_INFO_V2; GR_GET_INFO; GET_CLASSLIST; GET_GID_INFOSERVED_HOST_MODEL
MEMORY_SYSTEM / VIRTUAL / LOCAL_USER; USERMODE_A/B allocationsSERVED_HOST_MODEL
CPU MAP / UNMAP; DMA MAP / UNMAP; VID_HEAP_CONTROL INFOSERVED_HOST_MODEL
REGISTER_FD (live endpoint-issued token only)SERVED_HOST_MODEL
CHECK_VERSION_STR (ogd HOST_MODEL/1, not NVIDIA identity)SERVED_HOST_MODEL
OS-event alloc/free; unknown classes/controls; unsupported heap functionsREFUSED
Physical backing, pinning, real doorbells, kernel CUSE hop, live GSP/RM, VFIO, chip qualificationNOT_RUN

The allocator owns 1024 pages, tracks handle/map refcounts, rejects overlap and ownership violations, and reclaims RM/UVM maps and pages on cascading free. Imports alias one namespace without destroying it when the source description closes. Python/C are test oracles only; endpoint policy and workers are seeded Omega. New receipt: tests/rms-host-receipt.txt. Historical receipts tests/rme-host-receipt.txt and tests/rme-shared-receipt.txt are unchanged.

Boot image and RPC replay boundary

The new implementation is seeded .om, not a C driver hidden behind a wrapper. It reuses the existing siout system-info encoder and pabuf/palen allocation/channel codecs. brmalloc, brmctrl and brmfree freeze one pending request and feed those bytes into the queue codec; accepted successful replies populate pareply. Header success and the RM body status are separate checks. Failed replies leave the consumer reply buffer unchanged. Hardware chan/chan.om bind/disable/idle still trap.

arbuild composes the full WPR/libos/log page tables/cached args/shared queue/radix3/bootloader/ signature/FMC/FMC-args/COT image up to arcap <= 83886080 bytes. Use arinput and aroutput for offsets in this range. The first 16 MiB retains the existing arin and arbuf byte spans. The upper 64 MiB uses little-endian words. The physical provider has its own admission limits. arsrc/arslen[0..7) select ELF, RM signature, bootloader, FMC, FMC hash, FMC key and FMC signature. arcfg[0..10) carries explicit profile, DMA width, heap IOVA/size, GPU instance, regkeys, bootloader code/data/manifest offsets and serialized registry length. aroff/arsize describe all regions; arcmd/arstat are queue offsets, araddr 15 the FMC-args IOVA, arcot/arclen the COT packet and artail its EMEM tail. Outputs are invalid after any nonzero status. The registry input is canonical bounded PACKED_REGISTRY_TABLE bytes, not a foreign runtime. arboot connects this image's preboot queue counters directly to the boot handshake without reconstructing the queue.

gsp/owned.om connects construction to the owned backing: arstage(epoch) copies exact arena bytes through the checked map handle only for the matching IOVA window, boot generation and unpublished OWN/DMA lifecycle. It never publishes or notifies hardware. arlose(epoch) connects a quarantined boot replay to retention of the matching already-published backing; it cannot unmap or reclaim it. The final composed host gate sh tests/boot_dma.sh uses an explicit link-time DMA oracle, real anonymous mappings and exact whole-arena comparison. Staging and quarantine mutants are both detected. Its receipt is tests/boot-dma-host-receipt.txt; this is not a device endpoint or fence.

The host receipt is tests/gsp-host-receipt.txt: exact sender frames and boot state/refusal controls; five complete arena fixtures (including multi-level radix and DWORD/binary/string registry); 31 invalid arena fixtures; 19 RPC and 12 arena mutants. Build/setup failures and unexpected runtime traps do not count as detected mutants. These tests use synthetic signed-byte inputs, not valid firmware authentication or firmware execution.

The queue layout is the non-confidential-computing NVIDIA 580.173.02 protocol: SWAP_RX, separate element and RPC sequences, actual aligned-padding checksum validation, bounded wrapped slots, and full-slot capture. RM_ALLOC deliberately excludes appended params from its logical length and checksum, as rpc.c:11194-11228 does. Those tail bytes are not authenticated or checksummed. The supported alloc params bound is 3984 bytes; oversized/continuation requests refuse, not truncate. This is not a cryptographic trust boundary.

Boot replay requires preboot system info and optional nonempty registry, explicit peer queue creation, INIT_DONE, SET_GUEST_SYSTEM_INFO version handshake, then STATIC_INFO of the supplied expected size. Private handshake result is an NV_STATUS: zero succeeds (rpc.c:8764); it is not a version value. Version renegotiation refuses instead of guessing. CPU_SEQUENCER suspends the exact received event until a matching generation/event token is dispatched through gsp/dispatch.om. The complete stream is prevalidated before execution; completion is not fabricated and no acknowledgement RPC is invented.

REPLAY_READY is host state only, never a production resolver capability. Wait budgets count caller polls, not elapsed time; unrelated events do not replenish them. Publication timeout or corrupt/ uncorrelated replies quarantine the replay with pending identity retained. Late replies cannot turn that into success. breset only disposes replay images and refuses while a mapped transport is bound; it cannot reset hardware, prove idle, unmap DMA, or authorize reclaim. Unpublished queue-full refusal does not consume a sequence number.

The arena's GB10B/SEC2 profile remains unverified for the Spark target. gsp/profile.om classifies the published BOOT_42 architecture/implementation fields, not a measured device: vendor nv_ref.h:149-182 and nv_arch.h:51,111 identify GB1XX/GB10B; generated FSP/SEC2 HAL selection chooses SEC2/FMC COTv1, and nv-firmware-chip-family-select.h:58-62 selects gb10y. No device is opened to select a profile.

Run the host-only commands with the exact C reference checkout and pinned compiler:

AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/rpc_diff.sh
AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/mutants-rpc.sh
AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/arena_diff.sh
AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/mutants-arena.sh

Reference pins: aienux c5bb3a4b9898257658aba0b7178a3c73a0371c27; NVIDIA 20e4e6e19cc26ba47b5cbe23130a396be100c427 (tag 580.173.02); compiler 397e67040fb74853c6814097fe02ae4e1ebd6f66, sha256 in tools/omc.pin. Compiler PRs #878 and #890 are pending dependencies, not merged compiler capabilities. The new independent C referee is test-only, compiled with Ubuntu GCC 13.3.0-6ubuntu2~24.04.1; it is never linked into .om artifacts. Python 3.12.3 coordinates only exact oracle comparisons and temporary mutation copies. It generates no production bytes and has no driver runtime role; seeded .om already performs the encoding. Existing shell, coreutils, git and cc remain disclosed verification tooling, not driver runtime dependencies.

Still required for independent execution

Hardware is NOT_RUN. The Linux-process mapped mechanism is now implemented separately from the host replay binding: link exactly one of gsp/replay.om or gsp/transport.om (with gsp/profile.om and gsp/notify.om). There is no implicit transport fallback. qtattach requires the exact staged, published owned-map epoch and boot generation. rqprep/rqcommit separate construction from publication; stale tokens cannot publish a second time.

qtsend writes only owned slots, publishes command writePtr with an aligned mapset, then writes zero to PGSP_QUEUE_HEAD(0). qtsnap acquires peer writePtr, captures only its bounded immutable prefix, and qtaccept validates that capture before publishing host readPtr. SWAP_RX cursor ownership is preserved. Semantic RPC rejection can occur after transport consumption and quarantines without rolling back an already published cursor. Notification failure after publication is uncertain, not an unsent request eligible for retry. Bound mappings remain retained on timeout/error.

gsp/service.om supplies drvstep useRM, a serialized pump that dispatches suspended sequencer events before allowing either boot or RM policy to continue. drvprep appVersion b0 b1 b2 b3 copies the exact composed COT/FMC-argument inputs into the existing MMIO boot sequencer's input buffers. It neither calls that sequencer nor authorizes device effects; firmware appVersion is validated caller input. No host fixture invokes hardware mode, and no production resolver is added.

The pinned process compiler brackets each aligned mapget/mapset with DSB SY. This orders accesses but does not establish cache coherency, memory attributes, cache maintenance, interrupt delivery or device completion. Bulk mapread/mapwrite are ordinary copies, never cursor accesses. Host peers and instruction inspection cannot qualify those device properties. A fatal mapping fault is not a recoverable status and process-local quarantine is not crash-safe containment.

The host receipt for the mapped transport, sequencer dispatch, RM channel and completion slices is tests/transport-host-receipt.txt (all 27 tests/*.sh scripts, exact hashes and tool versions). tests/window_sim.sh needs build/omc to be the compiler named in tools/omc.pin.

chan/rmchan.om connects the existing allocation codecs to async RM hierarchy/schedule/disable/free; chan/complete.om uses Blackwell completion-semaphore releases, never nonexistent USERD GPGet. chprep allocates and encodes channel backing only (state 2, prepared): rmbind accepts only a prepared channel, the schedule ACK alone makes it submit-ready (state 1), and the disable ACK returns it to prepared. chcreate keeps the legacy simulator bind, which refuses an owned map. Drained host tracking is not proof that GSP stopped accessing the boot arena and never authorizes its reclamation. Hardware sequencer dispatch refuses regardless of host permission flags: a typed MMIO lease/span and engine-specific core effects are absent from this pin. Completion semaphore progress alone is not cache/engine completion: the vendor WFI/membar sequence is a separate required effect boundary, not supplied by a CPU fence or inferred from an observed semaphore value.

The current compiler profile is Linux-process ELF/VFIO, not Linux kernel code. A Linux-hosted .om user-space driver could replace NVIDIA modules while retaining Linux VFIO/IOMMU services; that is not an Omega kernel module or a replacement for Linux. This pin does not provide kernel calling/trap ABI, relocation/link profile, kernel-owned allocation/resource spans, ordered DMA/MMIO or IRQ/workqueue lifecycle. The proposed typed kernel effects are a separate pending compiler extension, not an implemented trust path. Actual device identity, coherent DMA ownership, firmware authentication, hardware boot/RPC, engine reset/halt, interrupt handling and documented global idle/recovery still require implementation/qualification at those boundaries. No C/Rust runtime substitute is adopted.

On the GB10 (authorized exclusive window only)

window/README.md is the procedure: W0 read-only checks, W1 reboot with nvidia.ko held back, W2 bind to vfio-pci, W3 build/w0 000f:01:00.0 20, W7 release, then R restores nvidia.ko and the resident 35B. tests/window_sim.sh runs those scripts unchanged against a simulated machine, and tests/mutants-window.sh checks that it catches each removed safety step. None of it has run on the GB10.

Expected from W3: config vendor/device 0x2e1210de (lspci reports [10de:2e12]) and matching map and pread values. The BOOT_0 architecture field (bits 28:24) is defined at nv_ref.h:129-136 (GB100 0x1A, GB200 0x1B); which value the GB10 reports is what this run measures, not something this repo asserts.

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.

For the documented method and a systems-software case study, see Gregory M. Kurtzer, Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering (2026). This does not change the QEMU-only status or authorize any device action.

Unified memory page tables (2026-11-05)

uvm/ is a host page-table builder for the Blackwell VER3 format. It is HOST_EXERCISED. It is not a replacement for chan/gmmu.om, it has no device words, and it does not open /dev/nvidia*. Nothing in this section has run on GB10 hardware. Chip qualification is NOT_RUN.

Host gate, cores 10-14:

taskset -c 10-14 nice -n 10 sh tests/uvm_diff.sh
taskset -c 10-14 nice -n 10 sh tests/mutants-uvm.sh

The first command compiles with the assignment pin omega-mv e5b32567, omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f, and checks the trace with tests/uvm_check.py. That checker does not call the Omega binary. It walks the dumped qwords, rebuilds each 32-byte fault packet, and recomputes every status. Observed 2026-11-05: exit 0, uvm_check: PASS (503 lines, independent walk). The second command requires that baseline, refuses one flipped dump nibble, and kills five compiling mutants (PTE aperture shift, alignment guard, mapped-page overlap, non-replayable fault, reservation overlap). Observed 2026-11-05: exit 0, mutants-uvm: PASS (baseline green, gate killed, 5 mutants killed).

This gate does not use tools/omc.pin. That pin is the VFIO compiler. These units do not call vfioctl or vfiomap.

Chip runbook: there is no command in this unit that may be pointed at the GPU. A later exclusive window can compare a 32-byte instance fault-buffer entry with tests/uvm_check.py's decode only after omega-gpu-driver has a qualified page-table install path. That comparison is NOT_RUN. Do not open /dev/nvidia*, do not take /tmp/aien-gb10.lock, and do not treat the host PASS as qualification. The exact missing gate is Drake's exclusive window plus a qualified instance MMU install path. See DESIGN.md section 5.

Licence

Apache-2.0; see LICENSE. NOTICE credits NVIDIA open-gpu-kernel-modules 580.173.02 (MIT), from which register offsets, structure layouts and constants are cited. Any part that becomes in-kernel Linux code would be MIT OR GPL-2.0-only instead.

For developers: proof and records

The full record of this project. Words that are used only here are explained once:

ID
The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is git:db11c53ae21f1ed7fecad2bf15be5cb2fd15c9e1b5f60c0bcfb699ac0b8cab4d. Its old id, kept only so that old links still work: z2xjD5kxUTTBNCryJ6rg9QXpemzei.
Owner
The key that signs every record of the project. This forge lists the project under drakestapleton; its key is SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs.
Refs and HEAD
Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch.
Patch
A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes.
Receipt
A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts. This project has no receipt in that list yet.

Clones and fetches over HTTPS: 6 by visitors (git smart-HTTP info/refs requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured git-upload-pack requests from all clients (the source of this count is retired)

Downloads: 4 by visitors (4 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07)

commit 81b579e4c371cc6e5c1eba3c57bc93ef20040800 Branches Tags History
81b579e Preserve the Spark's service and reboot budget during GPU identification Drake Stapleton committed 2026-11-18
chan/
gsp/
qemu/
review/
rm/
tests/
tools/
uvm/
window/
.crumb1582
.gitignore100
.goals.json1009
DESIGN.md52773
GB20B.md10493
LICENSE11358
NOTICE2433
README.md44823
build.sh1307
fwprep.om12729
ogd.om2388
w0.om11507

Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON