GB20B Own-Driver (aien-gpu) GSP Boot & Verification Reference
Verified against NVIDIA open-gpu-kernel-modules 580.173.02 and Spark Window 0 capture
HANDOFFS/L332/window0-20261118T234217Z (2026-11-18). All Stage B/C items below are HOST_TESTED / QEMU
verified as of 2026-11-19 (hardware=NOT_RUN until a reviewed Window 0 cold boot runs on the Spark).
1. GB10B vs. GB20B HAL Delta (580.173.02)
Do not port or test GB10B (0x1A) paths on the Spark die (BOOT_0=0x1bb000a1, BOOT_42=0x1bba1000):
| Area | Wrong (GB10B) | Required on Spark (GB20B) | 580.173.02 Source |
|---|---|---|---|
| Chip identity | BOOT_42[29:20] == 0x1AB (arch=0x1A) | 0x1BB (arch=0x1B, impl=0xB) | g_hal_archimpl.h:96; GPUID.TXT |
| GSP-RM ELF signature | .fwsignature_gb10y | .fwsignature_gb20y (4096 B) inside gsp_ga10x.bin | nv-firmware-chip-family-select.h:64-68 |
| GSP-RM bootloader | GspRmBoot_GB10B (196,608 B, monCodeOff=0xb000) | GspRmBoot_GB20B (212,992 B, monCodeOff=0xf000, monDataSize=0xe600) | g_kernel_gsp_nvoc.c:792-794; UCODE_DESC_PROD |
| GSP-FMC image | GspRmFmcGfwProdSigned_GB10B (195,912 B) | GspRmFmcGfwProdSigned_GB20B (212,296 B; hash 48 B, pkey 384 B, sig 384 B) | g_kernel_gsp_nvoc.c:928-930 |
| WPR metadata & CrashCat | No CrashCat sysmem queue | Shared kgspPopulateWprMeta_GB10B (vga=pmu=nonWprHeap=0, gspFwHeapSize=133 MiB) + 4096 B CrashCat queue (union offsets 224/232) | g_kernel_gsp_nvoc.c:987-989,1859-1862; kernel_gsp_gh100.c:364-372 |
| FWSEC prerequisite | None | Poll NV_PMC_SCRATCH_RESET_PLUS_2 (0x5e0) == 0xFF before touching SEC2 | gb20b/dev_boot.h:26; kernel_sec2_gb20b.c:541-575 |
| COT packet | version=1, frtsSysmemSize=fmc_size, MCTP 0x00000001 | version=2, size=860 (868 B wire = 217 dwords), frtsSysmemSize=0, MCTP 0xc0000000 (SOM|EOM) | g_kernel_sec2_nvoc.c:483-485; kernel_sec2_gb20b.c:206-220,988-1000 |
| SEC2 send & reply | Poll SEC2 MAILBOX0 != 0xc001cafe | Send via QUEUE_HEAD/TAIL (0x840c00/04) + EMEMC (0x840ac0, AINCW bit 24); poll NV_PSEC_MSGQ_HEAD/TAIL(0) (0x840c80/84), read via EMEMC AINCR (bit 25), size ((tail-head) mod 2^32)+4 in [4,1024], write TAIL=head strictly before HEAD=head, check single-packet SOM|EOM, NVDM 0x1510de7e (masking bit 7 IC), cmd=0x14, errorCode=0 | gb20b/dev_sec_pri.h:26-60; kernel_sec2_gb20b.c:481-537; kernel_sec2.c:448-496 |
| Stage C doorbell token | (runlist << 16) | chId (bit 22 active-low) | kfifoGenerateWorkSubmitTokenHal_GB202: set bit 30 RUNLIST_DOORBELL_ENABLE (| 0x40000000, active-high); runlist <= 127, chId <= 4095. Classes: 0xcec0 (BLACKWELL_COMPUTE_B), 0xca6f (BLACKWELL_CHANNEL_GPFIFO_B) | g_kernel_fifo_nvoc.c:644-646; gb202/dev_vm.h:30-32; kernel_fifo_gb202.c:73-76 |
| PCIe FLR | PDB_PROP_GPU_TRIGGER_PCIE_FLR=TRUE | NV_FALSE — sysfs FLR on 000f:01:00.0 resets the whole SoC | g_gpu_nvoc.c; BOARD 2026-11-18T23:17:45Z |
2. Window 0 Cold-Boot Procedure Rules
- Preconditions: Operator approval specifically for a planned Spark restart (stopping a job is not restart
approval), all artifacts +
SHA256SUMSpersisted outside/tmp, fresh-clone host + QEMU + mutation gates green, and independent exact-head review settled. - One-boot isolation: Wait for any active
spark-windowto finish, postCLAIM/STARTonHANDOFFS/BOARD.md, install a one-bootnvidiamodprobe blacklist, and perform a clean reboot. - After cold reboot: Verify
NO_NVIDIA_LOADED,000f:01:00.0 UNBOUND, andsha256sum -con all staged artifacts. Re-track/reclaim the window onHANDOFFS/BOARD.md(reboot clearsspark-windowstate). Write alldmesg, Stage A/B/C outputs, and binary dumps directly intoHANDOFFS/L332/. - Restore: Remove the one-boot blacklist before the restore reboot (never rely on sysfs FLR), reboot back to
stock
nvidia+nvidia-persistenced+aien-run-spark-sensors.service, confirmnvidia-smihealth, verifyspark-window statusis clear, and postRELEASEwith the receipt path.
3. Driver ABI, Verification & Multi-Agent Traps (Caught in Reviews 2026-11-18/19)
- Never hand-count wire or UAPI struct offsets: Derive every C offset with
offsetof+_Static_assert, verify every pure-.omclient (dev.om,orch-aien.om,bw_qmd.omslot ordercode/cb/scratch) with a compiled layout gate, and cross-check two independent builders byte-for-byte on emittedcot_packet.bin,wpr_meta.bin, andsystem_info.sent.bin. - Preserve top-level UAPI compatibility: Keep
AGPU_ABI_VERSION=1intact for existing Compute ABI 1 clients and version the innerAGPU_BOOTblock (AGPU_BOOT_VERSION=2) rather than breaking all callers. - Test the exact boundaries mutants hide in:
- Use nonzero queue indices (
reply_head != 0) soMSGQ_HEADvsQHEAD0mutations cannot survive. - Test off-by-one reply bounds (
rsp_bytes = 3, 4, 5, 19, 20, 1024, 1025),32-bit wraparound, andSOM=0with corrupted header dwords. - Pre-fill output/state arrays with poison (
0xdeadbeefcafebabe) so missing zero-initialization is caught. - Make binary-embedding controls (
ko-units) flip a real bit inside a copy of.kore-extracted by the real reader, not a synthetic stub.
- Use nonzero queue indices (
- Pin every gate input for true offline fresh clones: Pin external oracle commits as a branch in the same
repository (no reliance on sibling work folders or network fetches), and hash-pin every input to package scripts
(including
system_info.txtand NVIDIA source trees) before claiming "all inputs pinned". - Label single-source simulator limits explicitly: When the C reference, MMIO simulator, and
.omunit are written from one reading of the vendor driver,PARITY-BOOTprovesOmega == C, notC == hardware. Record that explicitly indocs/STATUS.md. - Snapshot clean committed SHAs across agents: Never snapshot or review another agent's dirty working tree;
coordinate one writer per mutable branch on
HANDOFFS/BOARD.mdand run cross-checks against committed hashes. - CRITICAL multi-pass verification & Claude-quota fallback: For critical reverse-engineering or boot-path
audits, require independent zero-code-reuse verification against raw inputs (re-verifying hashes, byte sums,
any(b != 0)on zero-padding, endianness, and cross-report pointers). If aHANDOFFS/BOARD.mdverification handoff to Claude cannot run due to Claude usage limits, spawn a completely fresh (un-forked) independent Gemini verifier to execute the handoff from scratch and post its verdict toHANDOFFS/<lane>/independent-gemini-verification.md+HANDOFFS/BOARD.md.