omega-gpu-driver
aien-dev/omega-gpu-driver
Brought by drakestapleton
omega-gpu-driver / README.md
| 1 | # omega-gpu-driver |
| 2 | |
| 3 | The GB10 GPU driver written in seeded Omega. Status: **W0 IMPLEMENTED and EXERCISED in QEMU. Existing |
| 4 | driver units are host-exercised against C referees and simulators. The new bounded boot image and RPC |
| 5 | replay units below are IMPLEMENTED and HOST_EXERCISED with exact binary parity and behavior mutants. |
| 6 | Nothing has run on GB10 hardware; nothing here is QUALIFIED. No NVIDIA kernel driver replacement is deployed.** |
| 7 | |
| 8 | Parent: [aien-dev/omega-mv](https://github.com/aien-dev/omega-mv), the seeded Omega compiler. This repo |
| 9 | keeps two explicit compiler pins. Historical gates and W0 stay on |
| 10 | `tools/omc.pin`: `397e67040fb74853c6814097fe02ae4e1ebd6f66`, |
| 11 | SHA-256 `bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6` |
| 12 | (pending omega-mv#878/#890). New provider/model gates and `build/ogd` use |
| 13 | `tools/irq-omc.pin`: `78122a72a7bb7129271088b30093e8b3b9b52f8d`, |
| 14 | SHA-256 `734bf4f3f858d56288902700cf581cdbaa4a24d1b3254a2beea014aaccf0fa38` |
| 15 | (draft [omega-mv#1045](https://github.com/aien-dev/omega-mv/pull/1045)). |
| 16 | That extension adds typed `eventfd`/`vfioirq` effects; its trust change still |
| 17 | requires review. Neither compiler dependency is silently treated as merged. |
| 18 | |
| 19 | `DESIGN.md` records the proposed isolation/submit/cache model and the implemented, host-exercised owned |
| 20 | DMA-window lifecycle. Hardware execution and the Linux-kernel replacement remain NOT_RUN. |
| 21 | |
| 22 | The 2026-10-28 candidate corrects the common-mode GB10B MCTP-header oracle defect |
| 23 | and adds a separate source-selected GB20B COTv2 arena and SEC2 response path. |
| 24 | See [GB20B.md](GB20B.md) for exact vendor/reference pins, mismatch refusals, |
| 25 | host-only scope, composed-launcher/native-effect gaps and the **unexecuted** |
| 26 | minimal W0 authorization procedure. `fwprep` accepts an explicit `gb20b` profile for offline firmware preparation. `gpchip` does |
| 27 | not admit GB20B to the existing GB10B transport. No physical boot/RPC/compute ran. |
| 28 | |
| 29 | ## W0: bind, read identity, release |
| 30 | |
| 31 | `w0 BDF GROUP [HEXOFF]` opens one PCI function that the operator has already bound to `vfio-pci`, reads |
| 32 | its identity and releases it. It never writes to the device and never calls `DEVICE_RESET`. |
| 33 | |
| 34 | 1. Refuses unless `/sys/bus/pci/devices/BDF/iommu_group` is GROUP (exit 3), the driver link is |
| 35 | `vfio-pci` (exit 4) and `/sys/kernel/iommu_groups/GROUP/devices` lists exactly BDF (exit 5). |
| 36 | 2. Container `/dev/vfio/vfio`: API version 0 and the TYPE1v2 extension (exit 6). Group: viable |
| 37 | (exit 7), attached, TYPE1v2 set (exit 8). Device fd by name (exit 9). |
| 38 | 3. `DEVICE_GET_INFO` (must be PCI with at least 8 regions), region info for BAR0 (index 0) and CONFIG |
| 39 | (index 7) (exit 10). |
| 40 | 4. Config identity through `pread` of the CONFIG region: vendor/device 0x00, revision/class 0x08, |
| 41 | subsystem 0x2C. |
| 42 | 5. PMC_BOOT_0 (0x000), PMC_BOOT_1 (0x004) and PMC_BOOT_42 (0xA00) through `pread` of BAR0, then through |
| 43 | a read-only `vfiomap` of BAR0 (`mapget`, one DSB-bracketed 32-bit load each). Optional HEXOFF reads |
| 44 | one more aligned word through the map; an offset outside BAR0 or misaligned traps (exit 103). |
| 45 | 6. Unmaps and closes device, group and container. Exit 11 if BOOT_0 reads 0xffffffff, 13 if the map |
| 46 | and pread values differ, 12 if the map fails. |
| 47 | |
| 48 | **w0 does not avoid a reset.** It never asks for one, but Linux `vfio-pci` (v7.0) resets the device |
| 49 | itself: opening the device fd FLRs the function when a reset method is enabled, and closing it sets |
| 50 | `needs_reset` and calls `pci_reset_bus`, a Secondary Bus Reset of the parent bridge. Writing `''` to |
| 51 | `reset_method` disables only the function-level paths; `pci_reset_bus` ignores `reset_method` and |
| 52 | checks only `PCI_DEV_FLAGS_NO_BUS_RESET`. On the Spark the GPU 000f:01:00.0 sits behind root port |
| 53 | 10de:22d1, which the running kernel does not quirk NO_BUS_RESET (only 22ce and 22d0 are), so the |
| 54 | release would assert SBR on that port. EXERCISED in QEMU with the host kernel and a kprobe trace: |
| 55 | `qemu/sbr/sbr-on-release.log` (CASE B: `pci_reset_bus` then `pci_bridge_secondary_bus_reset` on |
| 56 | release with `reset_method` empty; CASE C: refused w0, zero reset calls). Not run on hardware. |
| 57 | |
| 58 | Register offsets (NVIDIA open-gpu-kernel-modules 580.173.02, |
| 59 | `src/common/inc/swref/published/nv_ref.h`): NV_PMC_BOOT_0 0x0 at :108, NV_PMC_BOOT_1 0x4 at :138, |
| 60 | NV_PMC_BOOT_42 0xA00 at :149; NV_CONFIG_PCI_NV_0 at :52, NV_CONFIG_PCI_NV_2 at :66, |
| 61 | NV_CONFIG_PCI_NV_11 at :81. VFIO ABI: Linux `include/uapi/linux/vfio.h`. |
| 62 | |
| 63 | The compiler enforces the device boundary: `vfioctl` accepts only literal allowlisted VFIO requests at |
| 64 | their exact sizes, and `vfiomap` only maps a region read-only, so a write through the BAR0 handle |
| 65 | traps. See omega-mv `seed/host/MAPPING.md`. |
| 66 | |
| 67 | ## Build and test |
| 68 | |
| 69 | sh build.sh # births the pinned omc from seed-0, checks its sha256, writes build/w0, build/fwprep |
| 70 | OGKM=<open-gpu-kernel-modules 580.173.02 checkout> sh build.sh |
| 71 | # also runs build/fwprep on the installed gsp_ga10x.bin into build/fw (fw.manifest) |
| 72 | KERNEL=img/boot/vmlinuz-7.0.0-1019-nvidia sh qemu/test.sh |
| 73 | # QEMU virt + SMMUv3, edu device on vfio-pci, 9 commands, all results checked |
| 74 | KERNEL=... DEVICES='-device pcie-root-port,id=rp1,chassis=1,slot=1 -device edu,bus=rp1' \ |
| 75 | sh qemu/bench/run.sh build/w0 qemu/sbr/sbr.cmds qemu/sbr/sbr-on-release.log |
| 76 | # kprobe trace of the resets vfio-pci performs around w0 (see above) |
| 77 | |
| 78 | The QEMU bench (`qemu/bench/`) boots the host's Ubuntu 7.0.0-1019-nvidia kernel with busybox and the |
| 79 | host's own `iommufd`, `vfio`, `vfio-pci-core` and `vfio-pci` modules. `qemu/w0-edu.log` is the committed |
| 80 | transcript: edu reads `0x010000ed` at BAR0 0x0 through both the map and pread; wrong group, an unbound |
| 81 | edu, a virtio device, an access at the BAR0 size and a misaligned access are all refused. |
| 82 | `qemu/mutant-*.log` show two compiler mutants (MAP_PRIVATE, wrong device-fd request) failing there. |
| 83 | |
| 84 | Every QEMU boot and test command runs under `nice -n 19 taskset -c "${AIEN_TEST_CPUS:-0-9,15-19}"`. |
| 85 | `AIEN_TEST_CPUS` is the one CPU list the scripts pin to. The default `0-9,15-19` keeps them off |
| 86 | cores 10-14, which the shared Spark reserves for its live service; set it to use other cores, |
| 87 | e.g. `AIEN_TEST_CPUS=0-3 KERNEL=... sh qemu/test.sh`. |
| 88 | |
| 89 | ### Complete host suite |
| 90 | |
| 91 | The suite entrypoint runs every `tests/*.sh` gate except itself, fails closed on the |
| 92 | first failure, and retains each gate's output and return code in |
| 93 | `build/host-tests/`. It never opens a GPU device. Set all oracle paths explicitly: |
| 94 | |
| 95 | Every host/sim/differential/mutant invocation, including older recipes below, |
| 96 | must run inside a device-free namespace: |
| 97 | `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 <command>`. |
| 98 | It supplies a minimal `/dev`, hiding host NVIDIA, VFIO and CUSE nodes. Do not |
| 99 | rerun a failing sim outside it; a sim that requires a physical node is defective. |
| 100 | This wrapper does not authorize hardware or replace the separate window gate. |
| 101 | |
| 102 | ```sh |
| 103 | # tools/getomc.sh also accepts AIEN_OMC=<matching prebuilt compiler>. |
| 104 | sh tools/getomc.sh |
| 105 | # tests/run.sh separately acquires/verifies tools/irq-omc.pin; AIEN_IRQ_OMC |
| 106 | # may name the matching prebuilt compiler. It never replaces build/omc. |
| 107 | AIENUX=<aienux-at-a108b1144a064aa7b824374a622d627c6ba91fd1> \ |
| 108 | OGKM=<open-gpu-kernel-modules-at-20e4e6e19cc26ba47b5cbe23130a396be100c427> \ |
| 109 | FW=/lib/firmware/nvidia/580.173.02/gsp_ga10x.bin \ |
| 110 | AIEN_TEST_CPUS=10-14 bwrap --dev-bind / / --dev /dev --proc /proc -- \ |
| 111 | taskset -c 10-14 nice -n 10 sh tests/run.sh |
| 112 | ``` |
| 113 | |
| 114 | The explicit CPU override above is for the CUDA-stack host-only assignment; choose |
| 115 | the currently authorized CPU list elsewhere. The historical gate compiler remains |
| 116 | `omega-mv@397e67040fb74853c6814097fe02ae4e1ebd6f66`, SHA-256 |
| 117 | `bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6`. |
| 118 | The corrected aienux oracle is the existing arena/RPC gate pin, not its older |
| 119 | `c5bb3a4b` predecessor. These checkouts and installed firmware are verification |
| 120 | oracles only: nothing from them is linked into the Omega driver. The suite needs |
| 121 | Linux/AArch64, shell, Python 3, C compiler, binutils, coreutils, git, `qemu-aarch64`, |
| 122 | `bwrap` (acceptance used bubblewrap0.9.0), and permission to ptrace a child process. |
| 123 | Ptrace is used only by the independent |
| 124 | memfd/UAPI verifier; it neither opens a GPU nor attaches to an unrelated process. |
| 125 | There is no custom GitHub Actions host workflow in this revision; the observed |
| 126 | CodeQL run was successful. Local host results do not claim CI execution. |
| 127 | |
| 128 | ### GSP interrupt service model |
| 129 | |
| 130 | `gsp/irq.om` implements the next host-only interrupt milestone with an independent |
| 131 | in-image peer in `gsp/irqsim.om`. Pending sources are the intersection of status, |
| 132 | interrupt mask and host destination. SWGEN0 is acknowledged **before** draining |
| 133 | the event queue, never after: a new edge during the drain or at the final status |
| 134 | read remains pending. A bounded caller budget, inactive runtime PM, stale |
| 135 | generation, peer failure and unsupported sources fail closed. HALT and other |
| 136 | sources are retained and quarantined, not falsely claimed as CrashCat/ECC |
| 137 | handling. A lockdown notification ends the drain without any further register |
| 138 | access or masking. Initialization is one-shot: no reset/rearm/reclaim or global |
| 139 | idle authority is introduced. |
| 140 | |
| 141 | The source contract is NVIDIA open-gpu-kernel-modules 580.173.02 at |
| 142 | `20e4e6e19cc26ba47b5cbe23130a396be100c427`: |
| 143 | `kernel_gsp_tu102.c:1188-1203`, `kernel_falcon_ga102.c:318-320`, |
| 144 | and `dev_falcon_v4.h:26-35`. Bit constants were checked with |
| 145 | `WolframLanguageEvaluator: {2^6,2^4,BitOr[2^6,2^4]} -> {64,16,80}`. |
| 146 | The independent C referee is test-only, not a runtime implementation. The model |
| 147 | injects finite queues, one concurrent edge, peer errors and lockdown; it is not |
| 148 | GSP firmware emulation. This isolated historical gate retains its own explicit seam. |
| 149 | |
| 150 | Run `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 sh tests/irq_host.sh`. It checks exact output |
| 151 | against that referee, explicit boundary expectations, every byte-sized raw IRQ |
| 152 | status against routing-mask combinations, and compiling behavior mutants. |
| 153 | This historical fixture rejects physical mode before seam access. Its immutable |
| 154 | receipt is `tests/irq-host-receipt.txt`. The composed successor and narrower |
| 155 | physical-provider fixture evidence are described below, not retroactively added |
| 156 | to that receipt. |
| 157 | |
| 158 | #### IRQ hardware runbook / blocked gate |
| 159 | |
| 160 | `build/ogd` now exists, but advertises **only `model` and `model-trace`**. |
| 161 | Its default and every physical command refuse with status 95. It has no physical |
| 162 | `ident`, `boot`, `hello` or `exec` admission. D3 preflight and the post-reboot runner |
| 163 | require a successful mode query containing exactly `exec`, before VFIO binding. |
| 164 | A model-only executable, suffix match or failed query is refused. D2's optional |
| 165 | driver steps remain NOT_RUN. These predicates do not grant a hardware window. |
| 166 | |
| 167 | The typed IRQ lease and provider below are implemented and host-exercised. |
| 168 | Physical device-stop attestation, coherent mapped RPC, actual firmware/engine |
| 169 | execution and safe physical DMA reclamation are **not** supplied. In particular, |
| 170 | the physical provider returns `-95` for device stop, quarantines and retains its |
| 171 | mapping/registration; IRQ disable, cancellation, eventfd readiness or semaphore |
| 172 | progress never substitutes for a device-specific idle proof. |
| 173 | |
| 174 | 1. Before a chip attempt, implement and qualify the missing device-stop, |
| 175 | coherency/cache, firmware/engine execution and physical composition boundaries. |
| 176 | Preserve acknowledgement-before-drain, ordered immutable consumption, |
| 177 | lockdown's no-register-access rule and retained published backing. Rehearse |
| 178 | positives and negative controls against an independent modeled/QEMU device. |
| 179 | 2. Freeze that composed candidate, its compiler and firmware hashes. Obtain |
| 180 | Drake's fresh exclusive-window approval explicitly covering service |
| 181 | stop/restore, VFIO binding, firmware execution, FLR/SBR and reboot. The |
| 182 | historical W0 identity permission is not this approval. |
| 183 | 3. Follow `window/README.md` rather than issuing ad hoc bind/module commands. |
| 184 | Its D2 entry command is `sh window/d2-pre.sh --go D2` and has real reboot, |
| 185 | reset and service effects. **Do not run it for this model-only candidate.** |
| 186 | Today W4/W5 still report NOT_RUN because this launcher has no physical modes. |
| 187 | 4. In an authorized future candidate, record delivered/routed IRQ sources, |
| 188 | ack-before-drain ordering, a preserved concurrent edge, bounded overflow |
| 189 | quarantine, lockdown cessation and fault/teardown behavior. Restore through |
| 190 | the window's existing R path. Only a dated chip receipt can qualify those |
| 191 | effects; this change leaves that tier NOT_RUN and does not promote any |
| 192 | ROADMAP nvidia.ko status. |
| 193 | |
| 194 | ### Composed host model and typed IRQ provider (2026-11-05) |
| 195 | |
| 196 | Build with `taskset -c 10-14 nice -n 10 sh tools/buildogd.sh`, or `sh build.sh`. |
| 197 | `tools/ogd.units` is the production-only composition manifest: no test driver, |
| 198 | C referee, Python runtime or UVM implementation is linked into `build/ogd`. |
| 199 | Run `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 build/ogd model`; |
| 200 | `model-trace` emits the same path's binary observations under the same wrapper. |
| 201 | The synthetic endpoint starts before INIT_DONE, using explicit synthetic arena |
| 202 | segments; it is **not** signed firmware, Falcon/GSP firmware emulation or a |
| 203 | physical fallback. `tests/ogd_host.sh` independently checks native and QEMU-user |
| 204 | results and compiling behavior mutants. |
| 205 | |
| 206 | Implemented boundaries: |
| 207 | |
| 208 | * `gsp/transport.om` splits immutable capture/validation (`qtstage`), semantic |
| 209 | handling (`qthandled`) and exactly-once consumer publication (`qtfinish`). |
| 210 | `gsp/irqqueue.om` drives the existing `drvstep` through that held capture. |
| 211 | Its sequencer result 2 means work was dispatched, **not** IRQ lockdown. |
| 212 | Lockdown is only an actual validated engaging wire event, and is not published |
| 213 | as a successfully handled consumer. Failures quarantine; no cursor rollback, |
| 214 | semantic retry or reclaim is inferred after an uncertain store. |
| 215 | * `gsp/irqtypes.om`, `irqlease.om` and `irqprovider.om` bind a lease and MMIO span |
| 216 | to one generation/backing identity. Serialized handler/waiter owners retire |
| 217 | exactly once; stale owners, duplicate close, invalid alignment/range and |
| 218 | post-lockdown MMIO are denied. These nominal types are not process isolation, |
| 219 | compiler-enforced linearity or a concurrent/thread-safe implementation. |
| 220 | * Revoke closes admission **before** disable/cancel/device-stop requests. |
| 221 | Synchronize requires acknowledged disable/cancel and no handlers, waiters or |
| 222 | held captures. Quiescence is a separate backend-owned attestation of the exact |
| 223 | revoke epoch/backing, after independently modeled queued/device work ends. |
| 224 | Only then can the interrupt span/event source close. Published DMA is retained. |
| 225 | * `gsp/irqvfio.om` is the real Omega UAPI backend: borrowed proven device fd, |
| 226 | checked BAR region, checked IRQ index/vector range/capabilities, owned nonblocking |
| 227 | eventfd, bind/mask/unmask/disable and wait cancellation. Bind and mask are not |
| 228 | atomic; pre-enable notifications are hints, not handler admission/completion. |
| 229 | Ambiguous registration/disable/close failures retain ownership; close is never |
| 230 | retried against a possibly reused numeric fd. The provider never opens a path, |
| 231 | binds a PCI device, resets it or closes its borrowed device fd. |
| 232 | * `tests/irqvfio_ref.py` is verification-only. It intercepts its own child's VFIO |
| 233 | requests on that child's memfd, verifies real kernel ENOTTY, then supplies an |
| 234 | independent modeled UAPI response. Actual eventfd/read/write/wait/mapping |
| 235 | operations remain kernel operations. This exercises packed UAPI/ownership and |
| 236 | failure order, **not** a physical VFIO device, GSP or QEMU-system device. |
| 237 | * `gsp/irqctl.om` composes existing IRQ policy, ordered receive and typed owners. |
| 238 | Lockdown is sticky before cleanup and forbids later MMIO. The composed model |
| 239 | handles a CPU sequencer, INIT_DONE, then engaging lockdown; it revokes, |
| 240 | synchronizes, observes premature idle refusal, waits for modeled device work, |
| 241 | closes only interrupt storage and retains the published/quarantined DMA arena. |
| 242 | |
| 243 | Focused gates (all verification-only): |
| 244 | |
| 245 | | Gate | Independent positive/boundary cases | Compiling behavior mutants | |
| 246 | |---|---:|---:| |
| 247 | | `tests/irqqueue_host.sh` | 15 | 10 | |
| 248 | | `tests/irqlease_host.sh` | 117, including 21 named boundaries | 12 | |
| 249 | | `tests/irqvfio_host.sh` | 21 | 10 | |
| 250 | | `tests/ogd_host.sh` | native and QEMU-user composition, 7 physical refusals each | 6 | |
| 251 | | `tests/irqcmd_host.sh` | 12 | 5 | |
| 252 | |
| 253 | Current receipt: `tests/ogd-host-receipt.txt`. Hardware tier remains **NOT_RUN**. |
| 254 | |
| 255 | #### Remaining CUDA-stack driver gaps and next reachable item |
| 256 | |
| 257 | Against CUDApp `ROADMAP.md` section 1 at `575ba1884e91abf5c62c3dbc8229975d5fa2531b`, |
| 258 | the `nvidia.ko` row remains BUILDING: unread physical BOOT_42 identity, no |
| 259 | authorized chip window, physical firmware/engine boot and coherent RPC/DMA/IRQ |
| 260 | qualification absent, and the `nvrm/` client still uses NVIDIA ioctls. This model |
| 261 | does not migrate that client or qualify either other driver track. The |
| 262 | `nvidia-uvm.ko` row likewise remains BUILDING: a physical MMU/TLB/fault/replay |
| 263 | service and its coherency/lifetime/completion evidence are still required. |
| 264 | Signed NVIDIA GSP firmware remains an explicit outside dependency by design; |
| 265 | display modules are outside this compute-driver slice. |
| 266 | |
| 267 | The next host-reachable UVM handoff has **started and is exercised**: |
| 268 | `iqcommand(op,seq,va,pa,flags)` admits an ordered eight-record model queue with |
| 269 | five little-endian u64 fields (40 bytes). Local op 1 is replay and op 2 invalidate; |
| 270 | these are **not GSP RPC identifiers**. `gsp/irqcmd.om` captures an immutable record, |
| 271 | requires its exact sequence to acknowledge once, handles wrap/full/duplicate |
| 272 | controls, and revokes without publishing an unacknowledged consumer. Queue |
| 273 | acceptance and consumer acknowledgement are **not MMU/TLB completion**. UVM |
| 274 | page-table/service implementation stays with the UvmOmega/UvmService lanes; |
| 275 | no UVM ownership or hardware qualification is claimed here. |
| 276 | |
| 277 | |
| 278 | ## Driver units (host-exercised) |
| 279 | |
| 280 | Existing units port aienux PR #441 C or pinned vendor contracts. Each gate compares |
| 281 | Omega output with an independent test-only reference; mutants require observable |
| 282 | behavioral disagreement, not a compiler or setup failure. |
| 283 | |
| 284 | | Unit | Ported from | Gate | Mutants | |
| 285 | |---|---|---|---| |
| 286 | | `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.c` | `tests/mmio_diff.sh`, `tests/pm_gate.sh` | `tests/mutants-mmio.sh` | |
| 287 | | `gsp/sysinfo.om` (GSP_SET_SYSTEM_INFO payload) | `tools/ck_gsp_sysinfo_encode.c` | `tests/sysinfo_diff.sh` | `tests/mutants-sysinfo.sh` | |
| 288 | | `gsp/seq.om` (GSP_RUN_CPU_SEQUENCER, CPU side) | `gpu/gsp_seq.c` | `tests/seq_diff.sh` | `tests/mutants-seq.sh` | |
| 289 | | `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.c` | `tests/fw_diff.sh` | `tests/mutants-fw.sh` | |
| 290 | | `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.c` | `tests/chan_diff.sh` | `tests/mutants-chan.sh` | |
| 291 | | `chan/dma.om`, owned backend of `chan/gmmu.om` (Linux userspace VFIO; not a kernel module) | Linux VFIO ABI and pinned Omega handle contract | `tests/dma_host.sh` | 11 compiling ownership/order/range/error mutants in the same gate | |
| 292 | | `chan/params.om` (RM alloc/control records for GSP-RM, NVIDIA 580.173.02 layouts) | NVIDIA headers | `tests/params_diff.sh` | `tests/mutants-chan.sh` | |
| 293 | | `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 protocol | `tests/rpc_diff.sh` | `tests/mutants-rpc.sh` | |
| 294 | | `gsp/arena.om`, `gsp/connect.om` (bounded WPR/libos/log/radix/FMC/COT composition and preboot queue attachment) | `dev/gb10_gsp_boot.c` | `tests/arena_diff.sh` | `tests/mutants-arena.sh` | |
| 295 | | `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 HAL | `tests/sec2_host.sh` | `tests/mutants-sec2.sh` | |
| 296 | | `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 peer | `tests/transport_host.sh` | compiling transport/notification/service mutants plus generated-fence checker negative control | |
| 297 | | `gsp/dispatch.om` (whole-stream prevalidation and explicit host sequencer execution; hardware refusal) | pinned vendor sequencer plus aienux sequencer | `tests/dispatch_diff.sh` | `tests/dispatch_mutants.sh` | |
| 298 | | `chan/complete.om`, `chan/rmchan.om` (semaphore progress and async RM lifecycle; no global idle proof) | pinned NVIDIA headers and independent C referee | `tests/complete_diff.sh`, `tests/rmchan_diff.sh` | `tests/mutants-complete.sh`, `tests/mutants-rmchan.sh` | |
| 299 | | `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 referee | `tests/irq_host.sh` | 14 compiling behavior mutants in the same gate | |
| 300 | | `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.om` | `tests/uvm_diff.sh` | `tests/mutants-uvm.sh` | |
| 301 | | `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 only | `taskset -c 10-14 nice -n 10 python3 tests/uvms_check.py --mutants` | two compiling, terminating, byte-difference mutants per new unit | |
| 302 | | `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-only | `taskset -c 10-14 nice -n 10 python3 -u tests/uvme_check.py --mutants` | exact-size, cross-client routing, stale handle, inherited fd, dead-worker SIGPIPE, notification count and closed-token mutants | |
| 303 | | `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 client | `tests/rme_check.py --mutants` and `tests/rms_check.py --mutants --client /tmp/ogd-cudapp-client` under the device-hiding command below | ten structural and ten serving compiling mutants, independent-model red controls and fixture rejection | |
| 304 | |
| 305 | |
| 306 | The service is stacked on draft [#10](https://github.com/aien-dev/omega-gpu-driver/pull/10), |
| 307 | `feat/uvm-page-tables` at `4917e4e218e392526351e05b9169bd00679ac724`. It composes the |
| 308 | **model-only** command queue from draft [#11](https://github.com/aien-dev/omega-gpu-driver/pull/11) |
| 309 | (itself on #9), pinned at `b06b3f9a3dd1e74a3099350760cb3d26a3f33577`. |
| 310 | `UVM_QUEUE_ROOT` locates a checkout containing that commit; the gate reads its committed queue |
| 311 | units, not mutable working files. `UVM_OMC` must match #10's omc SHA |
| 312 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 313 | `OGKM` locates the read-only 580.173.02 header checkout at |
| 314 | `20e4e6e19cc26ba47b5cbe23130a396be100c427` for the `cc` offsetof oracle. |
| 315 | Defaults match the lane checkouts; no driver binary or NVIDIA implementation is linked. |
| 316 | See DESIGN section 6 for capacities, entry points, wire formats, refusals and the NOT_RUN chip runbook. |
| 317 | The command queue accepts local replay/invalidate **records**, not physical GSP RPCs. An accepted or |
| 318 | consumed record is not proof of a completed replay, TLB invalidate, coherence operation or safe physical |
| 319 | memory reclamation. The ioctl dispatcher is a server-side model, not a Linux `/dev/nvidia-uvm` endpoint. |
| 320 | |
| 321 | The endpoint follow-on is `feat/uvm-endpoint`, stacked on draft |
| 322 | [#12](https://github.com/aien-dev/omega-gpu-driver/pull/12) at |
| 323 | `e7aa07f34f5156b0ae129378f4aa46df6be11375`. `uvm/endpoint.om` carries the eight |
| 324 | ioctls through `sidispatch` in isolated, forked workers, one namespace per open |
| 325 | file description. Duplicated/inherited fds deliberately share their namespace; |
| 326 | independent opens do not. The production transport is entirely `.om`, not a C |
| 327 | or Python fallback. Its additional compiler dependency is draft |
| 328 | [omega-mv#1045](https://github.com/aien-dev/omega-mv/pull/1045), source |
| 329 | `78122a72a7bb7129271088b30093e8b3b9b52f8d`, omc SHA256 |
| 330 | `734bf4f3f858d56288902700cf581cdbaa4a24d1b3254a2beea014aaccf0fa38`, |
| 331 | for host `eventfd`. The older service/page-table compiler pins remain unchanged. |
| 332 | |
| 333 | The endpoint gate exercises real Omega processes, sockets and eventfd against an |
| 334 | independent fake-kernel byte oracle and two concurrent client processes. It never |
| 335 | opens a device. `--emit-dir /tmp/omega-uvm-endpoint` retains passed binaries for the |
| 336 | separately authorized CUSE runbook in DESIGN section 7. The real CUSE ioctl hop is |
| 337 | **NOT_RUN** (`/dev/cuse` is absent); trusted RM backing resolution, physical IRQ/ |
| 338 | TLB effects, hardware-safe teardown and chip qualification are **NOT_RUN**. |
| 339 | `--cuse` never invents a backing PA, so MAP refuses without trusted RM ownership. |
| 340 | Nothing installs `/dev/nvidia-uvm`, replaces a module, or closes the ROADMAP row. |
| 341 | |
| 342 | `fwprep FWFILE OGKMSRC OUTDIR` reads the signed `gsp_ga10x.bin` (unchanged) and the NVIDIA open-source |
| 343 | bindata tables, and writes `fmc.img`, `fmc.hash`, `fmc.pubkey`, `fmc.sig`, `bl.img` and, last, |
| 344 | `fw.manifest`. Add `gb20b` as the fourth argument to prepare the pinned GB20B production |
| 345 | inputs in a fresh directory. Its commit marker is `fw.gb20b.manifest`. |
| 346 | `sh tests/fw_diff.sh` compares both profiles against the independent extractors. |
| 347 | Channel ops other than the simulator (mode 0) trap; on the GB10 they go through GSP RPC. |
| 348 | |
| 349 | The hardware backing assumption is now explicit: `mmwinit` keeps the simulator array; `mmwalloc` owns |
| 350 | shared anonymous `mapnew` memory and CPU accesses use the live handle plus offset. The IOVA, CPU base |
| 351 | and GPU VA are distinct. `mmwdmap` maps before `mmwpublish`; a DMA-mapped, never-published window |
| 352 | unmaps its whole recorded extent before dropping backing. Never-mapped backing drops directly. |
| 353 | Epoch checks refuse stale users. Publication is sticky: |
| 354 | timeouts, uncertain mapping/completion and partial/unexpected unmap results quarantine backing. |
| 355 | No documented idle-proof API exists, so published/quarantined backing cannot be reclaimed or reset. |
| 356 | The caller exclusively owns container/process lifetime; this is not crash-safe containment. |
| 357 | See `DESIGN.md` section 4 for the exact state contract and required future GSP publication callsites. |
| 358 | |
| 359 | `OMC=/path/to/pinned/omc sh tests/dma_host.sh` passes 23 host replay/boundary cases, real invalid-fd |
| 360 | MAP_DMA retry/drop refusal, and 11 compiling negative-control mutants. Only anonymous host memory and |
| 361 | invalid fd -1 are exercised by the real backend; the DMA success/error transport is explicit test-only |
| 362 | link-time replay. No device open/release, DMA, hardware MMIO or reset is performed. The separate |
| 363 | simulator diff remains byte-identical across 391 lines. Hardware: **NOT_RUN**. |
| 364 | |
| 365 | Test-only referees and harnesses (disclosed; never linked into the driver): `tests/seq_ref.c` and |
| 366 | `tests/params_ref.c` (C), the aienux C tools built fresh by the diff scripts, and the shell scripts in |
| 367 | `tests/`. Host tools in the build and test path: `sh`, `git`, `sha256sum`, `cc`, QEMU 8.2.2, busybox, |
| 368 | zstd, cpio, gzip. |
| 369 | |
| 370 | ### RM endpoint: IMPLEMENTED / HOST_EXERCISED, not a deployed nvidia.ko replacement |
| 371 | |
| 372 | The serving follow-on is stacked on draft [#14](https://github.com/aien-dev/omega-gpu-driver/pull/14) |
| 373 | at `742afd90`. `rm/omc.pin` retains the seeded service compiler SHA |
| 374 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 375 | The executable requires explicit `--fake --host-model rm/host-model.fixture`. |
| 376 | The fixture is synthetic and labeled **HOST_MODEL**, not a capture or device |
| 377 | truth. Its GR static response uses the real GSP_RM_CONTROL RPC (76); local vendor |
| 378 | inventory/cache calls are served locally, not assigned fictional RPC IDs. |
| 379 | DESIGN section 8 cites the exact OGKM 580.173.02 routes and limits. |
| 380 | |
| 381 | Prepare the **unmodified**, read-only consumer checkout outside this repository: |
| 382 | |
| 383 | ```sh |
| 384 | git -C /path/to/CUDApp worktree add --detach /tmp/ogd-cudapp-client origin/feat/c4-streams-submit |
| 385 | # Acceptance source pin: 16f11c47fa9587349b607d5ed174113b6fc9b504 |
| 386 | ``` |
| 387 | |
| 388 | All tests, mutants, diffs and compiled consumers run with device nodes hidden: |
| 389 | |
| 390 | ```sh |
| 391 | AIEN_TEST_CPUS=10-14 RM_OMC=/path/to/the/pinned/service/omc \ |
| 392 | OGKM=/path/to/open-gpu-kernel-modules-580.173.02 \ |
| 393 | bwrap --dev-bind / / --dev /dev --proc /proc -- \ |
| 394 | taskset -c 10-14 nice -n 10 python3 -u tests/rme_check.py --mutants |
| 395 | |
| 396 | AIEN_TEST_CPUS=10-14 RM_OMC=/path/to/the/pinned/service/omc \ |
| 397 | OGKM=/path/to/open-gpu-kernel-modules-580.173.02 \ |
| 398 | bwrap --dev-bind / / --dev /dev --proc /proc -- \ |
| 399 | taskset -c 10-14 nice -n 10 python3 -u tests/rms_check.py \ |
| 400 | --mutants --client /tmp/ogd-cudapp-client |
| 401 | ``` |
| 402 | |
| 403 | The first gate measures vendor layouts, compares handle behavior and executes the |
| 404 | structural C consumer. The second compares page/mapping policy against a Python |
| 405 | reference, kills ten compiling serving mutants, rejects a deliberately wrong |
| 406 | oracle and corrupt/unlabeled fixtures, and builds/runs the pinned **unmodified** |
| 407 | `nvrm.c` with checked Omega client policy. Only its OS transport is interposed by |
| 408 | the C fake kernel (`CUDAPP_NVRM_TEST_TRANSPORT=1`). It completes open, allocation, |
| 409 | control, CPU/DMA/UVM mapping, a CPU byte roundtrip, free and close. Anonymous CPU |
| 410 | backing exists only in this test kernel; it is not real device backing. |
| 411 | |
| 412 | | Call | Status | |
| 413 | |---|---| |
| 414 | | CARD_INFO; GET_ID_INFO_V2; GR_GET_INFO; GET_CLASSLIST; GET_GID_INFO | SERVED_HOST_MODEL | |
| 415 | | MEMORY_SYSTEM / VIRTUAL / LOCAL_USER; USERMODE_A/B allocations | SERVED_HOST_MODEL | |
| 416 | | CPU MAP / UNMAP; DMA MAP / UNMAP; VID_HEAP_CONTROL INFO | SERVED_HOST_MODEL | |
| 417 | | REGISTER_FD (live endpoint-issued token only) | SERVED_HOST_MODEL | |
| 418 | | CHECK_VERSION_STR (`ogd HOST_MODEL/1`, not NVIDIA identity) | SERVED_HOST_MODEL | |
| 419 | | OS-event alloc/free; unknown classes/controls; unsupported heap functions | REFUSED | |
| 420 | | Physical backing, pinning, real doorbells, kernel CUSE hop, live GSP/RM, VFIO, chip qualification | NOT_RUN | |
| 421 | |
| 422 | The allocator owns 1024 pages, tracks handle/map refcounts, rejects overlap and |
| 423 | ownership violations, and reclaims RM/UVM maps and pages on cascading free. Imports alias |
| 424 | one namespace without destroying it when the source description closes. |
| 425 | Python/C are test oracles only; endpoint policy and workers are seeded Omega. |
| 426 | New receipt: `tests/rms-host-receipt.txt`. Historical receipts |
| 427 | `tests/rme-host-receipt.txt` and `tests/rme-shared-receipt.txt` are unchanged. |
| 428 | |
| 429 | ## Boot image and RPC replay boundary |
| 430 | |
| 431 | The new implementation is seeded `.om`, not a C driver hidden behind a wrapper. It reuses the existing |
| 432 | `siout` system-info encoder and `pabuf`/`palen` allocation/channel codecs. `brmalloc`, `brmctrl` and |
| 433 | `brmfree` freeze one pending request and feed those bytes into the queue codec; accepted successful |
| 434 | replies populate `pareply`. Header success and the RM body status are separate checks. Failed replies |
| 435 | leave the consumer reply buffer unchanged. Hardware `chan/chan.om` bind/disable/idle still trap. |
| 436 | |
| 437 | `arbuild` composes the full WPR/libos/log page tables/cached args/shared queue/radix3/bootloader/ |
| 438 | signature/FMC/FMC-args/COT image up to `arcap <= 83886080` bytes. Use `arinput` and `aroutput` |
| 439 | for offsets in this range. The first 16 MiB retains the existing `arin` and `arbuf` byte spans. The |
| 440 | 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, |
| 441 | FMC key and FMC signature. `arcfg[0..10)` carries explicit profile, DMA width, heap IOVA/size, GPU |
| 442 | instance, regkeys, bootloader code/data/manifest offsets and serialized registry length. `aroff/arsize` |
| 443 | describe all regions; `arcmd/arstat` are queue offsets, `araddr 15` the FMC-args IOVA, `arcot/arclen` |
| 444 | the COT packet and `artail` its EMEM tail. Outputs are invalid after any nonzero status. The registry |
| 445 | input is canonical bounded PACKED_REGISTRY_TABLE bytes, not a foreign runtime. `arboot` connects this |
| 446 | image's preboot queue counters directly to the boot handshake without reconstructing the queue. |
| 447 | |
| 448 | `gsp/owned.om` connects construction to the owned backing: `arstage(epoch)` copies exact arena bytes |
| 449 | through the checked map handle only for the matching IOVA window, boot generation and unpublished |
| 450 | OWN/DMA lifecycle. It never publishes or notifies hardware. `arlose(epoch)` connects a quarantined |
| 451 | boot replay to retention of the matching already-published backing; it cannot unmap or reclaim it. |
| 452 | The final composed host gate `sh tests/boot_dma.sh` uses an explicit link-time DMA oracle, real |
| 453 | anonymous mappings and exact whole-arena comparison. Staging and quarantine mutants are both |
| 454 | detected. Its receipt is `tests/boot-dma-host-receipt.txt`; this is not a device endpoint or fence. |
| 455 | |
| 456 | The host receipt is `tests/gsp-host-receipt.txt`: exact sender frames and boot state/refusal controls; |
| 457 | five complete arena fixtures (including multi-level radix and DWORD/binary/string registry); 31 |
| 458 | invalid arena fixtures; 19 RPC and 12 arena mutants. Build/setup failures and unexpected runtime |
| 459 | traps do not count as detected mutants. These tests use synthetic signed-byte inputs, not valid |
| 460 | firmware authentication or firmware execution. |
| 461 | |
| 462 | The queue layout is the non-confidential-computing NVIDIA 580.173.02 protocol: SWAP_RX, separate element |
| 463 | and RPC sequences, actual aligned-padding checksum validation, bounded wrapped slots, and full-slot |
| 464 | capture. RM_ALLOC deliberately excludes appended params from its logical length and checksum, as |
| 465 | `rpc.c:11194-11228` does. Those tail bytes are not authenticated or checksummed. The supported alloc |
| 466 | params bound is 3984 bytes; oversized/continuation requests refuse, not truncate. This is not a |
| 467 | cryptographic trust boundary. |
| 468 | |
| 469 | Boot replay requires preboot system info and optional nonempty registry, explicit peer queue creation, |
| 470 | INIT_DONE, SET_GUEST_SYSTEM_INFO version handshake, then STATIC_INFO of the supplied expected size. |
| 471 | Private handshake result is an NV_STATUS: zero succeeds (`rpc.c:8764`); it is not a version value. |
| 472 | Version renegotiation refuses instead of guessing. CPU_SEQUENCER suspends the exact received event |
| 473 | until a matching generation/event token is dispatched through `gsp/dispatch.om`. The complete stream |
| 474 | is prevalidated before execution; completion is not fabricated and no acknowledgement RPC is invented. |
| 475 | |
| 476 | `REPLAY_READY` is host state only, never a production resolver capability. Wait budgets count caller |
| 477 | polls, not elapsed time; unrelated events do not replenish them. Publication timeout or corrupt/ |
| 478 | uncorrelated replies quarantine the replay with pending identity retained. Late replies cannot turn |
| 479 | that into success. `breset` only disposes replay images and refuses while a mapped transport is bound; |
| 480 | it cannot reset hardware, prove idle, unmap DMA, or authorize reclaim. Unpublished queue-full refusal |
| 481 | does not consume a sequence number. |
| 482 | |
| 483 | The arena's GB10B/SEC2 profile remains unverified for the Spark target. `gsp/profile.om` classifies the |
| 484 | published BOOT_42 architecture/implementation fields, not a measured device: vendor `nv_ref.h:149-182` |
| 485 | and `nv_arch.h:51,111` identify GB1XX/GB10B; generated FSP/SEC2 HAL selection chooses SEC2/FMC COTv1, |
| 486 | and `nv-firmware-chip-family-select.h:58-62` selects `gb10y`. No device is opened to select a profile. |
| 487 | |
| 488 | Run the host-only commands with the exact C reference checkout and pinned compiler: |
| 489 | |
| 490 | ```sh |
| 491 | AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/rpc_diff.sh |
| 492 | AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/mutants-rpc.sh |
| 493 | AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/arena_diff.sh |
| 494 | AIENUX=<aienux-c5bb3a4b> OMC=<compiler-397e6704>/seed/out/omc sh tests/mutants-arena.sh |
| 495 | ``` |
| 496 | |
| 497 | Reference pins: aienux `c5bb3a4b9898257658aba0b7178a3c73a0371c27`; NVIDIA |
| 498 | `20e4e6e19cc26ba47b5cbe23130a396be100c427` (tag `580.173.02`); compiler |
| 499 | `397e67040fb74853c6814097fe02ae4e1ebd6f66`, sha256 in `tools/omc.pin`. Compiler PRs #878 and #890 |
| 500 | are pending dependencies, not merged compiler capabilities. The new independent C referee is |
| 501 | test-only, compiled with Ubuntu GCC `13.3.0-6ubuntu2~24.04.1`; it is never linked into `.om` artifacts. |
| 502 | Python `3.12.3` coordinates only exact oracle comparisons and temporary mutation copies. It generates |
| 503 | no production bytes and has no driver runtime role; seeded `.om` already performs the encoding. |
| 504 | Existing shell, coreutils, git and cc remain disclosed verification tooling, not driver runtime dependencies. |
| 505 | |
| 506 | ### Still required for independent execution |
| 507 | |
| 508 | Hardware is **NOT_RUN**. The Linux-process mapped mechanism is now implemented separately from the |
| 509 | host replay binding: link exactly one of `gsp/replay.om` or `gsp/transport.om` (with `gsp/profile.om` |
| 510 | and `gsp/notify.om`). There is no implicit transport fallback. `qtattach` requires the exact staged, |
| 511 | published owned-map epoch and boot generation. `rqprep`/`rqcommit` separate construction from |
| 512 | publication; stale tokens cannot publish a second time. |
| 513 | |
| 514 | `qtsend` writes only owned slots, publishes command writePtr with an aligned `mapset`, then writes |
| 515 | zero to PGSP_QUEUE_HEAD(0). `qtsnap` acquires peer writePtr, captures only its bounded immutable |
| 516 | prefix, and `qtaccept` validates that capture before publishing host readPtr. SWAP_RX cursor ownership |
| 517 | is preserved. Semantic RPC rejection can occur after transport consumption and quarantines without |
| 518 | rolling back an already published cursor. Notification failure after publication is uncertain, not |
| 519 | an unsent request eligible for retry. Bound mappings remain retained on timeout/error. |
| 520 | |
| 521 | `gsp/service.om` supplies `drvstep useRM`, a serialized pump that dispatches suspended sequencer |
| 522 | events before allowing either boot or RM policy to continue. `drvprep appVersion b0 b1 b2 b3` |
| 523 | copies the exact composed COT/FMC-argument inputs into the existing MMIO boot sequencer's input |
| 524 | buffers. It neither calls that sequencer nor authorizes device effects; firmware appVersion is |
| 525 | validated caller input. No host fixture invokes hardware mode, and no production resolver is added. |
| 526 | |
| 527 | The pinned process compiler brackets each aligned `mapget`/`mapset` with DSB SY. This orders accesses |
| 528 | but does not establish cache coherency, memory attributes, cache maintenance, interrupt delivery or |
| 529 | device completion. Bulk mapread/mapwrite are ordinary copies, never cursor accesses. Host peers and |
| 530 | instruction inspection cannot qualify those device properties. A fatal mapping fault is not a |
| 531 | recoverable status and process-local quarantine is not crash-safe containment. |
| 532 | |
| 533 | The host receipt for the mapped transport, sequencer dispatch, RM channel and completion slices is |
| 534 | `tests/transport-host-receipt.txt` (all 27 `tests/*.sh` scripts, exact hashes and tool versions). |
| 535 | `tests/window_sim.sh` needs `build/omc` to be the compiler named in `tools/omc.pin`. |
| 536 | |
| 537 | `chan/rmchan.om` connects the existing allocation codecs to async RM hierarchy/schedule/disable/free; |
| 538 | `chan/complete.om` uses Blackwell completion-semaphore releases, never nonexistent USERD GPGet. |
| 539 | `chprep` allocates and encodes channel backing only (state 2, prepared): `rmbind` accepts only a |
| 540 | prepared channel, the schedule ACK alone makes it submit-ready (state 1), and the disable ACK |
| 541 | returns it to prepared. `chcreate` keeps the legacy simulator bind, which refuses an owned map. |
| 542 | Drained host tracking is not proof that GSP stopped accessing the boot arena and never authorizes its |
| 543 | reclamation. Hardware sequencer dispatch refuses regardless of host permission flags: a typed |
| 544 | MMIO lease/span and engine-specific core effects are absent from this pin. Completion semaphore |
| 545 | progress alone is not cache/engine completion: the vendor WFI/membar sequence is a separate required |
| 546 | effect boundary, not supplied by a CPU fence or inferred from an observed semaphore value. |
| 547 | |
| 548 | The current compiler profile is Linux-process ELF/VFIO, not Linux kernel code. A Linux-hosted `.om` |
| 549 | user-space driver could replace NVIDIA modules while retaining Linux VFIO/IOMMU services; that is not |
| 550 | an Omega kernel module or a replacement for Linux. This pin does not provide kernel calling/trap ABI, |
| 551 | relocation/link profile, kernel-owned allocation/resource spans, ordered DMA/MMIO or IRQ/workqueue |
| 552 | lifecycle. The proposed typed kernel effects are a separate pending compiler extension, not an |
| 553 | implemented trust path. Actual device identity, coherent DMA ownership, firmware authentication, |
| 554 | hardware boot/RPC, engine reset/halt, interrupt handling and documented global idle/recovery still |
| 555 | require implementation/qualification at those boundaries. No C/Rust runtime substitute is adopted. |
| 556 | |
| 557 | ## On the GB10 (authorized exclusive window only) |
| 558 | |
| 559 | `window/README.md` is the procedure: W0 read-only checks, W1 reboot with nvidia.ko held back, W2 bind to |
| 560 | `vfio-pci`, W3 `build/w0 000f:01:00.0 20`, W7 release, then R restores nvidia.ko and the resident 35B. |
| 561 | `tests/window_sim.sh` runs those scripts unchanged against a simulated machine, and |
| 562 | `tests/mutants-window.sh` checks that it catches each removed safety step. None of it has run on the GB10. |
| 563 | |
| 564 | Expected from W3: config vendor/device 0x2e1210de (lspci reports [10de:2e12]) and matching map and pread |
| 565 | values. The BOOT_0 architecture field (bits 28:24) is defined at nv_ref.h:129-136 (GB100 0x1A, GB200 |
| 566 | 0x1B); which value the GB10 reports is what this run measures, not something this repo asserts. |
| 567 | |
| 568 | ## Human-Directed Agentic Engineering |
| 569 | |
| 570 | 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. |
| 571 | |
| 572 | 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)](https://doi.org/10.5281/zenodo.23682548). This does not change the QEMU-only status or authorize any device action. |
| 573 | |
| 574 | ## Unified memory page tables (2026-11-05) |
| 575 | |
| 576 | `uvm/` is a host page-table builder for the Blackwell VER3 format. It is HOST_EXERCISED. It is not a |
| 577 | replacement for `chan/gmmu.om`, it has no device words, and it does not open `/dev/nvidia*`. Nothing |
| 578 | in this section has run on GB10 hardware. Chip qualification is **NOT_RUN**. |
| 579 | |
| 580 | Host gate, cores 10-14: |
| 581 | |
| 582 | taskset -c 10-14 nice -n 10 sh tests/uvm_diff.sh |
| 583 | taskset -c 10-14 nice -n 10 sh tests/mutants-uvm.sh |
| 584 | |
| 585 | The first command compiles with the assignment pin `omega-mv` `e5b32567`, omc sha256 |
| 586 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`, and checks the trace with |
| 587 | `tests/uvm_check.py`. That checker does not call the Omega binary. It walks the dumped qwords, |
| 588 | rebuilds each 32-byte fault packet, and recomputes every status. Observed 2026-11-05: exit 0, |
| 589 | `uvm_check: PASS (503 lines, independent walk)`. The second command requires that baseline, refuses |
| 590 | one flipped dump nibble, and kills five compiling mutants (PTE aperture shift, alignment guard, |
| 591 | mapped-page overlap, non-replayable fault, reservation overlap). Observed 2026-11-05: exit 0, |
| 592 | `mutants-uvm: PASS (baseline green, gate killed, 5 mutants killed)`. |
| 593 | |
| 594 | This gate does not use `tools/omc.pin`. That pin is the VFIO compiler. These units do not call |
| 595 | `vfioctl` or `vfiomap`. |
| 596 | |
| 597 | Chip runbook: there is no command in this unit that may be pointed at the GPU. A later exclusive |
| 598 | window can compare a 32-byte instance fault-buffer entry with `tests/uvm_check.py`'s decode only |
| 599 | after omega-gpu-driver has a qualified page-table install path. That comparison is **NOT_RUN**. |
| 600 | Do not open `/dev/nvidia*`, do not take `/tmp/aien-gb10.lock`, and do not treat the host PASS as |
| 601 | qualification. The exact missing gate is Drake's exclusive window plus a qualified instance MMU |
| 602 | install path. See `DESIGN.md` section 5. |
| 603 | |
| 604 | ## Licence |
| 605 | |
| 606 | Apache-2.0; see `LICENSE`. `NOTICE` credits NVIDIA open-gpu-kernel-modules 580.173.02 (MIT), from which |
| 607 | register offsets, structure layouts and constants are cited. Any part that becomes in-kernel Linux |
| 608 | code would be `MIT OR GPL-2.0-only` instead. |