interplane.Get Omega
Read in your language

omega-gpu-driver

aien-dev/omega-gpu-driver

Brought by drakestapleton

GitHub aien-dev/omega-gpu-driver#6 (code only)

closed derived eadd2b2cacca156a #6

Imported from GitHub aien-dev/omega-gpu-driver#6 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 2ee165dc0818b750ebf25c6c38855f80624d3413 · Head e5a16819f7b9e33a7927c8e02af8f230ae23e6ea

drakestapleton reviewed (COMMENTED) on 2026-10-30 13:12 UTC

Triage at 95383da: blocked.

  • Draft and stacking. This is a draft stacked on #4 (feat/gsp-boot-rpc), which is stacked on #3. All three are drafts.
  • CI. No check runs on this head, so the host results are author-reported.
  • Correctness fix. This corrects the GB10B MCTP word to 1 and adds a GB20B COTv2 host candidate. Please cite the vendor source for the corrected constant in the PR body, because a shared oracle can't arbitrate a fix it shared the bug with.
  • Hardware. Physical boot is NOT_RUN, and nothing ran on the Spark for this review.

— Grokbot

Fetch it

A git bundle of the pull request's head, 39454 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-gpu-driver/patches/eadd2b2cacca156a.bundle -o eadd2b2cacca156a.bundle
git fetch eadd2b2cacca156a.bundle refs/pull/6/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-gpu-driver
6
e5a16819f7b9e33a7927c8e02af8f230ae23e6ea
{"kind":"github-import","owner":"aien-dev","repo":"omega-gpu-driver","number":6,"url":"https://github.com/aien-dev/omega-gpu-driver/pull/6","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:49Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 699f95b..34504f8 100644
--- a/.crumb
+++ b/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-11-05T23:00:57Z",
+      "compiled_at": "2026-11-05T23:01:30Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:ba03ca288ec0ed7102329b5e51a21c782ecb25f1ee50638c1c85c1e27d837673",
+      "digest": "sha256:2a4efc0233580f98a0ea4ecb22574ba89f144bd28efa8167bfdd505bcc65a6d2",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 113,
-      "generated_at_commit": "b4d4c2a9c1fa9e5934ce67982e5bca2eed1844f9",
-      "source_tree": "sha256:e7ca5f38c2e76d7b6ce97836bb4b4625cba449323fe073be765b928aad594a89"
+      "files": 120,
+      "generated_at_commit": "c4fdcff58c898c95c6e4362aed2cc1183982b828",
+      "source_tree": "sha256:67e95dff45950645766be6f8632f1778bda40d9506398756e29dc785ada32982"
     }
   },
   "layer": "driver",
diff --git a/GB20B.md b/GB20B.md
new file mode 100644
index 0000000..f135657
--- /dev/null
+++ b/GB20B.md
@@ -0,0 +1,137 @@
+# GB20B source-selected SEC2 candidate
+
+Status: IMPLEMENTED, host simulator EXERCISED only. Physical W0, firmware boot, RPC,
+resources, queues and compute on the Spark remain NOT_RUN in this qualification.
+No merge, deployment, service stop, VFIO bind/open, reset or BAR access is authorized here.
+
+## Authorities and deliberate oracle correction
+
+NVIDIA open-gpu-kernel-modules tag 580.173.02, exact revision
+`20e4e6e19cc26ba47b5cbe23130a396be100c427`, is the vendor authority. The physics
+third_party copy is pruned; qualification used an unmodified full checkout of that revision.
+`src/nvidia/generated/g_kernel_sec2_nvoc.c:674-804` selects different preparation,
+MCTP-header and send/receive HALs for GB10B and GB20B. It shares the low-level command
+queue send implementation. The generated GSP HAL selects GB20B boot and production
+FMC archives at `g_kernel_gsp_nvoc.c:792-795,928-930`; WPR metadata remains GB10B's
+implementation at lines 986-989. Do not substitute the GB10B archives.
+
+The C reference moved deliberately from aienux `c5bb3a4b9898257658aba0b7178a3c73a0371c27`
+to #463 `a108b1144a064aa7b824374a622d627c6ba91fd1`. Both the former C reference and
+Omega encoded GB10B MCTP SOM|EOM as 0xc0000000. The vendor GB10B HAL
+`ksec2CreateMctpHeader_539ab4` actually returns 1. The corrected C arena and simulator
+are the independent oracle; arena and RPC gates pin the same complete reference revision.
+`mutants-arena.sh` reinstates the old value and requires an exact-byte parity failure.
+This is an oracle correction, not evidence the previous common-mode comparison was correct.
+
+## Distinct profile, not a relaxed GB10 gate
+
+| Property | GB10B | GB20B |
+|---|---|---|
+| BOOT_42 architecture / implementation | 0x1a / 0xb | 0x1b / 0xb |
+| signed ELF family | gb10y | gb20y |
+| boot / FMC generated archive suffix | GB10B | GB20B |
+| MCTP first word for single COT | 1 | 0xc0000000 (SOM, EOM, SEID=SEQ=0) |
+| COT version / packed payload bytes | 1 / 860 | 2 / 860 |
+| FRTS sysmem size | FMC image bytes (GB10B HAL quirk) | zero |
+| prerequisite | existing GB10B flow | FWSEC scratch 0x5e0 == 0xff |
+| send completion | SEC2 busy mailbox consumed | MSGQ response, SEC2_RESPONSE 0x15, command COT 0x14, FSP_OK |
+
+`gsp/profile.om:gpclass` classifies the second profile separately. `gpchip` and the
+existing mapped transport admission remain GB10B-only: GB20B classification does not
+admit GB10B system-info records or a GB10B package. No actual BOOT_42 has been measured.
+
+`gsp/arena.om` now composes either profile. For profile 2, `arpkg[0..3)` must each be
+2 (gb20y signed-image family, GB20B boot archive, GB20B FMC archive respectively).
+Boot code/data/manifest offsets must be inside the supplied boot image; GB10B fixed
+sizes are not applied to GB20B. Common WPR/FMC-args layout follows the generated shared
+WPR HAL. The selected FMC and its 48-byte hash, 384-byte key and 384-byte signature
+are copied to the bounded aligned arena. COT v2 leaves every FRTS field zero.
+These profile assertions describe the caller's checked extraction, NOT cryptographic
+verification. Existing `fwprep` still extracts GB10B only; it is NOT a GB20B package
+loader. A composed caller must extract and validate the distinct GB20B archives and
+select gb20y before setting these fields. Passing GB10B bytes and lying about their
+provenance is not supported or authenticated by this library.
+
+`gsp/sec2.om:s2boot` takes actual BOOT_42 plus explicit profile/package and refuses a
+mismatch before register access. It requires silicon, SEC2 present and FMC enabled;
+waits for FWSEC secure boot; sends the complete 868-byte single packet on command
+queue 0; waits on MSGQ rather than GB10B's mailbox; reads bounded response EMEM with
+AINCR; verifies pointer progress, acknowledges tail before head, checks vendor/type,
+COT command and error; then runs the shared GSP mask/lockdown/FMC/CPU-active completion.
+Source: `kernel_sec2_gb20b.c:280-536,547-549,962-1085`, `kernel_sec2.c:250-593`,
+`sec2_mctp_format.h:34-53`, `nvdm_payload_cmd_response.h` and `kern_fsp_cot_payload.h`.
+Unsupported fragmented responses, malformed sizes and nonzero firmware errors refuse.
+Task ID is captured, not interpreted as a GSP RPC sequence number.
+
+The vendor secure-boot deadline is max(scaled four seconds, default GPU timeout).
+This library receives finite poll budgets; a native caller must implement that timer
+policy with its own monotonic clock and approved pause. No production timing or reset
+policy is asserted by a synthetic check-count simulation. Warm/resume, confidential
+compute and firmware debug variants are not implemented by this cold-production path.
+
+## Composed launcher and native effect seam
+
+`build.sh` builds ONLY `build/w0` and `build/fwprep`. There is no `build/ogd`, no composed
+`boot`, `hello` or `exec`, and no end-to-end native GPU startup. Host units cover
+protocol building, modeled boot/RPC, resource records and queue/completion ownership;
+their passing tests do not create a launcher. `gsp/dispatch.om` still refuses hardware.
+`chan/dma.om` and `gsp/mmio.om` target Linux VFIO/map handles, NOT native Aienux capabilities.
+
+The missing native seam is concrete: load/relocate/link the .om unit to a kernel ABI;
+provide non-forgeable profile-bound PCI/MMIO, SMMU-owned DMA-window and IRQ capabilities;
+keep CPU VA, IOVA and GPU VA distinct; enforce ordered publish/MMIO/cache visibility;
+submit a GPU store and engine/system visibility fence; observe uncached completion;
+then prove engine quiescence or bus-master-off before SMMU abort/unmap/reclaim. Current
+published/quarantined windows intentionally cannot be reclaimed. A Linux invalid-fd
+or anonymous-memory test is not this seam. Neither this SEC2 candidate nor a BOOT_42
+read establishes GPU-initiated DMA containment or compute.
+
+## Minimal W0 identity authorization request (not execution)
+
+Request only one `build/w0 000f:01:00.0 20` invocation, no optional HEXOFF, after an
+exclusive approved window and a fresh boot with NVIDIA held back. It reads PCI config
+and BOOT_0/1/42 through pread and read-only BAR mapping and compares both views.
+**Opening VFIO can implicitly FLR the GPU; closing/releasing it can SBR its parent
+000f:00:00.0. Read-only register intent is NOT reset-free.** Empty reset_method does
+not prevent release SBR. This cannot run beside the resident service on 18091.
+
+Before authorization, parent must recheck current BDF, singleton IOMMU group, privileges,
+pinned w0/compiler and restore recipe; obtain a current spark-window/quietlock reservation
+and Drake's explicit approval for service stop, two reboots, VFIO bind/open and FLR/SBR.
+The existing recovery stick is read-only: serial 5D0344B4, PARTUUID
+f227357c-1e80-4fd0-a55e-2efbef1dd25c, current firmware Boot0002. Its historical attended
+recovery proof is 2026-09-25, NOT a recovery boot today. Never overwrite it. See the
+parent's `recovery-stick-readonly-20261028.md`; a candidate image needs a separate medium.
+
+Exact proposed existing-script procedure, only after those authorizations:
+
+1. Freeze and hash this checkout and binaries. `test ! -e build/ogd` is REQUIRED.
+   Run `sh window/d2-pre.sh` (preflight only). The parent verifies it records the exact
+   resident process argv/cwd/environment/coordinator restore key and no other GPU users.
+   This must not be inferred from a stale receipt. Do not use `--go` before approval.
+2. Parent records Drake's exact approved window in
+   `/home/drakestapleton/handoffs/OwnDriver/window/APPROVED` using the existing three
+   lines (`window: ...`, `reset: approved`, `reboot: approved`). Then from this frozen
+   checkout: `sh window/d2-pre.sh --go D2`. Here D2 is only the existing recovery runner:
+   **no ogd may exist or be introduced until the window closes**. No boot/hello/exec
+   invocation is authorized. Do not replace it with a firmware-boot test.
+3. W1 takes the chip lock, stops the process serving 18091, waits for no compute apps,
+   records sysctls, installs temporary NVIDIA hold-back and recovery unit, and reboots.
+   W2 sets restore state/removes hold-back FIRST, checks no NVIDIA modules, binds VFIO
+   and requires root:root:0600. W3 requires runtime-active and executes precisely
+   `sudo -n build/w0 000f:01:00.0 20`. Expected: config identity plus BOOT_0/1/42,
+   successful pread/map comparison, exit 0. Record actual BOOT_42; do not manufacture
+   an expected hexadecimal value from NVIDIA marketing or Linux RM chip naming.
+4. With ogd absent, the runner MUST log boot and hello NOT_RUN, then unbind VFIO
+   (possible SBR), clear override/PM, and reboot to the NVIDIA-enabled normal boot.
+   R loads/rebinds NVIDIA, restores saved sysctls and the exact recorded resident
+   launch recipe, waits for 18091 `/v1/models`, checks one greedy chat and exactly
+   one resident GPU process, removes the temporary unit and checks privileges.
+5. Any failure follows W7/R, not a retrying GPU probe. The runner has one reboot
+   fallback. If restore still fails, stop and require Drake's physical power-cycle /
+   attended recovery procedure. Preserve logs. W0 identity success is not firmware,
+   RPC, DMA or compute qualification. Firmware loading stays NOT_RUN.
+
+The D2 label does not grant additional authority: if `build/ogd` exists, this procedure
+REFUSES before starting; a W0-only stage would be needed before authorizing that tree.
+The live 18091 must remain untouched until the parent relays exact current approval.
diff --git a/README.md b/README.md
index 1799a30..0a29c15 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,13 @@ driver needs. The pin moves to omega-mv main after those PRs are reviewed and me
 `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](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` remains GB10B-only; `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
@@ -90,6 +97,7 @@ reference byte for byte, and each mutant script changes one line at a time and r
 | `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` |
 | `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` |
 | `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` |
+| `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` |
 | `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 |
 | `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` |
 | `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` |
diff --git a/gsp/arena.om b/gsp/arena.om
index 260c81f..e9fbc84 100644
--- a/gsp/arena.om
+++ b/gsp/arena.om
@@ -1,4 +1,4 @@
-note Host-only physical image composer, never DMA/MMIO. Oracle c5bb3a4b gb10_gsp_boot.c:367-553.
+note Host-only physical image composer, never DMA/MMIO. Oracle a108b114 gb10_gsp_boot.c:367-553.
 note Profile 1 means explicit UNVERIFIED GB10B 580.173.02 layout, NOT detected hardware identity.
 note Vendor 20e4e6e kernel_sec2_gb10b.c:507-508: gspFmcSysmemOffset = memdescGetPhysAddr; frtsSysmemSize = pGspImageSize.
 note WolframLanguageEvaluator FromDigits[dc3aae21371a60b3,16] -> 15869187694674993331; FromDigits[1410de7e,16] -> 336649854.
@@ -19,6 +19,9 @@ global arreg uchar 65456
 global arsrc ulong 7
 global arslen ulong 7
 global arcfg ulong 10
+note arpkg: signature-family, boot-archive, FMC-archive source profiles; 2 means gb20y/GB20B.
+note These are caller assertions, not signature authentication or hardware admission.
+global arpkg ulong 3
 global arbase ulong 1
 global arcap ulong 1
 global arused ulong 1
@@ -275,12 +278,19 @@ fn arcotmk to void
 for i ulong 1024
 put arcot i 0
 end
+if eq get arcfg 0 2
 arcput 0 shl ulong 3 30 4
-arcput 4 336649854 4
+arcput 8 2 2
+else
+arcput 0 1 4
 arcput 8 1 2
+end
+arcput 4 336649854 4
 arcput 10 860 2
 arcput 12 araddr 14 8
+if eq get arcfg 0 1
 arcput 28 get arslen 3 4
+end
 for i ulong 48
 put arcot add 44 i get arin add get arsrc 4 i
 end
@@ -317,7 +327,10 @@ end
 fn arbuild to long
 put arclen 0 0
 put artail 0 0
-if or ne get arcfg 0 1 or eq get arcfg 1 0 gt get arcfg 1 64
+if or lt get arcfg 0 1 gt get arcfg 0 2
+ret -1
+end
+if or eq get arcfg 1 0 gt get arcfg 1 64
 ret -1
 end
 if or ne get arused 0 0 gt get arcap 0 ARMAX
@@ -341,9 +354,23 @@ end
 if or gt get arcfg 4 4294967295 gt get arcfg 5 4294967295
 ret -1
 end
+if eq get arcfg 0 1
 if or ne get arcfg 6 45056 or ne get arcfg 7 2560 ne get arcfg 8 0
 ret -1
 end
+end
+if eq get arcfg 0 2
+for i ulong 3
+if ne get arpkg i 2
+ret -1
+end
+end
+for i ulong 3
+if ge get arcfg add i 6 get arslen 2
+ret -1
+end
+end
+end
 for i ulong 7
 if or eq get arslen i 0 gt get arsrc i ARMAX
 ret -2
@@ -352,7 +379,7 @@ if gt get arslen i sub ARMAX get arsrc i
 ret -2
 end
 end
-if or ne get arslen 2 196608 ne get arslen 4 48
+if or and eq get arcfg 0 1 ne get arslen 2 196608 ne get arslen 4 48
 ret -2
 end
 if or ne get arslen 5 384 ne get arslen 6 384
diff --git a/gsp/mmio.om b/gsp/mmio.om
index f620f2e..f53393f 100644
--- a/gsp/mmio.om
+++ b/gsp/mmio.om
@@ -262,6 +262,10 @@ if not pollstep 1
 put gout 7 gsprd S2MB1
 ret gspfail ESEC2
 end
+ret gspfinish
+end
+note Shared GSP FMC completion, selected only after the profile-specific SEC2 exchange.
+fn gspfinish to long
 if not pollstep 2
 ret gspfail EMASK
 end
diff --git a/gsp/profile.om b/gsp/profile.om
index 4080a2c..725fefd 100644
--- a/gsp/profile.om
+++ b/gsp/profile.om
@@ -15,3 +15,14 @@ ret -95
 end
 ret 1
 end
+note Separate classifier; gpchip remains GB10B-only transport admission.
+note GB20B classification does NOT admit GB10B firmware, system_info, or transport.
+fn gpclass boot42 uint to long
+if eq gpchip boot42 1
+ret 1
+end
+if and eq and shr ulong boot42 24 63 27 eq and shr ulong boot42 20 15 11
+ret 2
+end
+ret -95
+end
diff --git a/gsp/sec2.om b/gsp/sec2.om
new file mode 100644
index 0000000..16d2166
--- /dev/null
+++ b/gsp/sec2.om
@@ -0,0 +1,172 @@
+note GB20B SEC2 COTv2 exchange, NVIDIA580.173.02@20e4e6e kernel_sec2_gb20b.c.
+note Requires mmio.om, profile.om, sim.om and sec2sim.om. No launcher/admission supplied.
+note s2cfg: profile,package,secureBootPollBudget,responsePollBudget,silicon,SEC2present,FMCenabled.
+note Package2 asserts gb20y + GB20B boot/FMC source; not authentication. Warm/resume/CC unsupported.
+note Vendor secure-boot deadline is max(scaled4s,default); caller supplies bounded polls with its OS timer.
+note WolframLanguageEvaluator FromDigits /@ {1B,5E0,840C80,840C84,C0000000,1510DE7E} -> {27,1504,8653952,8653956,3221225472,353427070}; 2^25 ->33554432.
+const S2SCR ulong 1504
+const S2MH ulong 8653952
+const S2MT ulong 8653956
+const S2AINCR ulong 33554432
+global s2cfg ulong 7
+global s2reply uchar 1024
+global s2out ulong 4
+fn s2rd off ulong to ulong
+if eq get gspmode 0 0
+ret s2simrd off
+end
+ret gsprd off
+end
+fn s2wr off ulong v ulong to void
+if eq get gspmode 0 0
+s2simwr off v
+ret
+end
+gspwr off v
+end
+fn s2wait kind ulong budget ulong to bool
+for i ulong add budget 1
+if eq kind 0
+if eq s2rd S2SCR 255
+put s2out 0 i
+ret true
+end
+else
+h = s2rd S2MH
+t = s2rd S2MT
+if ne h t
+put s2out 1 i
+ret true
+end
+end
+if lt i budget
+gsppause
+end
+end
+ret false
+end
+fn s2get o ulong to ulong
+v = ulong 0
+for i ulong 4
+v = or v shl ulong get s2reply add o i mul i 8
+end
+ret v
+end
+fn s2save o ulong v ulong to void
+for j ulong 4
+c = and shr v mul j 8 255
+put s2reply add o j uchar c
+end
+end
+fn s2response to long
+h = s2rd S2MH
+t = s2rd S2MT
+if or lt t h gt t 1020
+ret -12
+end
+n = add sub t h 4
+if or lt n 20 ne rem n 4 0
+ret -12
+end
+s2wr S2EMC S2AINCR
+for i ulong div n 4
+v = s2rd S2EMD
+s2save mul i 4 v
+end
+e = ememdw s2rd S2EMC
+note Vendor acknowledges the packet even when its final offset check fails.
+s2wr S2MT h
+s2wr S2MH h
+if ne e div n 4
+ret -12
+end
+note Single-packet response, vendor PCI 10de, SEC2_RESPONSE; payload starts at byte7.
+if ne and s2get 0 3221225472 3221225472
+ret -12
+end
+if ne s2get 4 353427070
+ret -12
+end
+put s2out 2 s2get 8
+put s2out 3 s2get 16
+if ne s2get 12 20
+ret -12
+end
+if ne get s2out 3 0
+ret -13
+end
+ret 0
+end
+fn s2pkt o ulong to ulong
+v = ulong 0
+for i ulong 4
+v = or v shl ulong get gpkt add o i mul i 8
+end
+ret v
+end
+fn s2boot boot42 uint to long
+for i ulong 4
+put s2out i 0
+end
+if or ne gpclass boot42 2 ne get s2cfg 0 2
+ret gspfail EARG
+end
+if ne get s2cfg 1 2
+ret gspfail EARG
+end
+for i ulong 3
+if ne get s2cfg add i 4 1
+ret gspfail EARG
+end
+end
+for i ulong 2
+if gt get s2cfg add i 2 999998
+ret gspfail EARG
+end
+end
+if ne get gin 0 868
+ret gspfail EARG
+end
+note Check complete profile header before any register effects; COT version2,size860 and no FRTS.
+if or ne s2pkt 0 3221225472 ne s2pkt 4 336649854
+ret gspfail EARG
+end
+if ne s2pkt 8 56360962
+ret gspfail EARG
+end
+for i ulong 6
+if ne s2pkt add 20 mul i 4 0
+ret gspfail EARG
+end
+end
+if not gsppm
+ret gspfail EPM
+end
+if not s2wait 0 get s2cfg 2
+ret gspfail -10
+end
+if not pollstep 0
+ret gspfail EBUSY
+end
+s2wr S2EMC AINCW
+for i ulong 217
+v = ulong 0
+for j ulong 4
+v = or v shl ulong get gpkt add mul i 4 j mul j 8
+end
+s2wr S2EMD v
+end
+if ne ememdw s2rd S2EMC 217
+ret gspfail EEMEM
+end
+s2wr S2QT 864
+s2wr S2QH 0
+if not s2wait 1 get s2cfg 3
+ret gspfail -11
+end
+r = s2response
+if ne r 0
+ret gspfail r
+end
+ret gspfinish
+end
diff --git a/gsp/sec2sim.om b/gsp/sec2sim.om
new file mode 100644
index 0000000..6a371bc
--- /dev/null
+++ b/gsp/sec2sim.om
@@ -0,0 +1,83 @@
+note GB20B register-model extension. Pure simulator, not device evidence.
+note s2sc: secure-delay,response-delay,missing-response,bad-header,error,bad-pointer,short-response.
+global s2sc ulong 7
+global s2ss ulong 8
+fn s2simrd off ulong to ulong
+put s2ss 7 add get s2ss 7 1
+if eq off S2SCR
+if eq get s2sc 0 0
+ret 255
+end
+put s2sc 0 sub get s2sc 0 1
+ret 0
+end
+if eq off S2MH
+if eq get s2ss 0 1
+v = srmb0
+if and eq v 0 eq get s2sc 2 0
+if eq get s2sc 1 0
+put s2ss 1 1
+else
+put s2sc 1 sub get s2sc 1 1
+end
+end
+end
+ret 0
+end
+if eq off S2MT
+if eq get s2ss 1 0
+ret 0
+end
+if ne get s2sc 6 0
+ret 12
+end
+ret 16
+end
+if and eq off S2EMC eq get s2ss 2 1
+ret mul add get s2ss 3 get s2sc 5 4
+end
+if and eq off S2EMD eq get s2ss 2 1
+i = get s2ss 3
+put s2ss 3 add i 1
+if eq i 0
+ret 3221225472
+end
+if eq i 1
+ret add 353427070 get s2sc 3
+end
+if eq i 2
+ret 7
+end
+if eq i 3
+ret 20
+end
+if eq i 4
+ret get s2sc 4
+end
+ret 0
+end
+ret simrd off
+end
+fn s2simwr off ulong v ulong to void
+put s2ss 7 add get s2ss 7 1
+if eq off S2MH
+if and eq v 0 eq get s2ss 5 1
+put s2ss 6 1
+end
+ret
+end
+if eq off S2MT
+put s2ss 5 1
+put s2ss 1 0
+ret
+end
+if and eq off S2EMC eq v S2AINCR
+put s2ss 2 1
+put s2ss 3 0
+ret
+end
+simwr off v
+if eq off S2QH
+put s2ss 0 1
+end
+end
diff --git a/gsp/sim.om b/gsp/sim.om
index 4dc8620..c133515 100644
--- a/gsp/sim.om
+++ b/gsp/sim.om
@@ -36,6 +36,8 @@ global semem ulong 256
 note runtime PM state of the simulated device, set by the caller: 0 active, 1 suspended (D3).
 note siminit leaves it alone. Any access while suspended counts as a violation.
 global spm ulong 1
+note Test-only selected packet family; zero preserves GB10B independent oracle cases.
+global sprof ulong 1
 fn simpmok to bool
 ret eq get spm 0 0
 end
@@ -105,10 +107,15 @@ sp SHWCFG2 3135193511
 sp SS2MB0 0
 sp SLEFT get scfg 0
 end
-note SEC2 checks the packet: MCTP SOM|EOM 0xC0000000, NVDM 0x1410DE7E, payload version 1, size 860,
+note SEC2 checks the GB10B HAL constant MCTP dword 1, NVDM 0x1410DE7E, payload version 1, size 860,
 note TAIL 864. Anything else (SIM-CHOICE): consumed, the target mask is never released.
 fn simpkt to bool
+if eq get sprof 0 2
 a = and eq sg SQTAIL 864 eq get semem 0 3221225472
+b = and eq get semem 1 336649854 eq and get semem 2 65535 2
+ret and and a b eq shr get semem 2 16 860
+end
+a = and eq sg SQTAIL 864 eq get semem 0 1
 b = and eq get semem 1 336649854 eq and get semem 2 65535 1
 ret and and a b eq shr get semem 2 16 860
 end
diff --git a/tests/arena_diff.sh b/tests/arena_diff.sh
index c2583a3..b15ec3a 100755
--- a/tests/arena_diff.sh
+++ b/tests/arena_diff.sh
@@ -7,7 +7,9 @@ AIENUX=${AIENUX:?set AIENUX to pinned reference checkout}
 ARENA_OM=${ARENA_OM:-$R/gsp/arena.om}
 actual=$(sha256sum "$OMC"); actual=${actual%% *}
 [ "$actual" = bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6 ] || { echo 'arena_diff: INVALID compiler pin'; exit 2; }
-[ "$(git -C "$AIENUX" rev-parse HEAD)" = c5bb3a4b9898257658aba0b7178a3c73a0371c27 ] || { echo 'arena_diff: INVALID oracle pin'; exit 2; }
+# Deliberate oracle refresh: aienux #463 corrects GB10B MCTP to the vendor HAL constant 1.
+# c5bb3a4b shared the old SOM|EOM defect with Omega and could not detect it.
+[ "$(git -C "$AIENUX" rev-parse HEAD)" = a108b1144a064aa7b824374a622d627c6ba91fd1 ] || { echo 'arena_diff: INVALID oracle pin'; exit 2; }
 git -C "$AIENUX" diff --quiet HEAD -- native/kernel/dev/gb10_gsp_boot.c native/kernel/dev/gb10_gsp_boot.h || { echo 'arena_diff: INVALID modified oracle'; exit 2; }
 t=$(mktemp -d /tmp/arena-parity.XXXXXX)
 trap 'rm -rf "$t"' EXIT HUP INT TERM
diff --git a/tests/gsp-qualification-host-receipt.txt b/tests/gsp-qualification-host-receipt.txt
new file mode 100644
index 0000000..192dc9c
--- /dev/null
+++ b/tests/gsp-qualification-host-receipt.txt
@@ -0,0 +1,81 @@
+2026-10-28 QualGspBoot: IMPLEMENTED / HOST_EXERCISED, NOT QUALIFIED
+Base: b1c8e6ea76da81dc47b57670304bf256b0ba9818 (driver draft #4)
+Compiler source: omega-mv 397e67040fb74853c6814097fe02ae4e1ebd6f66, per tools/omc.pin
+OMC sha256: bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6
+Vendor: NVIDIA open-gpu-kernel-modules 580.173.02, 20e4e6e19cc26ba47b5cbe23130a396be100c427
+C reference: aienux #463 a108b1144a064aa7b824374a622d627c6ba91fd1
+Verification-only dependencies: cc Ubuntu 13.3.0-6ubuntu2~24.04.1 (13.3.0), Python 3.12.3.
+No new host dependency was added to production. No hardware effects were exercised.
+
+Deliberate correction: the c5bb3a4 C reference and Omega both used 0xc0000000 for
+GB10B MCTP. Vendor ksec2CreateMctpHeader_539ab4 returns 1. The new C reference
+has that fix; arena_diff.sh pins it intentionally. rpc_diff.sh uses the same
+reference revision for the combined suite. Historical receipts remain unchanged.
+
+Actual host command for each tests/*.sh, sequentially, in private worktree:
+OMC=/tmp/omega-driver-boot/build/omc
+AIENUX=/home/drakestapleton/work/aienux-gsp-oracle-full
+OGKM=/home/drakestapleton/work/nvidia-gsp-vendor
+OGKM_SRC=$OGKM/src
+export OMC AIENUX OGKM OGKM_SRC
+nice -n 19 sh /home/drakestapleton/work/ogd-qual-gsp/tests/<script>
+The window simulator additionally needs build/omc -> the same pinned OMC.
+No physical window/preflight script was run outside tests/window_sim.sh.
+
+Initial run: 26 exit0, mutants-arena exit1 (redundant profile-package guard let
+the original profile mutant survive); window_sim exit1 (private build/omc absent).
+Fixed the mutant's exercised guard while preserving production behavior; linked
+the pinned compiler. Retained both original failed logs. Reran arena_diff,
+mutants-arena, sec2_host and window_sim; added and ran mutants-sec2. Final:
+arena_diff.sh: exit0
+boot_dma.sh: exit0
+chan_diff.sh: exit0
+complete_diff.sh: exit0
+dispatch_diff.sh: exit0
+dispatch_mutants.sh: exit0
+dma_host.sh: exit0
+fw_diff.sh: exit0
+mmio_diff.sh: exit0
+mutants-arena.sh: exit0
+mutants-chan.sh: exit0
+mutants-complete.sh: exit0
+mutants-fw.sh: exit0
+mutants-mmio.sh: exit0
+mutants-rmchan.sh: exit0
+mutants-rpc.sh: exit0
+mutants-sec2.sh: exit0
+mutants-seq.sh: exit0
+mutants-sysinfo.sh: exit0
+mutants-window.sh: exit0
+params_diff.sh: exit0
+pm_gate.sh: exit0
+rmchan_diff.sh: exit0
+rpc_diff.sh: exit0
+sec2_host.sh: exit0
+seq_diff.sh: exit0
+sysinfo_diff.sh: exit0
+transport_host.sh: exit0
+window_sim.sh: exit0
+
+Negative control observed: mutants-arena: DETECTED old-mctp
+All 13 arena mutants detected; behavior failures, not compile failures.
+GB20B host cases 0..14 all PASS: clean boot completion, package mismatch,
+wrong chip, secure-boot timeout, missing response, bad vendor/header,
+firmware error, pointer mismatch, short response, GB10B header/version,
+three arena package-family mismatches, delayed ready/response at budget.
+All six compiling SEC2 mutants detected: secure-wait, response-wait, package,
+response-vendor, response-error, pointer.
+GB20B synthetic fixture is NOT an authenticated extracted GB20B firmware image.
+
+Final arena assembly sha256: 91964e37477bfacf79250e9d5cc1eaa1eb3ef8e59ed7ee310998218036f5afda
+Final arena replay sha256: 3cb9ca9837b543cee0bcb5cfce56841cdfc371b65e3b82c1063855f14121fd6d
+Corrected C arena referee sha256: de2d3574261dd166a7e2aed05a96ae78e413b2428d0fe0396d3552fb2109dee8
+GB20B assembly sha256: dd52d251649f39d269c1616f79c490f3286b2746451ee6d881515ab77db9faf9
+GB20B replay sha256: 20dd721a556e65bedb101e624fc2fb13cac5ab3191174254a6dbcdc5d9fad7a1
+Local full raw logs: /home/drakestapleton/handoffs/spark-five-20261028/QualGspBoot/
+Original host-suite.txt; final host-suite-final.txt; repaired gate logs end -final.log.
+
+NOT_RUN: physical BOOT_42 identity in this work, firmware load/boot, live GSP RPC,
+resources/queue/compute on hardware, native Aienux effect seam, restore after FLR/SBR.
+No service/module/VFIO/boot/credential/gate changes, merge or deployment performed.
+GB20B.md records the composed-launcher gap and the exact unexecuted W0-only request.
diff --git a/tests/mmio_trace.om b/tests/mmio_trace.om
index 1cc884a..62a6591 100644
--- a/tests/mmio_trace.om
+++ b/tests/mmio_trace.om
@@ -244,7 +244,7 @@ for i ulong 1024
 put gpkt i uchar and add mul i 13 5 255
 end
 if hdrok
-tput32 0 3221225472
+tput32 0 1
 tput32 4 336649854
 tput32 8 56360961
 end
diff --git a/tests/mutants-arena.sh b/tests/mutants-arena.sh
index 33de54f..2732097 100755
--- a/tests/mutants-arena.sh
+++ b/tests/mutants-arena.sh
@@ -7,6 +7,7 @@ python3 - "$R" <<'PY'
 import os, pathlib, subprocess, sys, tempfile
 r=pathlib.Path(sys.argv[1]); original=(r/'gsp/arena.om').read_text()
 mutants=[
+ ('old-mctp','arcput 0 1 4','arcput 0 shl ulong 3 30 4'),
  ('radix','add araddr 11 add get arlvl add i 1 mul j 4096','add araddr 11 add get arlvl add i 1 mul j 4097'),
  ('logpte','v = add a mul j 4096','v = add a mul j 4097'),
  ('sharedpte','add araddr 10 mul i 4096 8','add araddr 10 mul i 4097 8'),
@@ -15,7 +16,7 @@ mutants=[
  ('cotfmc','arcput 28 get arslen 3 4','arcput 28 get arslen 2 4'),
  ('cotargs','arcput 860 araddr 15 8','arcput 860 araddr 9 8'),
  ('preboot','rqsend 72 936 936 false','rqsend 73 936 936 false'),
- ('profile','ne get arcfg 0 1','false'),
+ ('profile','lt get arcfg 0 1','false'),
  ('registry','if ne arreg32 0 n','if false'),
  ('dma','if not ardma get arbase 0 get arused 0','if false'),
  ('heapdma','if not ardma get arcfg 2 get arcfg 3','if false'),
diff --git a/tests/mutants-sec2.sh b/tests/mutants-sec2.sh
new file mode 100755
index 0000000..0681696
--- /dev/null
+++ b/tests/mutants-sec2.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -eu
+R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
+sh "$R/tests/sec2_host.sh"
+python3 - "$R" <<'PY'
+import os,pathlib,subprocess,sys,tempfile
+r=pathlib.Path(sys.argv[1]); source=(r/'gsp/sec2.om').read_text()
+mutants=[('secure-wait','if not s2wait 0 get s2cfg 2','if false'),('response-wait','if not s2wait 1 get s2cfg 3','if false'),('package','if ne get s2cfg 1 2','if false'),('response-vendor','if ne s2get 4 353427070','if false'),('response-error','if ne get s2out 3 0','if false'),('pointer','if ne e div n 4','if false')]
+with tempfile.TemporaryDirectory(prefix='sec2-mutants.') as d:
+ for name,old,new in mutants:
+  assert source.count(old)==1,name
+  p=pathlib.Path(d)/(name+'.om');p.write_text(source.replace(old,new))
+  q=subprocess.run(['sh',str(r/'tests/sec2_host.sh')],env=dict(os.environ,SEC2_OM=str(p)),capture_output=True,text=True)
+  if q.returncode!=1 or 'sec2_host: FAIL case ' not in q.stderr:
+   sys.exit(f'INVALID/SURVIVED {name}: {q.returncode}\n{q.stdout}\n{q.stderr}')
+  print('mutants-sec2: DETECTED '+name)
+print('mutants-sec2: PASS; hardware NOT_RUN')
+PY
diff --git a/tests/rpc_diff.sh b/tests/rpc_diff.sh
index 29b566c..db98408 100755
--- a/tests/rpc_diff.sh
+++ b/tests/rpc_diff.sh
@@ -3,13 +3,13 @@
 set -eu
 R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
 OMC=${OMC:-$R/build/omc}
-AIENUX=${AIENUX:?set AIENUX to aienux c5bb3a4b9898257658aba0b7178a3c73a0371c27}
+AIENUX=${AIENUX:?set AIENUX to aienux a108b1144a064aa7b824374a622d627c6ba91fd1}
 RPC_OM=${RPC_OM:-$R/gsp/rpc.om}
 BOOT_OM=${BOOT_OM:-$R/gsp/boot.om}
 expected=bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6
 actual=$(sha256sum "$OMC"); actual=${actual%% *}
 [ "$actual" = "$expected" ] || { echo 'rpc_diff: compiler pin mismatch' >&2; exit 2; }
-[ "$(git -C "$AIENUX" rev-parse HEAD)" = c5bb3a4b9898257658aba0b7178a3c73a0371c27 ] || exit 2
+[ "$(git -C "$AIENUX" rev-parse HEAD)" = a108b1144a064aa7b824374a622d627c6ba91fd1 ] || exit 2
 git -C "$AIENUX" diff --quiet HEAD -- native/kernel/dev/gb10_gsp_boot.c native/kernel/dev/gb10_gsp_boot.h || { echo 'rpc_diff: INVALID modified oracle'; exit 2; }
 t=$(mktemp -d /tmp/rpc-replay.XXXXXX)
 trap 'rm -rf "$t"' EXIT HUP INT TERM
diff --git a/tests/sec2_host.sh b/tests/sec2_host.sh
new file mode 100755
index 0000000..dfc728a
--- /dev/null
+++ b/tests/sec2_host.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Unprivileged host-only vendor protocol replay. Never opens a device.
+set -eu
+R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
+OMC=${OMC:-$R/build/omc}
+SEC2_OM=${SEC2_OM:-$R/gsp/sec2.om}
+actual=$(sha256sum "$OMC"); actual=${actual%% *}
+[ "$actual" = bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6 ] || exit 2
+t=$(mktemp -d /tmp/sec2-host.XXXXXX)
+trap 'rm -rf "$t"' EXIT HUP INT TERM
+python3 - "$R" "$t" "$SEC2_OM" <<'PY'
+import pathlib,sys
+r,t,s=map(pathlib.Path,sys.argv[1:])
+units=['gsp/rpc.om','gsp/replay.om','gsp/sysinfo.om','chan/params.om','gsp/boot.om','gsp/arena.om','gsp/connect.om','gsp/profile.om','gsp/mmio.om','gsp/sim.om']
+text=''.join((r/p).read_text()+'\n' for p in units)
+fixture=(r/'tests/arena_trace.om').read_text()
+assert fixture.count('fn main to int')==1
+text+=fixture.split('fn main to int')[0]
+text+=s.read_text()+'\n'+(r/'gsp/sec2sim.om').read_text()+'\n'+(r/'tests/sec2_trace.om').read_text()
+(t/'trace.om').write_text(text)
+PY
+"$OMC" < "$t/trace.om" > "$t/replay"
+chmod +x "$t/replay"
+python3 - "$t/replay" <<'PY'
+import subprocess,sys
+for m in range(15):
+ p=subprocess.run([sys.argv[1]],input=bytes([m]),capture_output=True,timeout=60)
+ if p.returncode: sys.exit(f'sec2_host: FAIL case {m} exit {p.returncode} {p.stderr!r}')
+ print(f'sec2_host: PASS case {m}')
+print('sec2_host: HOST_EXERCISED; physical boot/RPC/compute NOT_RUN')
+PY
+sha256sum "$t/trace.om" "$t/replay"
diff --git a/tests/sec2_trace.om b/tests/sec2_trace.om
new file mode 100644
index 0000000..0e67f19
--- /dev/null
+++ b/tests/sec2_trace.om
@@ -0,0 +1,120 @@
+fn main to int
+b = new uchar 1 0
+if ne read 0 b 0 1 1
+ret 99
+end
+m = ulong get b 0
+atsetup 0
+put arcfg 0 2
+for i ulong 3
+put arpkg i 2
+end
+if and ge m 11 le m 13
+put arpkg sub m 11 1
+end
+r = arbuild
+if and ge m 11 le m 13
+if ne r -1
+ret 31
+end
+ret 0
+end
+if ne r 0
+ret 32
+end
+if or ne get arcot 3 192 ne get arcot 8 2
+ret 33
+end
+for i ulong 24
+if ne get arcot add 20 i 0
+ret 34
+end
+end
+for i ulong 1024
+put gpkt i get arcot i
+end
+put gin 0 get arclen 0
+put gin 1 araddr 15
+put gin 2 1
+for i ulong 4
+put gin add i 3 3
+end
+for i ulong 7
+put s2cfg i 1
+put s2sc i 0
+end
+put s2cfg 0 2
+put s2cfg 1 2
+put s2cfg 2 3
+put s2cfg 3 3
+put sprof 0 2
+put scfg 8 get gin 1
+siminit
+chip = uint 464519168
+expected = long 0
+if eq m 1
+put s2cfg 1 1
+expected = -1
+end
+if eq m 2
+chip = uint 447741952
+expected = -1
+end
+if eq m 3
+put s2sc 0 8
+expected = -10
+end
+if eq m 4
+put s2sc 2 1
+expected = -11
+end
+if eq m 5
+put s2sc 3 1
+expected = -12
+end
+if eq m 6
+put s2sc 4 1
+expected = -13
+end
+if eq m 7
+put s2sc 5 1
+expected = -12
+end
+if eq m 8
+put s2sc 6 1
+expected = -12
+end
+if eq m 9
+put gpkt 0 1
+put gpkt 3 0
+expected = -1
+end
+if eq m 10
+put gpkt 8 1
+expected = -1
+end
+if eq m 14
+put s2sc 0 3
+put s2sc 1 3
+end
+r = s2boot chip
+if ne r expected
+ret 40
+end
+if eq r 0
+if or ne get s2ss 6 1 ne get ss SVIOL 0
+ret 41
+end
+end
+if or or eq m 1 eq m 2 or eq m 9 eq m 10
+if ne get s2ss 7 0
+ret 42
+end
+end
+if and ge m 5 le m 7
+if ne get s2ss 6 1
+ret 43
+end
+end
+ret 0
+end
diff --git a/window/README.md b/window/README.md
index 9a6eba7..cf6f4a2 100644
--- a/window/README.md
+++ b/window/README.md
@@ -56,12 +56,13 @@ Each driver step (W3 ident, W4, W5, W6) runs only if `build/ogd modes` lists it.
 `NOT_RUN: build/ogd has no '<mode>' mode` and the window goes straight to W7 and R. All logs go to
 `~/handoffs/OwnDriver/window/d2-<UTC>-{pre,run,restore,boot}.log`.
 
-**Current state (2026-10-27): `build/ogd` does not exist, so W4 and W5 are NOT_RUN and policy-blocked.** On
-2026-10-27 the .om port of aienux `gb10_gsp_boot.c` (boot arena, COT packet, message queue, RM RPC) was stopped by
-a model-policy refusal. Per the lane rule it was not retried. It needs a human-written port; that is Drake's
-item. A D2 window today therefore exercises W2, W3 (`build/w0`), W7 and R. That still settles DESIGN §7
-UNKNOWN 1 (BOOT_42 naming) and proves the vfio-pci bind/release and the nvidia.ko restore after the FLR and SBR.
-`d2-pre.sh --go D3` refuses without `build/ogd`.
+**Current candidate: `build/ogd` does not exist, so W4 and W5 are NOT_RUN.**
+The bounded arena/RPC and separate GB20B SEC2 units are implemented and host-exercised,
+but not composed into a production launcher. The native Aienux effect seam is also absent.
+See [GB20B.md](../GB20B.md) for the exact source pins and the narrower W0 identity
+authorization request. That request requires a frozen tree with no `build/ogd`,
+explicit 18091 stop/restore plus FLR/SBR/reboot approval, and does not authorize D2
+firmware loading. `d2-pre.sh --go D3` refuses without `build/ogd`.
 
 ## Recovery when R fails twice