aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / docs / campaigns / B7B-PHYSICAL-BOOT-PREP.md
| 1 | # B7B-PHYSICAL-BOOT-PREP: the attended B7b hardware boot, on paper only |
| 2 | |
| 3 | Status: PREPARATION DOCUMENT (updated 2026-10-28). **Physical NOT_RUN. Nothing here authorizes staging or booting.** |
| 4 | Host/QEMU qualification and candidate-only builds do not qualify Spark hardware. The fixture-provisioned full |
| 5 | candidate is NOT boot-admissible; no approved Spark owner material is available. This lane performs no ESP or media writes. |
| 6 | |
| 7 | Owner issue: aien-dev/aienux#286 (native GB10, cut B7b). Authority: Drake's ruling of 2026-10-10 (aien-architecture#190, |
| 8 | item 5) authorizes B7b *preparation*, not a boot; the boot needs "a first operator-confirmed, two-hour attended window |
| 9 | after the recovery media, rollback, trust and preflight checks pass" (`docs/GB10_IORT_DECODE.md` section 10). |
| 10 | Related, read first: `docs/native/PREFLIGHT-AND-RECOVERY.md`, `docs/NATIVE_BOOT_ONE_TIME.md`, |
| 11 | `docs/NATIVE_BOOT_ROLLBACK_CONTRACT.md`, `docs/RECOVERY_MEDIA_MACHINE1.md`. |
| 12 | |
| 13 | ## 1. What B7b is, and what is already built |
| 14 | |
| 15 | Goal: boot an explicitly admitted probe once, enable SMMUv3 B at the IORT-selected address (expected 0x13000000), |
| 16 | confine segment 15 requester 0x100 to one allocated page **plus that stream's accepted IORT RMR identity ranges**, |
| 17 | read IDR0/IDR1, release the stream back to abort, and collect SMMU events before the final report. The probe never |
| 18 | hands its page to the GPU and starts no GPU DMA. A full image also runs its ordinary device/security/Store/input |
| 19 | stages; "no GPU DMA" does not mean "no other device I/O". A core-only probe excludes those stages. |
| 20 | |
| 21 | Built and tested without hardware (PR #302, squash `863bef83`, issue #286 comment): |
| 22 | |
| 23 | - Probe image: `make [full] CK_B7B_PROBE=1` (output directory `target/native-kernel-b7b-probe`, allowed with |
| 24 | `CK_HARDWARE_STAGING`); code in `native/kernel/core/smmu_svc.c` (`ck_b7b_probe`). Default images are unchanged and |
| 25 | the link refuses a default image that carries the probe. |
| 26 | - QEMU gate: `scripts/qemu_ck_b7b_probe_test.sh`. Default mode: the Spark-target image refuses fail-closed on QEMU |
| 27 | (route none, `rc=-3 nostream`, nothing confined). `--positive`: TEST-ONLY segment-0 image confines one page, reads |
| 28 | IDR0/IDR1, unconfines. `--events` uses a disposable QEMU NVMe negative-DMA oracle and all-SID decoded readout. |
| 29 | `--self-test` includes missing/wrong-SID/wrong-address event, overflow and pending negative controls plus flag refusals. |
| 30 | - Expected Spark output: `docs/GB10_IORT_DECODE.md` section 10, labelled *expected, not observed*. |
| 31 | - New opt-in build: `make [full] CK_B7B_PROBE=1 CK_B7B_EVENT_READOUT=1`, separate |
| 32 | `target/native-kernel-b7b-events` output. `ck_b7b_event_readout` runs before the final report. It enumerates all |
| 33 | instance slots and consumes at most one queue capacity per live instance; no unbounded wait on a producer. |
| 34 | The host observer test covers all SIDs, full/wrapped queues, overflow acknowledgement, later-arriving events, |
| 35 | and raw-word retention; the host DROP_EVENT mutant must fail that same test. |
| 36 | |
| 37 | Built 2026-10-12 (native v1 package P02): the probe variant of the one-time staging script, |
| 38 | `scripts/stage_one_time_boot_ck_b7b.sh` (`--dry-run` / `--apply`, same shape as `_full.sh`). It builds the probe |
| 39 | hardware staging image twice and refuses on a digest mismatch, checks the image carries the segment-15 probe and no |
| 40 | TEST marker, and stages it as `\EFI\AIENOS\aienos-ck-b7b.efi` with a `STAGED-CK-B7B.TXT` record. Its dry run was |
| 41 | executed on the Spark on 2026-10-12 (read-only; it stopped on four preflight items, among them the recovery stick not |
| 42 | being inserted), and two builds of the image at commit `51c05da` with the labelled TEST-FIXTURE owner files (a build |
| 43 | check only, never a boot) gave one digest. This is historical preparation, not today's G7 or staging authority. |
| 44 | |
| 45 | ## 2. People and things required (all physical, all Drake's) |
| 46 | |
| 47 | | need | detail | |
| 48 | |---|---| |
| 49 | | Drake present for the whole window | at the machine, display and keyboard attached; a fresh go-ahead for this boot, given in this window (a past approval does not carry over) | |
| 50 | | Window | two hours, written down in advance with start time; nothing else uses the machine in it | |
| 51 | | Recovery stick | existing `AIENOSRECOV`, current firmware **Boot0002**, PARTUUID `f227357c-1e80-4fd0-a55e-2efbef1dd25c`; serial `5D0344B4`; read-only for this lane; parent alone owns any newly authorized backup/reuse/restore | |
| 52 | | Camera and witnesses | camera on screen for whole boot; primary native xHCI/USB keyboard plus independent RTL8127 UDP boot-report witness on iMac/MacBook (neither may be silently dropped) | |
| 53 | | Witness | a second person (or Drake plus a time-stamped recording) who reads the screen aloud and keeps the clock | |
| 54 | | Notes | paper or a laptop for times and the exact words on screen | |
| 55 | | Prerequisite 0: owner provisioning | completed Drake-provided `CK_OWNER_PUBKEYS` + `CK_MACHINE_ID` ceremony before full staging; currently NOT DONE; never generate a substitute or reuse another machine's key | |
| 56 | | Candidate medium | separate blank medium preferred; Drake subsequently approved parent-owned backup then reuse of the recovery stick, conditional on verified backup and an executable recovery restore path; this lane never writes it | |
| 57 | |
| 58 | The October 28 parent inspection found the existing recovery stick in the Spark, with shim/GRUB, recovery |
| 59 | kernel/initrd, `capture-attended.sh`, and `aienos-evidence/attended-recovery-machine1.txt`. The parent read that file: |
| 60 | 2026-09-25T00:26:25Z, BootCurrent was this stick (then Boot0004), NVMe root/ESP mounted read-only, |
| 61 | `RECOVERY_BOOT_GATE: PASS`. This is historical physical recovery proof, not a recovery boot today. Recheck medium |
| 62 | identity before GO. Current Boot0002 and historical Boot0004 are the same PARTUUID; never rewrite it to match a number. |
| 63 | |
| 64 | Later October 28 authorization correction, relayed by the parent: Drake approved backing up this stick and then |
| 65 | reusing it. **The parent owns every `/dev/sda` action**, including backup, verification, writing and restoration; |
| 66 | this lane remains read-only. Before reuse/GO, retain a byte-exact backup with digest, partition metadata and the |
| 67 | on-stick recovery evidence, and prove a restoration route on another available machine if Spark fails to boot. |
| 68 | A backup stored only on an unbootable Spark is not a usable recovery route. While the stick contains a candidate, |
| 69 | Boot0002 does not magically remain a recovery environment: restore the verified recovery bytes before using it as |
| 70 | recovery. Recheck its restored identity/hash and historical evidence before another boot window. |
| 71 | |
| 72 | The full-image build parser (`native/kernel/tools/ck_owner_gen.c`, matching the existing native/m5 owner boundary) |
| 73 | accepts text lines `name hex`, blank lines and `#` comments. Public-key file: exactly |
| 74 | `owner_root_ed25519 <64 hex digits>`. Identity file: exactly `machine_id <64 hex digits>` and |
| 75 | `store_uuid <32 hex digits>`. Duplicate/unknown names, malformed lengths, all-equal placeholders and known TEST |
| 76 | values are refused. These are public identity inputs, not K_vol or private signing keys. Labelled |
| 77 | `native/kernel/tests/fixtures/owner/` inputs prove build mechanics only and MUST NOT be staged. |
| 78 | |
| 79 | ## 3. Recovery preflight: read-only checklist |
| 80 | |
| 81 | Run on the Spark in Linux, as the normal user, before the window opens. **Every command below only reads or builds |
| 82 | into `target/`.** None needs sudo, none writes a boot variable, stages, mounts read-write or reboots. Stop at the first |
| 83 | failure. |
| 84 | |
| 85 | | step | command | PASS looks like | |
| 86 | |---|---|---| |
| 87 | | P1 | `git -C <checkout> status --porcelain` | prints nothing (clean tree) | |
| 88 | | P2 | `git -C <checkout> rev-parse HEAD` | the commit the probe image is built from; write it down | |
| 89 | | P3 | `quietlock check` | clear (no other session holds the machine quiet) | |
| 90 | | P4 | `efibootmgr` (no arguments) | `Boot0002 AIENOSRECOV` matches the recovery PARTUUID; `BootCurrent: 0001`; `BootOrder` and no `BootNext` match the captured current Linux baseline (do not assume an old BootOrder) | |
| 91 | | P5 | `lsblk -f` and parent-approved read-only identification | exact recovery identity above and internal root/ESP match; if parent reuses recovery medium, verified backup and independent-machine restore route are recorded before any write | |
| 92 | | P6 | `bash scripts/verify_recovery_tools.sh` | `PASS` (static check of the recovery initrd; `NOT_RUN` is not a pass) | |
| 93 | | P7 | `bash scripts/qemu_verify_recovery_media.sh` | the recovery environment boots in QEMU with zero hard disks | |
| 94 | | P8 | `bash scripts/qemu_ck_rollback_test.sh` and `bash scripts/qemu_native_rollback_test.sh` | the rollback gates pass for this commit | |
| 95 | | P9 | `bash scripts/qemu_ck_b7b_probe_test.sh --self-test`, no flag, `--positive`, then `--events` | all corresponding verdicts PASS, exact real negative SID/address decoded, final queue readout before report | |
| 96 | | P10 | `bash scripts/ck_repro_build.sh full` (builds twice, compares); the probe staging image is built twice by the stage script itself (P12 shows the commands, `--apply` runs them and STOPs on a digest mismatch; `ck_repro_build.sh` does not build staging images, verified 2026-10-12 by reading it) | two equal digests for the default full image; the probe image digest is written down from the stage script output | |
| 97 | | P11 | `bash scripts/native_boot_preflight.sh --image <probe image .efi> --expect-sha256 <digest from P10>` | last line `NATIVE_PREFLIGHT: READY`; the `ASK` lines are Drake's and are answered in person | |
| 98 | | P12 | `AIENOS_OWNER_PUBKEYS=<file> AIENOS_MACHINE_ID=<file> bash scripts/stage_one_time_boot_ck_b7b.sh --dry-run` | prints every command, touches nothing, ends "Pre-flight clean"; Drake reads it | |
| 99 | | P13 | reconcile the stick's `aienos-evidence/attended-recovery-machine1.txt` with its exact identity and an earlier attended physical recovery boot | Drake confirms physical recovery proof; mere file presence, QEMU boot, or firmware entry is insufficient | |
| 100 | |
| 101 | Secure Boot is recorded, never changed. As of 2026-10-01 it is OFF for development by owner decision |
| 102 | (`docs/native/PREFLIGHT-AND-RECOVERY.md` item 3); `native_boot_preflight.sh` records the state and stops if it is ON. |
| 103 | Whether the physical-boot block described in `docs/NATIVE_BOOT_ONE_TIME.md` section 1 (trust chain) still applies is |
| 104 | UNVERIFIED here and is part of Drake's go/no-go. |
| 105 | |
| 106 | ## 4. Go / no-go |
| 107 | |
| 108 | **GO requires all of these, decided by Drake at the start of the window:** |
| 109 | |
| 110 | - G1 P1 to P12 passed within the last 24 hours on the commit being staged, outputs saved. |
| 111 | - G2 P13: a recovery-stick evidence record exists and Drake saw the stick boot. |
| 112 | - G3 Drake, camera and witness are present; the window is open; no other job needs the machine. |
| 113 | - G4 The image digest printed by the stage script equals the digest from P10 (and later the digest the kernel prints |
| 114 | on screen). |
| 115 | - G5 `BootNext` unset, `BootOrder` unchanged (P4), Linux is the running system. |
| 116 | - G6 Everyone can state the abort rule (section 7) from memory. |
| 117 | - G7 The media procedure `docs/campaigns/SPARK-BOOT-INPUT-20261028.md` is integrated and reviewed with Drake. |
| 118 | Either a separate identified medium is supplied, or the parent has completed the specifically authorized |
| 119 | recovery-backup/reuse prerequisite above. Only the parent acts on that medium. The legacy ESP staging script's |
| 120 | `--apply` still requires separate explicit ESP authorization and is not the current route. |
| 121 | Incomplete owner ceremony or composed keyboard/network witness image keeps this campaign NO-GO. |
| 122 | - G8 Drake says "go" out loud in the window, and the witness writes the time. |
| 123 | - G9 The exact admitted candidate includes both native confined xHCI/USB keyboard and RTL8127 UDP report witness. |
| 124 | The standalone core-only SMMU artifact does not include either and cannot satisfy this combined physical campaign. |
| 125 | |
| 126 | **NO-GO (any one):** any preflight STOP line; a dirty tree; the stick missing; an unexpected `BootNext`; a digest |
| 127 | mismatch; anyone unsure; less than the full window left; an open question about the SMMU B side effect (section 8) |
| 128 | that Drake wants answered first. |
| 129 | |
| 130 | ## 5. Boot steps (only after GO; Drake or the witness reads each step aloud) |
| 131 | |
| 132 | 1. Start camera, witness receiver and notes; write exact source revision, candidate digest and medium identity. |
| 133 | Follow section 7's separately authorized incumbent stop procedure. Do not proceed while 18091 remains live or |
| 134 | without a verified restoration recipe. |
| 135 | 2. Capture the before state with `sudo scripts/verify_native_rollback.sh --capture-pre evidence/pre_boot_capture.json` |
| 136 | only with the window's explicit authorization; preserve existing BootOrder/BootNext/Secure Boot and ESP. |
| 137 | 3. Use the separately reviewed medium-identification/image-writing procedure in |
| 138 | `docs/campaigns/SPARK-BOOT-INPUT-20261028.md`. Parent alone may write the exact authorized candidate medium, |
| 139 | including recovery-stick reuse only after the verified backup/independent restore prerequisite. No internal ESP write. |
| 140 | Verify the exact candidate hash after packaging. Full TEST-FIXTURE image is never eligible. |
| 141 | 4. Drake selects that candidate through the firmware's attended one-time boot menu and starts the clock. |
| 142 | Do not use ALLEN.EFI or Boot0000. No automatic reboot or persistent boot-order edit is part of this route. |
| 143 | 5. Expected SMMU lines (expected, not observed): `kernel: alive`; `b7b_probe: start segment=15 rid=0x100 ...`; |
| 144 | IORT route instance/base/SID; every `b7b_rmr:` interval; one-page confinement; IDR0/IDR1; successful unconfine; |
| 145 | `AIENOS_B7B_PROBE: CONFINED_AND_RELEASED`. Photograph **all** SIDs in every `b7b_event:` line, then each live |
| 146 | queue's `events`, `overflow`, `pending`, and all `not-live`/`failed` slots between final begin/end. |
| 147 | GB10 and HDA0 records must be attributed by the actual IORT stream map, not guessed from neighboring IDs. |
| 148 | 6. Confirm readout precedes `report_kind: final`; record native keyboard evidence and independent UDP witness. |
| 149 | A queue with overflow/pending or a missing witness is incomplete, never a physical PASS. The console hold |
| 150 | (`CK_FB_HOLD_S=120`) then reset is expected, not physically verified; no further event observation is promised |
| 151 | during the hold. If the firmware does not return to Linux, use section 7 recovery. |
| 152 | 7. Back in Linux, capture post state and run `verify_native_rollback.sh --pre ... --post ... --verify` on the exact |
| 153 | saved pair. Restore and verify the incumbent 18091 answer service by section 7. Preserve the candidate/recovery |
| 154 | media and all evidence; no second attempt without fresh authority. |
| 155 | |
| 156 | ## 6. Observation points |
| 157 | |
| 158 | | when | what to read | meaning | |
| 159 | |---|---|---| |
| 160 | | after the reboot, before any AIENOS text | firmware messages | `Secure Boot Violation` means the image was refused: a STOP condition, do not bypass; the machine falls back to Linux | |
| 161 | | `kernel: alive` | banner, memory map | the probe image started; the probe runs only after this line | |
| 162 | | `route ...` line | instance, base, stream | must read instance 1, base 0x13000000, stream 0x100. Anything else is a finding about the IORT decode (`GB10_IORT_DECODE.md` section 3), not a reason to retry | |
| 163 | | IDR0/IDR1 line | two register values | record verbatim; SIDSIZE must cover 0x100 | |
| 164 | | summary line | `CONFINED_AND_RELEASED`, `REFUSED` or `FAIL` | any other summary is a finding: `REFUSED` names a reason (`nostream`, `failed`), `FAIL` means unconfine failed or no live instance matched | |
| 165 | | after the summary | any extra line, panic, freeze, blank screen | write the time and the exact words | |
| 166 | |
| 167 | ## 7. Abort and rollback |
| 168 | |
| 169 | - **Abort rule.** If the screen shows a panic, shows nothing new for 60 seconds, or anyone says "stop": touch nothing |
| 170 | until the 60 seconds are over, then hold the chassis power button until the machine is off, wait ten seconds, press |
| 171 | it again. The one-time menu choice must not change captured BootOrder; normal fallback is Linux (`0001`). |
| 172 | - **If Linux does not come up:** use the firmware one-time menu for `AIENOSRECOV` (current historical entry |
| 173 | **Boot0002**, verify recovery PARTUUID), but only if its recovery contents are present. If the parent reused it, |
| 174 | the parent first restores its verified recovery backup using the pre-arranged independent-machine route. |
| 175 | Then mount internal root/ESP **read-only** and run the collector in `docs/RECOVERY_MEDIA_MACHINE1.md`. |
| 176 | - **Repair** (removing `\EFI\AIENOS`, touching `BootOrder`) needs a new, separate go-ahead from Drake at that moment. |
| 177 | - **Never**: change Secure Boot, change firmware settings, run `--apply` a second time, retry a failed probe in the |
| 178 | same window without a fresh go, or "fix" anything on the machine during the window. |
| 179 | - Rehearsed so far only in QEMU (`scripts/qemu_ck_rollback_test.sh`, gate M0_ROLLBACK); not on the Spark. |
| 180 | |
| 181 | ### Resident model stop and exact restore (operator-only, separate approval) |
| 182 | |
| 183 | Stopping the service is NOT authorized by this document. Before opening a physical boot window the parent must |
| 184 | obtain Drake's explicit approval to stop/restore the live 18091 model and capture its *current* command, executable |
| 185 | hash and non-secret runtime settings. On October 28 the read-only snapshot was PID 16911, |
| 186 | `bin-19173f9e/aien-serve-http`, 8 slots, context 49152, stroke 1. PIDs are not stable; never signal that recorded PID |
| 187 | without identifying the current listener and executable again. Do not dump the entire process environment into |
| 188 | receipts: it may contain credentials. |
| 189 | |
| 190 | 1. Save `curl -fsS http://127.0.0.1:18091/v1/models`, `ss -ltnp 'sport = :18091'`, |
| 191 | `readlink /proc/<confirmed-pid>/exe`, and `sha256sum /proc/<confirmed-pid>/exe` in the private window evidence. |
| 192 | Confirm with the coordinator that no other process owns the GPU window. Record any supervising unit and its |
| 193 | restart policy; if supervised, use that unit's approved stop/restore instead of fighting an automatic restart. |
| 194 | 2. After the exact stop authorization and quietlock/spark-window approval: `kill -TERM <confirmed-pid>`. |
| 195 | Wait for process exit; verify the listener is gone and no model GPU process remains using read-only telemetry. |
| 196 | If shutdown does not finish, STOP: no unapproved SIGKILL, reset, driver unload or VFIO operation. |
| 197 | 3. Proceed with the approved one-time boot. If staging/preflight fails before reboot, restore immediately by the |
| 198 | same recipe; do not leave the incumbent stopped while investigating. |
| 199 | 4. After Linux returns and rollback checks pass, the coordinator restores the captured incumbent. For the recorded |
| 200 | October 28 baseline, the exact non-default settings are: |
| 201 | |
| 202 | ```sh |
| 203 | Q36_BATCH_BIN=bin-19173f9e Q36_BATCH_SLOTS=8 Q36_MAX_CONTEXT=49152 \ |
| 204 | AIEN_Q36_STROKE=1 AIEN_SERVE_GPU_LOCK=/tmp/aien-serve-18091.lock \ |
| 205 | /home/drakestapleton/.local/state/aien-q36/start-35b-batch.sh |
| 206 | ``` |
| 207 | |
| 208 | Re-capture before the window: if the incumbent changed, use its newly recorded recipe, not this historical one. |
| 209 | The launcher's default binary/stroke differ, so invoking it without these settings is not an exact restore. |
| 210 | 5. Verify the restored executable hash, listener, `/v1/models`, and one real `/v1/chat/completions` answer with the |
| 211 | captured model id. Record observed status/output without inventing expected wording. A model-list response alone |
| 212 | does not prove answer service restoration. Close the operator window only after restoration or an explicit |
| 213 | operator-directed recovery handoff. |
| 214 | |
| 215 | Undo: restore only the captured incumbent settings and approved staging backup. For authorized recovery-stick |
| 216 | reuse, the parent alone restores and verifies its byte-exact recovery backup; this lane never writes the stick. |
| 217 | Never delete CORE.EFI, boot ALLEN.EFI/Boot0000, or change BootOrder/Secure Boot. Removing a newly created boot |
| 218 | entry or staged file is a distinct write requiring Drake's approval; preserve before/after receipts. |
| 219 | |
| 220 | ## 8. Known unknowns (carried from #302) |
| 221 | |
| 222 | - UNKNOWN whether GB10 or HDA0 attempts DMA while no OS drives it. `CK_B7B_EVENT_READOUT=1` prints every event |
| 223 | consumed by `ck_dma_faults` during stages and a final bounded drain of **every already-live** SMMU instance, |
| 224 | regardless of SID. It does not enable unused SMMUs just to read them. Each record includes instance/base, |
| 225 | SID, architectural type/name, word-2 address and all four raw words. Unknown types remain UNKNOWN with raw data. |
| 226 | Each final queue summary reports overflow and whether records remain pending; an inactive instance says |
| 227 | `not-live`, not "zero faults". Overflow/pending means incomplete observations. No-event output is not evidence |
| 228 | that a device tried DMA, that a GPU path is confined, or that cache visibility is correct. |
| 229 | - This readout consumes/acknowledges events and is probe-only. It runs before the final report, **not continuously |
| 230 | during the framebuffer hold**. Events arriving later can be missed. The architectural abort policy can suppress |
| 231 | event reporting for some traffic; absence of a record must never be promoted to absence of traffic. |
| 232 | - Every accepted RMR range is printed separately when installed. The permitted set is the explicit window UNION |
| 233 | those ranges while the stream translates; after release its STE aborts. An RMR address is not a valid |
| 234 | "out-of-window must fault" negative target. An address in word 2 is interpreted as an input address only for |
| 235 | address-bearing translation/access/permission classes; retain raw words for other classes. |
| 236 | - UNVERIFIED that the Spark's real IORT routes segment 15 rid 0x100 to instance 1; this is the expectation from |
| 237 | decoded tables (`GB10_IORT_DECODE.md` sections 3 and 9), and the first thing the window tests. |
| 238 | - UNVERIFIED hold time and reset behavior of the probe image on the real console. |
| 239 | |
| 240 | ## 9. Evidence to collect |
| 241 | |
| 242 | Camera recording of the whole boot; the witness's time-stamped notes; photographs of the summary screen; the stage |
| 243 | script output; `pre_boot_capture.json`, `post_boot_capture.json` and the verifier verdict; the preflight outputs P1 to |
| 244 | P12 saved with the commit and digests; `efibootmgr` output before and after; and a short result note that quotes the |
| 245 | summary line verbatim and lists every deviation from section 6. The result is posted on aienos#286 as observed facts |
| 246 | with limits; a physical PASS is claimed only for what was seen. |
| 247 | |
| 248 | ## 10. Statement of non-execution |
| 249 | |
| 250 | This page is preparation, not authorization. October 28 receipts under |
| 251 | `/home/drakestapleton/handoffs/spark-five-20261028/QualSmmu/` record host/QEMU runs and candidate-only builds. |
| 252 | The full fixture-provisioned artifact is NOT boot-admissible. Physical boot, actual GB10/HDA0 fault observation, |
| 253 | GPU traffic/visibility and combined USB/network input witnesses are NOT_RUN. No ESP, USB or boot-entry writes, |
| 254 | model stop, firmware operation or GPU effect is authorized or performed by this lane. |
| 255 | |
| 256 | ## 11. First GPU-traffic confinement experiment (DESIGNED, not implemented or authorized) |
| 257 | |
| 258 | The no-DMA B7B probe is not this experiment. QEMU's NVMe DMA oracle proves SMMU event plumbing only, not GB10 |
| 259 | stream routing, GPU execution, GPU GMMU behavior, cache visibility, or fault recovery. |
| 260 | |
| 261 | Required native capability from path 2: a composed **native Aienux** GPU submission endpoint, bound to kernel-owned |
| 262 | typed DMA-window/MMIO/IRQ capabilities, that (a) maps a supplied IOVA into GPU VA, (b) issues a bounded GPU-initiated |
| 263 | store, (c) performs the target-correct engine/system visibility operation and writes a GPU-uncached completion, |
| 264 | and (d) proves global device quiescence before bus-master revoke/SMMU release. GPU fault/status collection must |
| 265 | distinguish a GPU GMMU rejection from an SMMU rejection. There is no such endpoint in `omega-gpu-driver` |
| 266 | `b1c8e6ea76da81dc47b57670304bf256b0ba9818`: `build.sh` emits Linux/VFIO `w0`/`fwprep`, not a native kernel |
| 267 | artifact; `gsp/dispatch.om` refuses hardware sequencer effects; `chan/dma.om` owns VFIO mappings, not native SMMU |
| 268 | authority. Path 2's draft [omega-gpu-driver#6](https://github.com/aien-dev/omega-gpu-driver/pull/6), |
| 269 | `95383da4789556c9ca09befb9c6ab788e4e25d79`, `GB20B.md` ("Composed launcher and native effect seam"), |
| 270 | explicitly leaves native submit/fence/completion/quiesce absent. Its GB20B SEC2/BOOT/RPC host implementation alone |
| 271 | does not supply this capability. A native adapter and composed submit artifact are missing prerequisites, not |
| 272 | permission to substitute a CPU store or Linux/VFIO. |
| 273 | |
| 274 | Proposed sequence, only after that native endpoint is implemented and independently exercised: |
| 275 | |
| 276 | 1. With the exact chip profile, firmware provenance, cold/warm state, operator window and recovery admitted, |
| 277 | allocate one native DMA arena W containing all GPU-accessible queue descriptors, GPU page tables, command bytes, |
| 278 | payload and a GPU-uncached completion. Record the complete interval and every accepted IORT RMR exception. |
| 279 | Confine the IORT-routed GPU SID on its actual SMMU to W UNION RMR; all other streams stay abort. Do not claim |
| 280 | "one page" if the submitted command's own dependencies require more. No global/bypass mapping. |
| 281 | 2. Allocate a CPU-visible canary page C outside W and outside **every** accepted RMR; prove interval disjointness |
| 282 | with checked interval operations and log actual addresses. Initialize input/output/completion/canary on CPU, |
| 283 | perform the native publication boundary, and drain all older events as a separately labelled baseline. |
| 284 | 3. Positive: submit a GPU command storing a unique recorded value inside W. After the specified system visibility |
| 285 | boundary, observe the uncached completion and exact CPU-visible payload; collect all SMMU/GPU faults. Require |
| 286 | the expected bytes and no new target-SID fault. CPU writes and simulator stores cannot satisfy this condition. |
| 287 | 4. Negative: map a GPU VA to the **ungranted IOVA C** in the GPU's own GMMU (GPU page tables stay inside W), then |
| 288 | request a GPU-initiated write there. If native GPU mapping authority refuses that mapping, record its refusal: |
| 289 | that is NOT an exercised SMMU fault. Otherwise require an SMMU F_TRANSLATION for the actual GPU SID and C, |
| 290 | intact CPU canary, and the documented device fault/recovery state. An unrelated SID/event is not acceptance. |
| 291 | Never require completion from an operation whose DMA was deliberately aborted; use bounded fault observation. |
| 292 | 5. If fault containment/global idle is uncertain, quarantine all backing and STOP; do not free/reuse pages or |
| 293 | retry. After verified device quiescence, revoke bus mastering, install abort and invalidate, checking the return |
| 294 | code. On failed release retain the confinement slot/backing (base fix `832bcbd9`), never pretend release succeeded. |
| 295 | 6. Recovery inside W is a distinct accepted submission after the documented target-specific reset/recovery path, |
| 296 | requiring fresh data, completion and event observations. Reset/recovery itself needs separate exact approval; |
| 297 | this document does not authorize one. Report transfer, visibility, confinement and recovery separately. |
| 298 | |
| 299 | Visibility authority: NVIDIA open 580.173.02 `nvos.h`, `NVOS32_ATTR2_GPU_CACHEABLE_YES`, says system-memory GPU |
| 300 | caching "will not be coherent with direct CPU mappings". Unified physical RAM does not remove the engine/cache |
| 301 | fence requirement. DOCS SILENT here on an admitted native GB20B engine fence/quiesce endpoint; path 2 must implement |
| 302 | and qualify it before step 3. Current physical GPU traffic, completion visibility and SMMU negative control: NOT_RUN. |