GB10 firmware inventory (aienos#286 cut C, host work only)
Report plus one hosted checker. No firmware was loaded, no device was touched, no QEMU run was made. This is the "inventory of firmware and protocol sources, parsers and refusal tests for firmware metadata. No loading" item of docs/GB10_NATIVE_DEPENDENCY_MAP.md section 7. Any firmware load or GSP handoff on the real machine stays an OPERATOR STEP (same document, section 7).
Tags: OBSERVED read on the Spark (Linux 7.0.0-1019-nvidia,
nvidia-open 580.173.02) on 2026-10-12. [SOURCE file:line] read in the named
file of NVIDIA/open-gpu-kernel-modules at tag 580.173.02 (the same version as
the driver on the box; fetched read-only into a scratch directory, not vendored).
[DOCUMENTED] quoted from a licence or manual. [INFERRED] reasoned from sources.
[UNKNOWN] nothing read answers it.
1. Plain-English summary
- This inventory assumes the GPU in the Spark is NVIDIA's "GB10B" chip. Correction 2026-10-26 (NoNvDriver review): that was never measured (PMC_BOOT_42 is unread), and the evidence points at GB20B instead. In 580.173.02, GB10B is Thor ("T264/GB10B", uvm_va_space.c:817; Thor is sm_110, the Spark is sm_121), and GB10B's class list has BLACKWELL_COMPUTE_A only (g_gpu_class_list.c:2418-2487) while CUDA++ refuses to run without BLACKWELL_COMPUTE_B and has passing chip receipts on this Spark (CUDApp evidence/FB1-CUT5-HD128-7dd92dc). COMPUTE_B appears only for GB202-GB207, GB20B and GB20C. window1-pre.sh now refuses unless window 0 reads CHIP_ID 0x1AB. To run it, three pieces of NVIDIA code have to be put in place in a fixed order: a small signed "first stage" (GSP-FMC) that the SEC2 security engine on the chip verifies and starts, which then unpacks and starts the big GSP-RM firmware (the GPU's own resource manager, 75 MB on disk), after which the host talks to the GPU through message queues the GSP-RM serves.
- Only the big piece is a file on disk. The first stage, its hash, its signature and its public key are compiled into the Linux driver module as byte arrays (open source, MIT licence, in the public driver repository). The GB10B has no separate "FSP" security processor on the GSP boot path and runs no VBIOS FWSEC step; SEC2 does the work. [SOURCE, section 4]
- Everything AIENOS would need to hand to the chip is public and redistributable unmodified under NVIDIA's firmware licence and the driver's MIT licence. What is not public is what the chip's boot ROM, SEC2 firmware, ACR and GSP-RM do internally, and the signing keys. [DOCUMENTED, section 6]
- A hosted checker now exists:
make -C native/kernel gsp-fw-inspect-test(tool native/kernel/tools/ck_gsp_fw_inspect.c). It parses the firmware container exactly as the driver does, refuses every malformed shape it was given in its self-test (22 mutations plus every truncation), and proves the file on this box matches the pinned digest. It never loads anything. - Two more hosted tools, same rule (nothing is ever sent to the chip):
ck_gsp_cot_encodebuilds and checks the exact message the driver sends to SEC2 (section 10), andck_gsp_bindata_extractreads the eight GB10B firmware arrays out of the public driver source with my own inflater and hash code, cross-checks every size, record and digest, and writes them as files (section 11). A fourth,ck_gsp_boot_args_encode, builds and checks the five memory blocks the driver hands to the GSP-RM boot (the 256-byte WPR description, the libos argument page, the log-buffer tables, the message-queue arguments and the three-level page table for the 75 MB firmware), with the GB10B values traced line by line from the driver (section 12). A fifth,ck_gsp_rpc_encode, builds and checks the message queue itself: the two ring-buffer headers, one queue message with its checksum and sequence numbers, the split of oversize messages, and the packed settings table the driver sends first (section 13). `make -C native/kernel test` runs all five self-tests. - The largest remaining unknowns for a native bring-up (section 8) are the SEC2 command protocol details beyond what the driver source shows, the message-queue (RPC) protocol after the FMC starts GSP-RM, and the state the SoC firmware (UEFI) leaves SEC2 and the GPU in at AIENOS entry. Do not attach a calendar to cut C/D until those are measured on the machine.
2. Identity of the device and the driver on the box OBSERVED
| Fact | Value |
|---|---|
| PCI address, id | 000f:01:00.0, 10de:2e12 rev a1, subsystem 10de:21ec |
| Driver's supported-gpus entry | {"devid":"0x2E12","subdevid":"0x21EC","subvendorid":"0x10DE","name":"NVIDIA GB10","features":[...,"kernelopen"]} |
| nvidia-smi | Product NVIDIA GB10, Architecture Blackwell, VBIOS 9A.0B.2D.00.00, driver 580.173.02 |
| /proc/driver/nvidia/gpus/*/information | GPU Firmware 580.173.02, Video BIOS 9a.0b.2d.00.00, DMA 41 bits, IRQ 427 |
| Kernel module | /lib/modules/7.0.0-1019-nvidia/kernel/nvidia-580-open/nvidia.ko, 19,231,198 bytes, license: Dual MIT/GPL, declares firmware: nvidia/580.173.02/gsp_ga10x.bin and firmware: nvidia/580.173.02/gsp_tu10x.bin (modinfo) |
| Chip arch/impl in the driver | GB10B is GPU_ARCHITECTURE_BLACKWELL_GB1XX (0x01A0) implementation GPU_IMPLEMENTATION_GB10B (0x0B) [SOURCE src/common/inc/swref/published/nv_arch.h:51,111] |
3. The firmware pieces, their identity and where each one lives
3.1 GSP-RM container on disk (the only file-based piece)
Package nvidia-firmware-580-580.173.02, directory /lib/firmware/nvidia/580.173.02/. OBSERVED
| File | Bytes | SHA-256 | Used by GB10? |
|---|---|---|---|
| gsp_ga10x.bin | 75,012,080 | 32cb7cf3e77f97e92f6e92135939ccb3ba382748144569c0dfccf3338d43d963 | yes (section 3.2) |
| gsp_tu10x.bin | 30,471,256 | 6f3ccbd570c7ac2a7ea910d9d87fc3d23db9ae3dfe82020ea07b17a30954495e | no (Turing/GA100 only) |
Container layout of gsp_ga10x.bin, as printed by ck_gsp_fw_inspect inspect
OBSERVED: ELF64, little-endian, type REL, machine RISC-V, 17 sections.
| Section | Offset | Size | Note |
|---|---|---|---|
| .fwimage | 64 | 74,969,088 | GSP-RM image; SHA-256 931add19204a5f0240442272f58fb2bc5db6cec4dd6f6341c1d888754146aa07 |
| .note.gnu.build-id | 74,969,152 | 36 | NT_GNU_BUILD_ID b96f53b91f7ff27613d8afe25762756a42a4dc1e |
| .fwversion | 74,969,188 | 11 | 580.173.02 plus NUL |
| .fwsignature_gb20y, _cc_gb20x, _gb20x, _cc_gb10x, _gb10y, _gb10x, _cc_gh100, _gh100, _ad10x, _ga10x | 74,969,199 onward | 4,096 each | one per chip family; GB10B uses .fwsignature_gb10y, SHA-256 08541c3a909f8fd21c3eaf55fbe6c6c30ff2b7729e885417f3fcb06a4d108f2d |
| .symtab, .strtab, .shstrtab | 75,010,160 onward | 96, 466, 265 | ELF bookkeeping |
3.2 How the driver picks that file and that signature section [SOURCE]
- File name:
#define NV_FIRMWARE_FOR_NAME(name) "nvidia/" NV_VERSION_STRING "/" name ".bin"[kernel-open/nvidia/nv.c:27]; loaded withrequest_firmware(&fw, nv_firmware_for_chip_family(fw_type, fw_chip_family), nvl->dev), "path is relative to /lib/firmware" [nv.c:4058-4062]. - Chip family:
case GPU_ARCHITECTURE_BLACKWELL_GB1XX: if (gpuImpl == GPU_IMPLEMENTATION_GB10B) return NV_FIRMWARE_CHIP_FAMILY_GB10Y; else return NV_FIRMWARE_CHIP_FAMILY_GB10X;[src/nvidia/arch/nvalloc/common/inc/nv-firmware-chip-family-select.h:58-62]. Family string:case NV_FIRMWARE_CHIP_FAMILY_GB10Y: return "gb10y";[kernel-open/common/inc/nv-firmware.h:63]. - File for the family: GB10X, GB10Y, GB20Y, GB20X, GH100, AD10X all
return NV_FIRMWARE_FOR_NAME("gsp_ga10x");[nv-firmware.h:95-102]; GA100, TU11X, TU10X getgsp_tu10x[nv-firmware.h:104-107]. So the file isnvidia/580.173.02/gsp_ga10x.bin. - Section names:
GSP_VERSION_SECTION_NAME ".fwversion",GSP_IMAGE_SECTION_NAME ".fwimage",GSP_SIGNATURE_SECTION_NAME_PREFIX ".fwsignature_",GSP_BUILD_ID_SECTION_NAME ".note.gnu.build-id",GSP_CC_SIGNATURE_SECTION_NAME_PREFIX ".fwsignature_cc_"[src/nvidia/generated/g_kernel_gsp_nvoc.h:269-274]. - Signature prefix for GB10B: the HAL table assigns
kgspGetSignatureSectionNamePrefix_GB100to "GB100 | GB102 | GB10B | ..." [g_kernel_gsp_nvoc.c:1809-1813]; that function returns the_cc_prefix only when confidential computing is enabled, elseGSP_SIGNATURE_SECTION_NAME_PREFIX[src/nvidia/src/kernel/gpu/gsp/arch/blackwell/kernel_gsp_gb100.c:94-108]. The section name is prefix + family [kernel_gsp.c:4805-4840]. Confidential computing is not enabled on this box [INFERRED (high): nvidia-smi reports no CC mode; not separately verified], so the section is.fwsignature_gb10y. - Version check:
.fwversionmust be nonzero, shorter than 64 bytes, NUL-terminated and equal toNV_VERSION_STRING, elseNV_ERR_INVALID_DATA[kernel_gsp.c:4762-4786]. - Section lookup bounds checks: ELF identifier, section header table validity, name index inside the names table,
portSafeAddU64(offset, size - 1)inside the buffer [kernel_gsp.c:5115-5166]. - What the driver then does with the pieces (not reproduced here): copies the signature into its own memory descriptor (
_kgspCreateSignatureMemdesc), builds a radix-3 page table over.fwimagefor the GSP's DMA (kgspCreateRadix3), keeps the build id [kernel_gsp.c:4871-4905].
3.3 GSP-FMC first stage and the boot descriptor, compiled into the driver [SOURCE]
The driver embeds these as C byte arrays ("bindata") with an MIT licence header
("THIS FILE IS AUTOMATICALLY GENERATED"). For GB10B the HAL table selects
kgspGetBinArchiveGspRmBoot_GB10B [g_kernel_gsp_nvoc.c:788-790] and
kgspGetBinArchiveGspRmFmcGfwProdSigned_GB10B [g_kernel_gsp_nvoc.c:924-926]
(debug-fused parts use the ...DebugSigned_GB10B archive, [889-891]).
| Archive label | Original file name (NVIDIA internal) | Bytes | Stored as | sha256 of the bytes OBSERVED |
|---|---|---|---|---|
| GspRmBoot_GB10B UCODE_IMAGE_PROD | kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_prd_image.bin | 196,608 | raw | 427a691d8453f02548d395f40ac900eb0d5b8ea864e8f14f958eef890ba400a2 |
| GspRmBoot_GB10B UCODE_DESC_PROD | kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_prd_desc.bin | 84 (RM_RISCV_UCODE_DESC) | deflate, 28 bytes | 8371a29f1c68da89b73bdc87af477c37f0b4e05939c58379d0e3d29efc5575b5 |
| GspRmBoot_GB10B UCODE_IMAGE_DBG | kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_dbg_image.bin | 196,608 | raw | 709b88a88fc7ae9bd56b010bcc0a8269d4d40b3c0454aa5b366e8d562d83a404 |
| GspRmBoot_GB10B UCODE_DESC_DBG | kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_dbg_desc.bin | 84 | deflate, 28 bytes | 8371a29f... (byte-identical to DESC_PROD) |
| GspRmFmcGfwProdSigned_GB10B UCODE_IMAGE | kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_prd_gfw_image.bin | 195,912 | raw | b13ead4b9a6b8a0d268f3094cc4f4521d6be8a9a525edbc9a8f3f397c86f1f2e |
| GspRmFmcGfwProdSigned_GB10B UCODE_HASH | g_gsp_gb10b_dyn_prd_gfw_hash.bin | 48 (SHA-384) | raw | f0389f3a9ce3bb6093e80bfc924bbe2a4ece0199b080a37f64bc1fef63f7500c |
| GspRmFmcGfwProdSigned_GB10B UCODE_SIG | g_gsp_gb10b_dyn_prd_gfw_sig.bin | 384 | raw | 9db429257a18e7c5c1a3df185001c671e21bec4e94c719a574d2ce72e2e07272 |
| GspRmFmcGfwProdSigned_GB10B UCODE_PKEY | g_gsp_gb10b_dyn_prd_gfw_pub_key.bin | 384 | raw | e9bbc669c27ad8827b5bbc2b2f52fdb47718659a651088869a5f3b11d2df7816 |
Digests measured 2026-10-12 by ck_gsp_bindata_extract over the two files
fetched from the 580.173.02 tag (raw.githubusercontent.com, path
src/nvidia/generated/<file>); the 580.173.02 Makefile pin
(make -C native/kernel gsp-bindata-test) checks the two image digests and
the decoded descriptor on every run. UCODE_HASH equals SHA-384 of
UCODE_IMAGE [OBSERVED, checked by the tool].
Array storage format [SOURCE]: each array is a BINDATA_STORAGE_PVT record
(uncompressed size, compressed size, data pointer, bCompressed,
bFileOverride, bReferencedDuringLoad) and an archive table
(BINDATA_ARCHIVE with entryNum and label/storage pairs) [bin_data_pvt.h,
bin_data.h]. A compressed array is a gzip member without the 10-byte gzip
header: raw DEFLATE, then CRC-32 and ISIZE, little endian. The driver inflates
it with its own zlib-style decoder (utilGzAllocate/utilGzGetData,
bin_data.c:36-45,96); the nouveau extractor prepends exactly that header
before gzip.decompress [nouveau/extract-firmware-nouveau.py:107-108].
The 28-byte descriptor is 20 bytes of fixed-Huffman DEFLATE plus the two
trailers OBSERVED; my decoder verifies both.
Source files: src/nvidia/generated/g_bindata_kgspGetBinArchiveGspRmBoot_GB10B.c
(2,466,261 bytes of C) and
g_bindata_kgspGetBinArchiveGspRmFmcGfwProdSigned_GB10B.c (1,238,060 bytes),
metadata comments at lines 31-40 and the storage records near the end of each
file. The README says the nouveau/ script "is used to extract some of the
firmware binary images (and related data) encoded in the source code and store
them as distinct files. These files are used by the Nouveau device driver"
[README.md:170-173]; that script knows gh100, gb100 and gb202 FMC images, not
gb10b [nouveau/extract-firmware-nouveau.py:655-662,775-781]. DONE
2026-10-12: ck_gsp_bindata_extract (section 11) is that step, written
against the generated-file grammar and the storage records, not against the
nouveau script.
Descriptor decode [SOURCE rmRiscvUcode.h:36-87, 21 u32 fields; OBSERVED
values]: version 5; bootloader/riscvElf/swbrom offsets and sizes 0;
manifest at 0x0 size 0xa00; monitorData at 0xa00 size 0xa600; monitorCode at
0xb000 size 0x24d00 (ends at 0x2fd00, inside the 196,608-byte image);
bIsMonitorEnabled 1; appVersion 0; fbReservedSize 0; bSignedAsCode 0. The
driver shifts these offsets by RISCV_BR_ADDR_ALIGNMENT = 8 bits when it
programs them [kernel_gsp_gh100.c:47, kernel_gsp_ga102.c:44], so the tool
refuses any region that is not 256-byte aligned.
Which archive the driver picks for GB10B [SOURCE]: the HAL dispatch for
kgspGetGspRmBootUcodeStorage lands on the GB100 variant
[kernel_gsp_gb100.c:115-149], which outside confidential computing calls the
GA102 variant [kernel_gsp_ga102.c:101-120]: the GspRmBoot archive's
UCODE_IMAGE_PROD and UCODE_DESC_PROD (the DBG pair only on a debug-fused
part). The GspRmFmcGfwProdSigned quartet goes into the SEC2 chain-of-trust
payload (section 10).
3.4 Pieces that are NOT on the host side at all
- SEC2's own firmware and the chip boot ROM: not loaded by the driver on GB10B. The driver only sends SEC2 commands through its EMEM queue (section 4). Who loads SEC2 firmware before Linux starts (SoC boot chain, UEFI) is [UNKNOWN] from these sources.
- ACR (the access-control ucode that sets up the protected region WPR2) and anything inside GSP-FMC and GSP-RM: NVIDIA binaries, run on the chip, not readable by me (licence section 6).
- Booter Load/Unload ucodes (older dGPU path) and VBIOS FWSEC: not used on GB10B (section 4).
4. The loading path the pinned driver uses on GB10B [SOURCE]
This is the order the native kernel would have to reproduce. Only the parts visible in the open driver are listed; what the chip does in between is inferred from the driver's comments.
- No FSP on this chip.
PDB_PROP_KFSP_IS_MISSINGis false only for "GH100 | GB100 | GB102 | GB110 | GB112 | GB202 | GB203 | GB205 | GB206 | GB207"; GB10B falls to the default, true g_kern_fsp_nvoc.c:227-236. - SEC2 boots the GSP-FMC.
PDB_PROP_KSEC2_BOOT_GSPFMCis true exactly for "GB10B | GB20B | GB20C" [g_kernel_sec2_nvoc.c:446-450]. The GSP code takes the SEC2 branch when there is no FSP:ksec2PrepareBootCommands_HAL[kernel_gsp_gh100.c:803-808] and "Starting to boot GSP via SEC2" thenksec2SendBootCommands_HAL[kernel_gsp_gh100.c:868-872]. - No VBIOS FWSEC step.
kgspExtractVbiosFromRomfor GB10B is the stub_395e98[g_kernel_gsp_nvoc.c:1300], which returnsNV_ERR_NOT_SUPPORTED[g_kernel_gsp_nvoc.h:1803-1805]; the init code treats that as "Extracting VBIOS image from ROM is not supported" and continues [kernel_gsp.c:4053-4058]. The VBIOS version string nvidia-smi shows therefore comes from elsewhere (GSP-RM at runtime) [INFERRED (medium)]. - No Booter ucodes.
bPartitionedFmcis true for "GH100 | GB100 | GB102 | GB10B | ..." [g_kernel_gsp_nvoc.c:447-451]; with it set, "The secure boot ucode is included in the partitioned FMC, no need for separate Booter ucodes" [kernel_gsp.c:4076-4082]. - Host-side preparation (
kgspInitRm): prepare the boot binary (copy the GspRmBoot image into 4 KiB-aligned system memory flaggedMEMDESC_FLAGS_ALLOC_IN_UNPROTECTED_MEMORY, keep the 84-byte descriptor) [kernel_gsp.c:4583-4640]; prepare the GSP-RM image (version check,.fwimage, signature section, radix-3 page table, build id) [kernel_gsp.c:4848-4905]; logging structures; wait forGFW_BOOTOK (kgspWaitForGfwBootOk_HAL); set GPU time; libos init args and message-queue init args [kernel_gsp.c:4108-4165]. - WPR meta for an integrated GPU.
kgspPopulateWprMeta_GB10Breuses the GH100 layout, then setsvgaWorkspaceSize = 0,pmuReservedSize = 0,nonWprHeapSize = 0, with the comment "For GB10Y, unlike on dGPU, this structure is in sysmem" and the WPR2 layout diagram (WPR/LSB header, ACR metadata, GSP FW heap, GSP FW ELF, boot bin) [kernel_gsp_gb10b.c:32-90]. "The actual offsets are determined by secure ACR ucode and patched into the GspFwWprMeta structure" [kernel_gsp_gb10b.c:33-35]. - SEC2 command.
ksec2SetupGspImages_GB10Bcopies the FMC image into system memory, writes its physical address into anNVDM_PAYLOAD_COT(gspFmcSysmemOffset,frtsSysmemSize= image size), copies the 48-byte hash, the 384-byte signature and the 384-byte public key into the payload, and pointsgspBootArgsSysmemOffsetat the cached GSP-FMC arguments [kernel_sec2_gb10b.c:438-535].ksec2PrepareBootCommands_GB10Ballocates the payload withversion = cotPayloadVersion[561-583];ksec2SendBootCommands_GB10Bsends it asNVDM_TYPE_COTthroughksec2SendMessage[612-623]. Transport: an MCTP/NVDM packet written a DWORD at a time into SEC2 EMEM channel 0 (1 KiB) viaNV_PSEC_EMEMC/NV_PSEC_EMEMD, then queue head/tail writes (NV_PSEC_QUEUE_TAILbeforeNV_PSEC_QUEUE_HEAD"because it will interrupt SEC2") [kernel_sec2_gb10b.c:36-210]. Register definitions come frompublished/blackwell/gb10b/dev_sec_pri.h,dev_gsp.h,dev_falcon_v4.h[kernel_sec2_gb10b.c:30-32]. - Wait and hand over. Wait for SEC2 to release the GSP target mask
(
ksec2WaitForGspTargetMaskReleased_HAL), then for lockdown release or an FMC error inNV_PFALCON_FALCON_MAILBOX0, programNV_PFALCON_FALCON_OSwith the descriptor'sappVersion, confirm the RISC-V core is active, init the status queue, wait forkgspWaitForRmInitDone[kernel_gsp_gh100.c:874-982]. From then on the host talks to GSP-RM over the RPC message queues. - Teardown and reset.
kgspResetHw_GB100(waits for reset access, then resets the engine) [kernel_gsp_gb100.c:46-88];kgspTeardown_GH100[kernel_gsp_gh100.c:995]. Not read in detail here.
5. Hosted checker: ck_gsp_fw_inspect
native/kernel/tools/ck_gsp_fw_inspect.c; Makefile targets gsp-fw-inspect
and gsp-fw-inspect-test (the latter is part of make -C native/kernel test,
so CI runs the self-test on every PR; the real-file step prints NOT_RUN when
/lib/firmware/nvidia/580.173.02/gsp_ga10x.bin is absent, as it is in CI).
inspect FILE [--family NAME] [--expect-version V]: the driver's checks from section 3.2 plus a bounds check on the build-id note, then SHA-256 of the whole file, of.fwimageand of the selected signature section. Exit 0 andRESULT OK, or exit 2 andRESULT REFUSED <reason>.selftest: a 640-byte valid container built in memory, then 22 single-field mutations (bad magic, 32-bit, big-endian, wrong type, wrong machine, wrong shentsize, zero sections, shstrndx out of range, table past end, string table without NUL, name index past table, section past end, offset overflow near 2^64, empty image, version without NUL, version text mismatch, 64-byte version, empty signature, signature for another family only, wrong note type, descriptor past section, truncated note) plus every truncation from 0 to 639 bytes; each must be refused for the named reason.- Result on the box, 2026-10-12 OBSERVED: `CK_GSP_FW_INSPECT_SELFTEST: PASS
(22 mutations)
;CK_GSP_FW_INSPECT_PIN: PASS` with the file digest equal to the pin in the Makefile (GSP_FW_SHA256). - It does not verify NVIDIA's signature over
.fwimage(that is the chip's job; format and keys are not mine) and it never loads anything.
6. Licence limits [DOCUMENTED]
Firmware package: /usr/share/doc/nvidia-firmware-580-580.173.02/copyright,
"License: NVIDIA-graphics-drivers" (NVIDIA Driver License Agreement):
- 1.1(d): may "Distribute the SOFTWARE ... for use with operating system kernels distributed under the terms of an OSI-approved open source license ... provided that (i) the binary files thereof are not modified in any way ... and (ii) this Agreement is provided to each SOFTWARE recipient". AIENOS is Apache-2.0, an OSI-approved licence, so shipping the unmodified file plus the agreement text is within this clause [INFERRED (high): plain reading, not legal advice].
- 2.1: firmware only on NVIDIA platforms; no translation to another architecture or language. 2.2: no reverse engineering, decompiling or disassembly of binaries. 2.3: no derivative works of binaries. 2.6: no bypassing authentication or security mechanisms. 2.9: may not cause the SOFTWARE to become subject to an open source licence.
- Consequence for this project: I may ship and load the bytes as they are,
parse their public container format (the driver does exactly that, in MIT
source), and must never patch, unpack
.fwimage, or work around the signature checks. A SEC2 refusal is final and is reported, never bypassed.
Driver source: COPYING says "Except where noted otherwise, the individual
files within this package are licensed as MIT"; every file read here carries
SPDX-License-Identifier: MIT (including the bindata arrays and
kernel_sec2_gb10b.c). The kernel module reports Dual MIT/GPL. Reading and
reimplementing the host-side protocol from MIT source is permitted; copying
code into AIENOS would require carrying the MIT notice (none was copied here).
7. What this means for cut C and cut D
- Cut C "inventory" is done by this document; "parsers and refusal tests for
firmware metadata" by
ck_gsp_fw_inspect. The next host-only steps that do not need the machine: (a) DONE 2026-10-12:ck_gsp_bindata_extract(section 11) writes the eight arrays as files with digests, own DEFLATE and SHA-384,make -C native/kernel gsp-bindata-test; (b) DONE 2026-10-12: the encoder, decoder and refusal tests forNVDM_PAYLOAD_COT, the MCTP/NVDM headers, the EMEM packet andGSP_FMC_BOOT_PARAMSareck_gsp_cot_encode(section 10); (c) DONE 2026-10-12:ck_gsp_boot_args_encode(section 12) encodes, decodes and refusesGspFwWprMeta, the libos init-argument page, the log-buffer PTE prefix,GSP_ARGUMENTS_CACHED, the RPC shared-buffer page table and the radix-3 ELF table with the GB10B populate values traced; (d) DONE on the host side 2026-10-12:ck_gsp_rpc_encodeencodes, decodes and refuses the queue headers, queue elements, RPC headers, continuation records and the packed registry table (section 13). What remains for item 4 of section 8 is the content ofGspSystemInfoand the list of RPCs a native kernel must issue afterGSP_INIT_DONE, both of which need the real device. - The machine-side part of cut C (first SEC2 command, FMC boot, GSP-RM init done) is an attended-window item under the P08 rules: documented cold power state, no prior Linux GPU initialization, camera, abort rule, and the B7b-style one-time boot entry. Nothing in this document authorizes it.
8. Known unknowns
- RESOLVED 2026-10-12 [SOURCE]: the
NVDM_PAYLOAD_COTlayout is 860 packed bytes, GB10B uses version 1, signature and key sizes 384, hash 48; the whole wire format is in section 10 and checked byck_gsp_cot_encode. - RESOLVED on the host side 2026-10-12 [SOURCE]:
GSP_FMC_BOOT_PARAMS(section 10),GspFwWprMetawith every valuekgspPopulateWprMeta_GH100and_GB10Bfill (heap 133 MiB, bootloader 196,608 bytes at descriptor offsets 0xb000/0xa00/0x0, frts 0, nonWprHeap 0, FB layout left to the FMC), the libos init-argument page (seven logs then RMARGS), the log-buffer PTE prefix,GSP_ARGUMENTS_CACHED(message-queue offsets, 512 MiB sysmem heap on ZERO_FB) and the radix-3 ELF table are in section 12 and checked byck_gsp_boot_args_encode. [INFERRED (medium)] that the GSP-FMC accepts these exact values without Linux present: only the chip can confirm that. - [UNKNOWN] What SEC2 requires to be already true when the first command
arrives (its own firmware loaded by the SoC boot chain? clocks? power
state?), and whether UEFI leaves the GPU in that state at AIENOS entry.
On Linux the driver finds "GFW_BOOT" complete before it starts
(
kgspWaitForGfwBootOk_HAL); who completes it without Linux is not shown. NARROWED 2026-10-20 (section 14.2 items 1-2): on GB10B that wait is a no-op and the SEC2 send checks only a software property and EMEM HEAD == TAIL; what stays UNKNOWN is whether SEC2 is running with an empty queue at AIENOS entry. - RESOLVED on the host side 2026-10-12 [SOURCE] for the transport: the queue
headers, element format, checksum, sequence rules, continuation records,
the init handshake (
GSP_INIT_DONE0x1001 with sequence 0 and result NV_OK) and the two RPCs queued before boot (GSP_SET_SYSTEM_INFO72,SET_REGISTRY73) are byte-exact in section 13 andck_gsp_rpc_encode.GspSystemInfois 936 bytes (RPC length 968) under the natural layout [INFERRED (high): struct text copied from the pinned headers and compiled; no pack pragma]. Still [UNKNOWN]: the exactGspSystemInfocontents a native kernel must send (they come from the real PCI/BAR/ACPI state), and which RPCs after init are mandatory for device init, memory mapping, channel and submit; the native kernel needs only a subset but it is not established. - [UNKNOWN] Whether the confidential-computing (
_cc_) sections or the SPDM session are ever required on this platform. Assumed not [INFERRED (high)]; defaultPDB_PROP_CONFCOMPUTE_ENABLEDis NV_FALSE (section 14.2 item 3). - [RESOLVED on the host side 2026-10-12, SOURCE; consumer side INFERRED
(medium)]
GspRmFmcGfwProdSigned_GB10B(image, hash, signature, public key) is what SEC2 receives in the chain-of-trust payload (section 10).GspRmBoot_GB10B(image plus RM_RISCV_UCODE_DESC) is whatkgspPopulateWprMeta_GH100describes to the FMC as the "GSP-FMC ucode" bootloader:sizeOfBootloader,sysmemAddrOfBootloader,bootloaderCodeOffset/DataOffset/ManifestOffsetcome from that image and the descriptor's monitorCode/monitorData/manifest offsets [kernel_gsp_gh100.c:295-335]; the direct boot-ROM path programs the same three regions intoNV_PGSP_FALCON_BCR_DMAADDR_*[kernel_gsp_gh100.c:_kgspBootstrapGspFmc_GH100], which GB10B does not take (section 11). Who reads the WprMeta bootloader fields on the SEC2 path (FMC or ACR) runs inside NVIDIA code and is not readable. - [UNKNOWN] Reset and re-open behavior on GB10B after a failed FMC boot
(
kgspResetHw_GB100waits for "reset access"); needed for the resource-incarnation protection (#285) before any repeated attempt.
9. Scope and limits of this document
Read: nv-firmware.h, nv-firmware-chip-family-select.h, nv_arch.h, nv.c (the
firmware load function only), kernel_gsp.c (init, container parsing, boot
binary), kernel_gsp_gh100.c (prepare, bootstrap), kernel_gsp_gb100.c,
kernel_gsp_gb10b.c, kernel_gsp_booter.c and kernel_gsp_fwsec.c (grep only),
kernel_sec2_gb10b.c, g_kernel_gsp_nvoc.c/.h, g_kernel_sec2_nvoc.c,
g_kern_fsp_nvoc.c (property tables only), the two GB10B bindata files
(metadata comments only), README.md, COPYING, the firmware copyright file;
for section 10 also kern_fsp_cot_payload.h, fsp_nvdm_format.h,
fsp_mctp_format.h, fsp_emem_channels.h, kernel_sec2.c (ksec2SendMessage,
ksec2PollForCanSend), g_kernel_sec2_nvoc.c/.h (version, sizes, SEID),
gspifpub.h, gsp_init_args.h, gsp_fw_wpr_meta.h, kernel_gsp_gh100.c
(kgspSetupGspFmcArgs), and published/blackwell/gb10b dev_sec_pri.h,
dev_gsp.h, dev_falcon_v4.h; for sections 3.3 and 11 also rmRiscvUcode.h,
bin_data.c, bin_data.h, bin_data_pvt.h, kernel_gsp_ga102.c,
nouveau/extract-firmware-nouveau.py (lines 82-114 only), kernel_gsp_gh100.c
(kgspBootstrap_GH100, _kgspLockdownReleasedOrFmcError,
kgspPopulateWprMeta_GH100, _kgspBootstrapGspFmc_GH100), g_kern_fsp_nvoc.c
(the PDB_PROP_KFSP_IS_MISSING chip list), and the full bindata record
tables of both GB10B files; for section 12 also gsp_fw_wpr_meta.h,
libos_init_args.h, gsp_fw_heap.h, gsp_init_args.h, nvrm_registry.h (heap
and stack keys), nv-firmware-registry.h, nvtypes.h (NvLength), g_gpu_nvoc.c
(the ZERO_FB chip list), g_kernel_gsp_nvoc.c/.h (frts, heap, log-count,
libos-version and kernel-logging HAL tables), kernel_gsp.c (`kgspSetupLibos
InitArgs_IMPL, _kgspGenerateInitArgId, kgspPopulateGspRmInitArgs_IMPL`,
kgspCreateRadix3, _kgspCalculateFwHeapSize, kgspGetFwHeapSize_IMPL,
kgspInitLogging, log registration), kernel_gsp_tu102.c (the boot-argument
allocations), kernel_gsp_gh100.c (kgspPopulateWprMeta_GH100), kernel_gsp_
gb10b.c (kgspPopulateWprMeta_GB10B), message_queue_cpu.c, message_queue.h,
message_queue_priv.h (sizes and page table only); for section 13 also
msgq.c, msgq_priv.h (the shared ring library), message_queue_cpu.c
(GspMsgQueueSendCommand, GspMsgQueueReceiveStatus, GspStatusQueueInit),
message_queue_priv.h (GSP_MSG_QUEUE_ELEMENT, _checkSum32),
g_rpc-message-header.h, rpc_headers.h, rpc_global_enums.h, rpc_common.c
(rpcWriteCommonHeader), rpc.c (_issueRpcLarge, rpcSetRegistry_v17_00,
rpcGspSetSystemInfo_v17_00), kernel_gsp.c (_kgspRpcSendMessage,
kgspInitRm, kgspWaitForRmInitDone), kernel_gsp_tu102.c
(kgspSetCmdQueueHead), dev_gsp.h (Turing, NV_PGSP_QUEUE_HEAD), os.c and
arch/nvalloc/unix/src/registry.c (RmPackageRegistry), g_os_nvoc.h
(PACKED_REGISTRY_TABLE), gsp_static_config.h (GspSystemInfo),
g_chipset_nvoc.h (BUSINFO), gpu_acpi_data.h (ACPI_METHOD_DATA),
ctrl0073system.h (NV0073_CTRL_SYSTEM_ACPI_ID_MAP_MAX_DISPLAYS),
nvacpitypes.h and acpigenfuncs.h (DSM enums; not part of GspSystemInfo).
Not read: the RPC set after init, ACR or GSP internals (not available). No Context7 or web manual covers this layer; the
DGX Spark user guide is silent on GSP firmware loading (DOCS SILENT on native
GSP bring-up).
10. The SEC2 chain-of-trust message, byte for byte [SOURCE]
Everything in this section is read from open-gpu-kernel-modules tag
580.173.02 and mirrored by native/kernel/tools/ck_gsp_cot_encode.c
(make -C native/kernel gsp-cot-test, part of make test). Nothing here was
sent to the device.
Transport. NVDM (NVIDIA Data Model) over MCTP over SEC2 EMEM channel 0,
1024 bytes (fsp/fsp_emem_channels.h:9-11; kernel_sec2_gb10b.c:36-41,
:322-333). A packet is two header dwords then the payload
(kernel_sec2.c:50-52, :305-325):
| dword | field | value for the boot message | source |
|---|---|---|---|
| 0 | MCTP transport header. Layout (GB20B form): SOM bit 31, EOM bit 30, SEQ 29:28, TO 27, TAG 26:24, SEID 23:16, DEID 15:8, RSVD 7:4, VERSION 3:0 | GB10B: 0x00000001, the HAL constant; the driver does not build SOM/EOM on GB10B. (GB20B/GB20C: 0xC0000000 = SOM=1, EOM=1, SEQ=0, SEID=0.) Corrected 2026-10-26; this row said 0xC0000000 for GB10B | kernel_sec2.c:320 calls ksec2CreateMctpHeader_HAL; GB10B binds ksec2CreateMctpHeader_539ab4 = return 1; (g_kernel_sec2_nvoc.c:786-788, g_kernel_sec2_nvoc.h:853-855); GB20B/GB20C bind ksec2CreateMctpHeader_GB20B (kernel_sec2_gb20b.c:206-219) |
| 1 | NVDM header: TYPE 6:0 = 0x7e (vendor PCI), IC 7 = 0, VENDOR_ID 23:8 = 0x10de, NVDM_TYPE 31:24 | 0x1410DE7E (NVDM_TYPE_COT = 0x14) | fsp_mctp_format.h:17-22; fsp_nvdm_format.h:14; kernel_sec2_gb10b.c:391-402 |
A message longer than 1016 bytes would continue in packets that carry only
the MCTP dword with SOM=0 and SEQ = (n mod 4) (kernel_sec2.c:330-357); the
boot message is 860 bytes, so it is always one packet, and the driver sends
only this one command on the channel (kernel_sec2_gb10b.c:719-722).
Payload NVDM_PAYLOAD_COT, #pragma pack(1), 860 bytes
(src/nvidia/inc/kernel/gpu/fsp/kern_fsp_cot_payload.h:12-29):
| offset | size | field | GB10B value | source |
|---|---|---|---|---|
| 0 | 2 | version | 1 | g_kernel_sec2_nvoc.c:478-482 |
| 2 | 2 | size | 860 (sizeof) | kernel_sec2_gb10b.c:580-581 |
| 4 | 8 | gspFmcSysmemOffset | physical address of the GSP-FMC image in system memory | :507 |
| 12 | 8 | frtsSysmemOffset | 0 (never set) | :578 zero-fill |
| 20 | 4 | frtsSysmemSize | the GSP-FMC image size (195,912), sic | :508 |
| 24 | 8 | frtsVidmemOffset | 0 | :578 |
| 32 | 4 | frtsVidmemSize | 0 | :578 |
| 36 | 48 | hash384 | UCODE_HASH array | :514 |
| 84 | 384 | publicKey | UCODE_PKEY array | :526-527; size g_kernel_sec2_nvoc.c:475-476 |
| 468 | 384 | signature | UCODE_SIG array | :519-520; size g_kernel_sec2_nvoc.c:472-473 |
| 852 | 8 | gspBootArgsSysmemOffset | physical address of GSP_FMC_BOOT_PARAMS | :532, :241-258 |
The packet is therefore 868 bytes. It is written at EMEM offset 0 with the
write auto-increment bit, one dword at a time, then QUEUE_HEAD(0) = 0 and
QUEUE_TAIL(0) = 864 (padded size minus one dword) (`kernel_sec2_gb10b.c:
700-732, :108-152, :160-210`). The channel may be written only while
HEAD == TAIL (:344-356, polled kernel_sec2.c:605-640); the command counts
as handled once FALCON_MAILBOX0 no longer reads 0xc001cafe (:285-297);
before the boot the driver also waits until the GSP falcon's HWCFG2 register
reads non-zero and not the 0xBADF41xx "target locked" pattern (:262-281).
Register addresses for GB10B: published/blackwell/gb10b/dev_sec_pri.h
(MAILBOX0/1, QUEUE_HEAD/TAIL(i), EMEMC(i), EMEMD(i)), dev_gsp.h (NV_PGSP
base), dev_falcon_v4.h (HWCFG2); the tool does not use them.
Boot arguments the payload points at: GSP_FMC_BOOT_PARAMS
(src/nvidia/arch/nvalloc/common/inc/gsp/gspifpub.h), natural C layout, 88
bytes on the LP64 ABI the driver and this host share (the self-test checks the
offsets against the compiler); filled by kgspSetupGspFmcArgs_GH100
(kernel_gsp_gh100.c:415-470), allocated 4 KiB aligned (:164):
| offset | size | field | fresh-boot value |
|---|---|---|---|
| 0 | 4 | initParams.regkeys | 0 unless CC or NVLink proxy keys |
| 8 | 4 | bootGspRmParams.target | DMA target of the descriptor (0 FB, 1 coherent sysmem, 2 non-coherent sysmem) |
| 12 | 4 | bootGspRmParams.gspRmDescSize | 256 (sizeof GspFwWprMeta) |
| 16 | 8 | bootGspRmParams.gspRmDescOffset | physical address of the GspFwWprMeta |
| 24 | 8 | bootGspRmParams.wprCarveoutOffset | not set by the driver (0) |
| 32 | 4 | bootGspRmParams.wprCarveoutSize | not set (0) |
| 36 | 1 | bootGspRmParams.bIsGspRmBoot | 1 |
| 40 | 4 | gspRmParams.target | DMA target of the libos init arguments |
| 48 | 8 | gspRmParams.bootArgsOffset | physical address of the libos init arguments |
| 56 | 24 | gspSpdmParams | only with SPDM (assumed off) |
| 80 | 8 | gspRmMemParams.flushSysmemAddrVal{Lo,Hi} | only with CC (0) |
INFERRED, enforced by the tool but not a driver check: the image address is
4 KiB aligned (the driver maps NV_ALIGN_UP(size, 0x1000) bytes of
page-granular system memory, kernel_sec2_gb10b.c:489-495) and every
system address fits the 41-bit DMA window /proc/driver/nvidia/gpus reports
for this GPU (section 2; --dma-bits overrides).
Evidence 2026-10-12 on the box: CK_GSP_COT_ENCODE_SELFTEST: PASS (80 checks:
both layouts against the compiler, golden header words, encode/decode round
trips, 46 field mutations and every header truncation refused by name), same
under ASan/UBSan.
11. Extracted arrays and the GB10B boot decision [SOURCE]
Tool: native/kernel/tools/ck_gsp_bindata_extract.c (hosted C, no
dependencies beyond my own native/argus/sha256.c; SHA-384, CRC-32 and the
raw-DEFLATE decoder, stored/fixed/dynamic blocks, are in the tool).
make -C native/kernel gsp-bindata-extract builds it;
make -C native/kernel gsp-bindata-test runs the self-test and, when the two
driver files are present under GSP_BINDATA_DIR (default
~/.cache/aienos/open-gpu-kernel-modules-580.173.02), the pin check; it is
part of make test. Without the files the pin line reads NOT_RUN, never
PASS.
What it checks before it writes a byte: the generated-file grammar
(FUNCTION, FILE NAME, FILE TYPE BINARY, COMPRESSION, `COMPLEX_STRUCT
NO, DATA SIZE, COMPRESSED SIZE`), the array identifier
kgspBinArchive<stem>_BINDATA_LABEL_<label>_data, the storage record
(both sizes, the data pointer, bCompressed), the archive table (entryNum,
order, labels), duplicate labels, more than 16 arrays or 8 MiB per array;
for compressed arrays the DEFLATE stream, the CRC-32 and the ISIZE trailer;
then the meaning: UCODE_DESC_* is 84 bytes, version 5, monitor enabled,
with manifest/monitor regions inside the matching UCODE_IMAGE_* and
256-byte aligned; UCODE_HASH is 48 bytes and equals SHA-384 of
UCODE_IMAGE; UCODE_SIG and UCODE_PKEY are 384 bytes; any other label is
refused. Any failure prints REFUSED: <reason> and exits 2.
Usage: ck_gsp_bindata_extract extract FILE [--out DIR] prints one
`array <function> <label> file=... stored=N compressed=yes|no size=N
sha256=...line per array, the decoded descriptors,hash384 ... equals
sha384(UCODE_IMAGE)andRESULT OK arrays=N; selftest` prints
CK_GSP_BINDATA_EXTRACT_SELFTEST: PASS|FAIL (N checks, M failures).
Evidence 2026-10-12 on the box: `CK_GSP_BINDATA_EXTRACT_SELFTEST: PASS (124
checks, 0 failures)`, same under ASan/UBSan; both GB10B files extract with
RESULT OK arrays=4 and the digests in section 3.3;
CK_GSP_BINDATA_PIN: PASS; a foreign C file is refused ("no arrays found").
The boot decision the driver makes for GB10B, as the native kernel would have
to mirror it [SOURCE kernel_gsp_gh100.c:833-995 kgspBootstrap_GH100,
reached for GB10B through the dispatch else-branch, g_kernel_gsp_nvoc.c:719]:
- If a KernelFsp object exists and
PDB_PROP_KFSP_DISABLE_GSPFMCis not set: "boot GSP via FSP" (kfspSendBootCommands). GB10B is not in the FSP-present chip list ("GH100 | GB100 | GB102 | GB110 | GB112 | GB202 | GB203 | GB205 | GB206 | GB207"), soPDB_PROP_KFSP_IS_MISSINGis true g_kern_fsp_nvoc.c:227-236: not this branch. - Else if a KernelSec2 object has
PDB_PROP_KSEC2_BOOT_GSPFMC: "boot GSP via SEC2" (ksec2SendBootCommands, section 10). True for "GB10B | GB20B | GB20C" [g_kernel_sec2_nvoc.c:446-450]: this is the GB10B path. - Else the direct path
_kgspBootstrapGspFmc_GH100: programNV_PGSP_FALCON_BCR_DMAADDR_FMCCODE/FMCDATA/PKCPARAMfrom the GspRmBoot image and the descriptor's monitorCode/monitorData/manifest offsets, thenNV_PGSP_FALCON_CPUCTL_STARTCPU. Not taken on GB10B.
After the SEC2 send, in order: ksec2WaitForGspTargetMaskReleased
(conditional on PDB_PROP_KSEC2_GSP_MODE_GSPRM, kernel_sec2_gb10b.c:368 and
:224/:250/:469); gpuTimeoutCondWait(_kgspLockdownReleasedOrFmcError)
(kernel_gsp_gh100.c:492 onward: NV_PFALCON_FALCON_MAILBOX0 carries ACR/FMC
error codes, treated as fatal; the boot-argument address may still sit in the
mailboxes until the FMC clears them); then any non-zero MAILBOX0 is "GSP-FMC
reported an error"; kflcnIsRiscvActive; then "Waiting for GSP fw RM to be
ready" (the RPC init handshake, section 8 item 4). Each of these is a
measurable checkpoint for the attended window, with its own timeout and its
own refusal line. Nothing in this section has been run on the chip.
12. The boot-argument blocks, byte for byte [SOURCE]
Tool: native/kernel/tools/ck_gsp_boot_args_encode.c (hosted C, no
dependencies). make -C native/kernel gsp-bootargs-test runs the self-test
(142 checks: compiler layouts, golden constants, round trips, every single-
field mutation refused); it is part of make test. Modes wprmeta, libos,
logbuf, rmargs, mqtable, radix3 write a block; check-wprmeta,
check-libos, check-rmargs refuse any block that is not the fresh-boot
GB10B shape; layout prints the offsets. Nothing is sent anywhere.
What the driver puts in system memory before it sends the SEC2 message of section 10, every line from tag 580.173.02 (file:line in the tool header):
- GspFwWprMeta, 256 bytes in one 4 KiB cached page. Host-filled fields
on GB10B: magic
0xdc3aae21371a60b3, revision 1; bootloader = the GspRmBoot PROD image (196,608 bytes, 4 KiB-aligned copy) with the descriptor offsets code 0xb000, data 0xa00, manifest 0x0; the GSP-RM ELF size and the physical address of the radix-3 root page; the signature buffer (256-aligned, size rounded up to 256);gspFwHeapSize133 MiB;nonWprHeapSize,frtsSize,vgaWorkspaceSize,pmuReservedSize, VF partition count all 0 on GB10B; optional crash-report queue; flags 0 (SCAN_RECOVERY_MARGINonly on a retry with ECC disabled). Every FB layout field (gspFwRsvdStart…vgaWorkspaceOffset),bootCountandverifiedstay 0: the FMC/ACR fill them and setverifiedto0xa0a0a0a0a0a0a0a0, which the host later checks. Heap arithmetic: GB10B is ZERO_FB (memory size counted as 1 GB), so the heap is OS carveout 22 MiB + base 14 MiB + 1 MiB + 96 MiB = 133 MiB, clamped to at least 88 MiB; a registry override would be clamped to [88, 280] MiB. The tool refuses anything outside that range. - Libos init arguments, one 4 KiB uncached page of 32-byte entries
(id8, pa, size, kind, loc). GB10B (libos 3, release build, kernel logging
on) has exactly eight: LOGINIT, LOGINTR, LOGRM, LOGMNOC, LOGDBG (64 KiB
each), LOGROOT (4 KiB), LOGKRNL (64 KiB), then RMARGS (4 KiB, the
GSP_ARGUMENTS_CACHEDpage); all CONTIGUOUS/SYSMEM; id8 is the name packed big-endian (RMARGS =0x524d41524753). Order and sizes are refused if they differ. - Each log buffer (cached, contiguous, 4 KiB aligned, zeroed) starts
with an 8-byte put pointer followed by its own page table: one physical
address per 4 KiB page. The init-argument
pais that first PTE. - GSP_ARGUMENTS_CACHED, 88 bytes in one 4 KiB cached page: shared
message-queue buffer address, 129 page-table entries, command queue at
offset 4096, status queue at 266,240 (page table 4 KiB + command queue
256 KiB); suspend/resume fields 0;
bDmemStack1; profiler 0; sysmem heap address and size (512 MiB default on ZERO_FB, contiguous uncached). The RPC shared buffer is 129 pages: page 0 holds the addresses of all 129 pages (itself first), then 64 pages of command queue and 64 of status queue. The element format inside those queues is item 4 of section 8. - Radix-3 page table for the ELF: 4 KiB pages, 512 entries each, three table levels then the data; level 0 must be one page (so up to 512 GiB). For the pinned 75,012,080-byte container: 18,314 data pages, 36 level-2 pages, 1 level-1, 1 level-0, tables 155,648 bytes, data at offset 0x26000, allocation 75,169,792 bytes. The WPR meta carries the ELF size and the level-0 page address.
Where these sit in the SEC2 flow: the GSP_FMC_BOOT_PARAMS page (section
- carries both addresses: the WprMeta at offset 16 (`bootGspRmParams.
gspRmDescOffset`, size 256 at offset 12) and the libos init-argument page at
offset 48 (
gspRmParams.bootArgsOffset, DMA target at 40; kernel_gsp_gh100.c:457-461). The FMC hands the first to ACR/the bootloader and the second to GSP-RM as its libos boot arguments; GSP-RM then finds the RMARGS entry, readsGSP_ARGUMENTS_CACHEDand maps the message queues. Everything above is what Linux prepares; whether the GSP-FMC on this board accepts exactly this shape without Linux ever having run is INFERRED (medium) until the attended window measures it. Caching note (section 4 of the hardware manual skill): the libos page and the sysmem heap are the only uncached blocks; the WprMeta, RMARGS, log buffers, radix-3 tables and queue buffer are cached sysmem in the driver, so a native port must keep the same attributes or flush explicitly.
13. The message queue, byte for byte [SOURCE]
Backed by native/kernel/tools/ck_gsp_rpc_encode.c (`make -C native/kernel
gsp-rpc-test; modes selftest | layout | txheader | check-txheader | ring |
element | check-element | contplan | registry | check-registry`). Every value
is DOCUMENTED from open-gpu-kernel-modules 580.173.02; that the GSP-RM on
GB10B accepts the same bytes without Linux present is INFERRED (medium) until
the first attended run. Nothing here touches a device.
- Two rings in one 512 KiB buffer (section 12 item 4: the RPC shared
buffer is one 4 KiB page table followed by the command queue then the
status queue, each 0x40000 bytes). Both use the shared ring library
(
msgq.c). Each ring starts with a 32-byte producer headermsgqTxHeader{version 0, size, msgSize, msgCount, writePtr, flags, rxHdrOff, entryOff} and holds the consumer's 4-bytemsgqRxHeader{readPtr} atrxHdrOff. The driver creates its command queue with size 0x40000, msgSize 4096, header alignment 16, entry alignment 4096 andMSGQ_FLAGS_SWAP_RX, so rxHdrOff = 32, entryOff = 4096, msgCount = (0x40000 - 4096) / 4096 = 63, with 62 usable slots (one slot always stays free). Golden header bytes: `00000000 00000400 00100000 3f000000 00000000 01000000 20000000 00100000`. Because both sides set SWAP_RX, each side keeps the read pointer for the messages it consumes in its own buffer: the CPU's readPtr for the status queue lives at offset 32 of the command queue, and GSP's readPtr for the command queue lives at offset 32 of the status queue. - Linking to GSP's status queue (
msgqRxLink, retried for up to 4 s byGspStatusQueueInitwith a health check): the CPU reads GSP's 32-byte header from the status queue and refuses it with the library codes -2 (msgSize < 16), -3 (msgSize > size), -6 (size < entryOff + msgSize), -7 (size mismatch), -8 (msgSize mismatch), -9 (version != 0), -10 (rxHdrOff < 32, entryOff < 36, or msgCount != (size - entryOff) / msgSize). The tool applies the same checks (check-txheader) and also refuses writePtr >= msgCount. - Ring arithmetic: free = (readPtr + msgCount - writePtr - 1) mod
msgCount; available = (writePtr + msgCount - readPtr) mod msgCount; a
pointer at or beyond msgCount is corrupt and reads as 0 (
ringmode). - One message (
GSP_MSG_QUEUE_ELEMENT, 80-byte header-plus-RPC-header struct;elementmode): bytes 0-31 authentication tag and AAD (zero without confidential computing), u32 checkSum at 32, u32 seqNum at 36, u32 elemCount at 40, then the 32-byte RPC header at 48: header_version 0x03000000 (major 3, minor 0), signature 0x43505256, length = 32 + payload, function, rpc_result = rpc_result_private = 0xFFFFFFFF (pending), sequence, cpuRmGfid 0. The message length is 48 + rpc.length and must be within [80, 65536]; it is zero-padded to a multiple of 8; elemCount = ceil(length / 4096); seqNum is the queue's running transmit count (0 for the first message ever sent, then +1 per accepted message); checkSum is computed with the field zeroed as the XOR of every 64-bit word, folded to (high 32) XOR (low 32), so a correct element XOR-sums to zero. The driver copies it 4096 bytes at a time into successive ring slots, publishes the new writePtr, then writes 0 to the doorbellNV_PGSP_QUEUE_HEAD(0)= 0x110c00. RPC sequence: synchronous calls take the driver's running RPC counter, asynchronous ones (including the two pre-boot RPCs) carry 0. - Receiving (
check-elementmode): the CPU reads slot 0 of the status ring, takes elemCount from it, copies all slots, and refuses the message if the XOR checksum over the padded length is not zero or the seqNum is not the expected receive count (an older seqNum is consumed and the read retried up to 3 times). Init is done when a message with functionGSP_INIT_DONE0x1001, sequence 0 and rpc_result NV_OK arrives. - Oversize RPCs (
contplanmode): the largest single RPC is 65488 bytes (65536 - 48). A larger buffer is sent as the real function with length 65488 followed by messages whose function isCONTINUATION_RECORD71, each carrying up to 65456 payload bytes. - Before boot the driver queues two asynchronous RPCs into the command
ring so they are the first things GSP-RM reads:
GSP_SET_SYSTEM_INFO72 (payloadGspSystemInfo: PCI/BAR physical addresses, PCI ids, chipset, ACPI method data, hypervisor and VF state, host page size; 936 bytes, so RPC length 968 in one slot; field offsets in the tool'slayoutoutput; contents come from the real device, so this is attended-window work) andSET_REGISTRY73 (payloadPACKED_REGISTRY_TABLE,registrymode): u32 size, u32 numEntries, then 16-byte entries {u32 nameOffset; u8 type; u32 data; u32 length} followed by the packed NUL-terminated names and values in entry order; a DWORD (type 1) keeps its value indatawith length 4, STRING (3) and BINARY (2) put their bytes after the name withdata= their offset. An empty registry is not sent at all; a zero-length string or binary entry is dropped by the driver and refused by the tool. - Function and event numbers a native kernel must match: NOP 0, CONTINUATION_RECORD 71, GSP_SET_SYSTEM_INFO 72, SET_REGISTRY 73, GSP_RM_CONTROL 76, GSP_RM_ALLOC 103; events GSP_INIT_DONE 0x1001, GSP_RUN_CPU_SEQUENCER 0x1002, RC_TRIGGERED 0x1004, GSP_LOCKDOWN_NOTICE 0x101c, GSP_POST_NOCAT_RECORD 0x1020; results RPC_UNKNOWN_FUNCTION 0xFF100001 and RPC_INVALID_MESSAGE_FORMAT 0xFF100002 are what GSP-RM returns for a wrong function number or a malformed header.
Limits: the tool does not know which RPCs after init a native kernel must
send for device init, memory mapping, channel creation and submission
(section 8 item 4 remains open there), knows the size but not the contents
of GspSystemInfo, and does not cover the confidential-computing encryption path (assumed off,
as on this machine today). Caching note: the queue buffer is cached sysmem
in the driver with explicit store fences before each writePtr publish and
doorbell write; a native port must keep the fence or use uncached mappings.
14. The composed boot builder and the post-init RPCs (L192, 2026-10-20) [SOURCE / OBSERVED]
Plain English: sections 10 to 13 described each piece the driver hands the chip, one at a
time, in standalone tools. native/kernel/dev/gb10_gsp_boot.c now builds all of them
together, in kernel-style C (no C library, no device access), into one block of memory with
real cross-links: the boot parameters point at the WprMeta page, the WprMeta page points at
the radix-3 table and the bootloader, the libos page points at the logs and the RPC
arguments, and so on. It also builds the single message SEC2 receives and the messages a
native kernel sends to GSP-RM after it is up. Nothing is loaded and no register is written:
the output is bytes and addresses, ready for an attended run that is not authorized here.
14.1 What the builder produces
gsp_boot_build(arena, inputs, plan) lays out, every block 4 KiB aligned, in this order:
WprMeta page, libos init-argument page, the seven GB10B log buffers with their PTE prefix,
GSP_ARGUMENTS_CACHED, the 129-page RPC shared buffer (page table, command queue with its
msgqTxHeader, status queue left zero for GSP to create), the radix-3 table plus a copy of the
GSP-RM ELF, the GspRmBoot bootloader, the signature (size rounded up to 256), the GSP-FMC
image and GSP_FMC_BOOT_PARAMS. It queues the two pre-boot RPCs (GSP_SET_SYSTEM_INFO with the
caller's 936 bytes, then SET_REGISTRY when entries are given; both async, sequence 0,
element seqNum 0 and 1) and returns the SEC2 EMEM packet (MCTP dword 0x00000001 on GB10B, NVDM dword
0x1410de7e, 860-byte NVDM_PAYLOAD_COT, 868 bytes, QUEUE_TAIL 864). The firmware bytes,
the 512 MiB sysmem heap address, GspSystemInfo and the registry are inputs; the builder never
reads a file or a device.
Post-init encoders over the same ring: gsp_rpc_rm_alloc (103), gsp_rpc_rm_control (76),
gsp_rpc_rm_free (10), gsp_rpc_get_static_info (65), and gsp_mq_recv for the status queue
(checksum, sequence and element-count checks; the CPU's readPtr lives in the command queue at
rxHdrOff 32, SWAP_RX). Messages stream into the ring slot by slot, including across the ring
end, with no large stack buffer. A full fence precedes every writePtr publish
(message_queue_cpu.c:574-576 uses portAtomicMemoryFenceStore); the doorbell write
(NV_PGSP_QUEUE_HEAD(0)) is the caller's and is not in this file.
14.2 New source findings
- No GFW-boot wait on GB10B [SOURCE]:
kgspWaitForGfwBootOkis bound tokgspWaitForGfwBootOk_ac1694for "GB10B | GB20B | GB20C" (g_kernel_gsp_nvoc.c:1499-1513), which isreturn NV_OK;(g_kernel_gsp_nvoc.h:1889-1891). The Linux driver does not wait for a GPU firmware boot stage on this chip before talking to SEC2. Narrows section 8 item 3. - SEC2 send preconditions are software-only [SOURCE]:
ksec2SafeToSendBootCommands_GB10Bchecks onlyPDB_PROP_KSEC2_BOOT_GSPFMC(kernel_sec2_gb10b.c:415-425), which is NV_TRUE for GB10B (g_kernel_sec2_nvoc.c:446-455);ksec2CanSendPacket_GB10Brequires EMEM queue HEAD == TAIL (kernel_sec2_gb10b.c:344-353). After the packet:_ksec2WaitForCmdHandling(MAILBOX0), thenkgspBootstrap_GH100waits for the GSP target mask release, read asNV_PGSP + NV_PFALCON_FALCON_HWCFG2being non-zero and not0xBADF41xx(kernel_sec2_gb10b.c:265-283, kernel_gsp_gh100.c:897-910). Still [UNKNOWN]: whether SEC2 is running and its EMEM queue empty when AIENOS starts without Linux; nothing in the driver starts SEC2 itself. - Confidential computing is off by default [SOURCE]:
PDB_PROP_CONFCOMPUTE_ENABLEDis set NV_FALSE at construction (g_conf_compute_nvoc.c:235); the encrypted-queue branch ofGspMsgQueueSendCommand(message_queue_cpu.c:485-505) is only taken when it is enabled. Strengthens section 8 item 5 [INFERRED (high)].GSP_FMC_BOOT_PARAMS.initParams.regkeysispCC->gspProxyRegkeys(kernel_gsp_gh100.c:426); its value without CC is [UNKNOWN] and is a builder input (default 0). - DMA targets in GSP_FMC_BOOT_PARAMS [SOURCE]:
_kgspMemdescToDmaTarget(kernel_gsp_gh100.c:390-404) maps cached sysmem toGSP_DMA_TARGET_COHERENT_SYSTEM(1) and uncached sysmem toNONCOHERENT_SYSTEM(2). The WprMeta page is cached and the libos page uncached (kernel_gsp_tu102.c:120-171), so the boot descriptor target is 1 and the boot-args target is 2. GSP_RM_ALLOClength leaves the params out [SOURCE]:rpcRmApiAlloc_GSPcallsrpcWriteCommonHeader(.., sizeof(rpc_gsp_rm_alloc_v03_00))(rpc.c:11195) and copies the params after the fixed part without growing the length;rpcWriteCommonHeadersetslength = 32 + paramLength(rpc_common.c:183). The queue sizes, checksums and element count from that length (message_queue_cpu.c:465-505) but copies whole 4 KiB slots, so the params travel in the first slot outside the checksum. The builder reproduces this exactly and refuses params that would spill past the first slot (more than 3,984 bytes).GSP_RM_CONTROLdoes count its params (rpc.c:10978-10984: `sizeof(*rpc_params) + paramsSize`). [UNKNOWN] whether GSP-RM would also accept a length that includes the alloc params; I keep the driver's form.GET_GSP_STATIC_INFOrequest [SOURCE]: zero-filled, `length = 32 + sizeof(GspStaticConfigInfo), refused by the driver abovemaxRpcSize` (rpc.crpcGetGspStaticInfo_v14_00).sizeof(GspStaticConfigInfo)could not be computed: gsp_static_config.h pulls nvassert.h, which requires an RM port header (NV_PORT_HEADER). [UNKNOWN]; the builder takes the size as a parameter.
14.3 The object chain to a usable channel [OBSERVED on Linux, INFERRED for native]
What my working Linux path asks the driver for, in order (physics nvrm/nvrm.c at e95e3ed,
the layer every chip result on this box went through): NV01_ROOT_CLIENT;
NV0000_CTRL_CMD_GPU_GET_ID_INFO_V2; NV01_DEVICE_0; NV20_SUBDEVICE_0;
NV01_MEMORY_VIRTUAL; NV0080_CTRL_CMD_GPU_GET_CLASSLIST (twice: count, then list);
NV2080_CTRL_CMD_GR_GET_INFO; FERMI_VASPACE_A; NV2080_CTRL_CMD_GPU_GET_GID_INFO;
NV01_MEMORY_SYSTEM per buffer; KEPLER_CHANNEL_GROUP_A; FERMI_CONTEXT_SHARE_A;
BLACKWELL_CHANNEL_GPFIFO_A; BLACKWELL_COMPUTE_B;
NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN; NVA06C_CTRL_CMD_GPFIFO_SCHEDULE.
On Linux these reach CPU-RM first, and CPU-RM forwards to GSP-RM with GSP_RM_ALLOC /
GSP_RM_CONTROL the objects GSP owns, while doing memory descriptors, page tables and BAR
mappings itself. [INFERRED (medium)] a native kernel sends the same chain through
gsp_rpc_rm_alloc / gsp_rpc_rm_control with its own handles, after GSP_INIT_DONE and
GET_GSP_STATIC_INFO. [UNKNOWN] which objects GSP-RM accepts without the CPU-RM-side state
(VA space page directory via SET_PAGE_DIRECTORY 54, memory registration) and in what form:
that is the boundary with cut D (L193, GPU page tables and channel model) and is only
settled by reading CPU-RM's per-class forwarding and then by the chip.
14.4 How it is tested (host only)
make -C native/kernel test-gb10-gsp-boot(also part ofmake testandmake sanitize): every block decoded at hand-written byte offsets, cross-links, determinism, the ring (full ring, wrap across the ring end, corrupt pointers), the status reader (empty, good, bad checksum, bad sequence, bad element count) and every input refusal.make -C native/kernel gb10-gsp-nvhdr-test: the builder's mirror structs compared field by field (offset and size) with the NVIDIA headers themselves, and a built plan decoded through NVIDIA's own types (GspFwWprMeta,LibosMemoryRegionInitArgument,GSP_ARGUMENTS_CACHED,msgqTxHeader,rpc_message_header_v03_00,rpc_gsp_rm_alloc_v03_00,rpc_gsp_rm_control_v03_00,NVOS00_PARAMETERS_v03_00,GSP_FMC_BOOT_PARAMS,NVDM_PAYLOAD_COT, function and event numbers). Needs the 580.173.02 source tree atOGKM_DIRand fails without it;make testruns it throughgb10-gsp-nvhdr-check, which prints NOT_RUN instead when the tree is absent.make -C native/kernel gb10-gsp-free: compiled with the kernel's freestanding flags plus-Wstack-usage=4096; no undefined symbols (no hidden memcpy/memset).make -C native/kernel gb10-gsp-mutants: four test-only mutants (readPtr read from the wrong queue, checksum not stored, radix pointers shifted one page, alloc length counting the params) must each make the test fail.
Results with commands and exit codes are in the L192 handoff
(~/handoffs/2026-10-20-gb10-gsp-host.md).
14.5 Still needs the chip (unchanged authority: attended window only)
Whether SEC2 accepts the packet with Linux absent; whether GSP-FMC accepts this WprMeta and
the 133 MiB heap; the real GspSystemInfo bytes; sizeof(GspStaticConfigInfo); the per-class
CPU-RM work behind each forwarded alloc; reset and re-open after a failed boot (section 8
item 7). The builder is not linked into any kernel image.