interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / docs / nvidia-out / GSP-RPC-TABLE.md

269 lines · 32076 bytes Raw Blame History Source

GSP boot sequence, RPC table and serving-surface map (580.173.02, GB20B / GB10B)

Milestone 1b of the NoNvDriver lane. This is source-only research: no device was opened, no driver bound, nothing run on the GPU. Written 2026-10-26.

Source pin: NVIDIA open-gpu-kernel-modules 580.173.02 at /home/drakestapleton/workspace/_ext/open-gpu-kernel-modules-580.173.02, git 20e4e6e19cc26ba47b5cbe23130a396be100c427.

Path shorthands used below:

Labels:

Chip identity is still open. Only a PMC_BOOT_42 read in an authorised window can settle it.

One new piece of evidence bears on this:


1. Boot sequence (GB20B primary; GB10B differences marked)

Signed boot chain: load unmodified only (SBC). Marks a step where NVIDIA-signed code goes to the chip or runs on it. My driver may only copy those bytes unmodified and point the chip at them.

FWSEC / VBIOS ucode step:

#StepGB20B sourceGB10B differenceSBC
0Chip power-on: boot ROM, SEC2 firmware, FWSEC/GFW run with no driver. The driver only observes.completion flag kernel_sec2_gb20b.c:540-550no observable FWSEC flag; the driver checks GSP HWCFG2 ≠ 0xBADF41xx (kernel_sec2_gb10b.c:264-283)SBC (never touched)
1Pick the firmware file nvidia/580.173.02/gsp_ga10x.bin and the family. impl ≥ GB20B gives GB20Y.N/arch/nvalloc/common/inc/nv-firmware-chip-family-select.h:66; strings nv-firmware.h:59-62impl == GB10B gives GB10Y (:60)
2Signature section is .fwsignature_ + family, so .fwsignature_gb20y (.fwsignature_cc_ prefix under CC)N/src/kernel/gpu/gsp/kernel_gsp.c:4807-4837,4869; prefix HAL arch/blackwell/kernel_gsp_gb100.c:95 bound at g_kernel_gsp_nvoc.c:1811.fwsignature_gb10ySBC (signature bytes)
3kgspInitRm_IMPL starts. RPC infrastructure: GspMsgQueuesInit allocates 256 KiB command and 256 KiB status queues in sysmem (unprotected, noncontiguous)kernel_gsp.c:3984, :3662, :2565; message_queue_cpu.c:71-72,186,222-262same
4kgspAllocBootArgs_HAL → GSP_FMC_BOOT_PARAMSkernel_gsp.c:3682; arch/hopper/kernel_gsp_gh100.c:148-190same
5Prepare the GSP-RM ELF: version check, signature memdesc, radix-3 page table over .fwimagekernel_gsp.c:4117, :4843, radix3 :4884sameSBC (.fwimage ELF, unmodified)
6LIBOS log buffers and kgspSetupLibosInitArgs (log regions, then RMARGS = GSP_ARGUMENTS_CACHED)kernel_gsp.c:4125,4156,5179-5215; cached args filled :4519-4571same
7kgspQueueAsyncInitRpcs pre-stuffs the command queue before boot with GSP_SET_SYSTEM_INFO (72), then SET_REGISTRY (73)kernel_gsp.c:4179 → :3792-3815 (72 at :3800, 73 at :3807)same
8_kgspBootGspRm: the WPR2-already-up check is skipped when PDB_PROP_GPU_PREINITIALIZED_WPR_REGION is set (true for GB10B, GB20B, GB20C)kernel_gsp.c:3902-3912, :4222same
9kgspPopulateWprMeta_GB10B: the GH100 layout (256 B GspFwWprMeta), then vgaWorkspace = pmuReserved = nonWprHeap = 0, "No VGA Workspace on iGPU"kernel_gsp.c:3920; binding g_kernel_gsp_nvoc.c:989 (GB10B|GB20B|GB20C); body arch/blackwell/kernel_gsp_gb10b.c:62-88; GH100 kernel_gsp_gh100.c:295-388 (size 256 at :305)same functionSBC (WprMeta names the GspRmBoot bootloader)
10kgspPrepareForBootstrap_GH100 takes the SEC2 branch → ksec2PrepareBootCommands_GB20B, which waits for FWSEC, checks SafeToSend, allocates the COT payload with version 2kernel_gsp.c:3928; kernel_gsp_gh100.c:775-811 (SEC2 :802); kernel_sec2_gb20b.c:952-1019, SafeToSend :892-937; version g_kernel_sec2_nvoc.c:485_GB10B kernel_sec2_gb10b.c:560-596: no FWSEC wait; SafeToSend checks only the BOOT_GSPFMC property (:414-427); version 1 (nvoc:481)
11ksec2SetupGspImages_GB20B: pick the archive (Prod GspRmFmcGfwProdSigned_GB20B, CC or Debug), copy the FMC image to sysmem, fill NVDM_PAYLOAD_COT (gspFmcSysmemOffset :801, hash :803, sig :806-808, pkey :811-813, bootArgs :817). frtsSysmemSize is left 0kernel_sec2_gb20b.c:577-692,729-827; struct N/inc/kernel/gpu/fsp/kern_fsp_cot_payload.h:36-56 (860 B packed, MODELED sum)_GB10B sets frtsSysmemSize = image size (kernel_sec2_gb10b.c:508); archive is Prod or Debug only, no CC (:215-238)SBC (FMC image, SHA-384 hash, RSA-3K signature and public key from bindata)
12kgspBootstrap_GH100: RISC-V mode, then ksec2SendBootCommands_HALkernel_gsp.c:3946; kernel_gsp_gh100.c:833-985, :850, :871same call siteSBC (handoff)
13GB20B send: MCTP+NVDM packet (NVDM_TYPE_COT 0x14, sec2_nvdm_format.h:39) into SEC2 EMEM channel 0 (1 KiB, sec2_emem_channels.h:34,37), then wait for and parse the SEC2 response (ksec2SendAndReadMessage)kernel_sec2_gb20b.c:1033-1084, send :1044; MCTP header :205-220; EMEM MSGQ read :77-109,432-538; vendor check :293-331; error map :1113-1136; kernel_sec2.c:282,427,496GB10B: fire-and-forget ksec2SendMessage (kernel_sec2_gb10b.c:622), then poll FALCON_MAILBOX0 ≠ 0xc001cafe (:285-297, :640)SBC (SEC2 verifies and starts the FMC on chip)
14Wait for the GSP target mask release, then lockdown release or FMC error in MAILBOX0kernel_gsp_gh100.c:901,926,944-948sameSBC (FMC/ACR run, set up WPR2, load GspRmBoot and GSP-RM)
15Program FALCON_OS = descriptor appVersion; check RISC-V activekernel_gsp_gh100.c:956,959same
16GspStatusQueueInit, then kgspWaitForRmInitDone: rpcRecvPoll(GSP_INIT_DONE 0x1001), check rpc_resultkernel_gsp_gh100.c:977,980; kernel_gsp.c:5252-5280 (:5267); message_queue_cpu.c:317same
17While waiting, GSP may send GSP_RUN_CPU_SEQUENCER (0x1002). The CPU executes its register ops (WRITE/MODIFY/POLL/DELAY/STORE/CORE_RESET/START/WAIT_HALT)kernel_gsp.c:5297; opcodes :5331-5420; boot-safe event list :1503-1509same
18NV_RM_RPC_GET_GSP_STATIC_INFO (65), then log pollingkernel_gsp.c:4270,4285same
19Unload: NV_RM_RPC_UNLOADING_GUEST_DRIVER (47)kernel_gsp.c:4339same

Shared HAL bindings for GB10B and GB20B (MEASURED, g_kernel_gsp_nvoc.c):


2. RPC table

2.1 Framing (both chips)

ItemLayoutSizeSource
Shared memorypage table, cmd queue (msgqTxHeader + entries), status queue (msgqTxHeader + entries), each page-aligneddefault 0x40000 per queueN/inc/kernel/gpu/gsp/message_queue_priv.h:35-41; message_queue_cpu.c:71-72
msgqTxHeaderu32 version, size, msgSize, msgCount, writePtr, flags, rxHdrOff, entryOff32 B (MODELED)C/shared/msgq/inc/msgq/msgq_priv.h:49-59; MSGQ_VERSION 0 :38
msgqRxHeaderu32 readPtr4 Bmsgq_priv.h:62-65
MESSAGE_QUEUE_INIT_ARGUMENTSu64 sharedMemPhysAddr; u32 pageTableEntryCount; NvLength cmdQueueOffset, statQueueOffset—N/inc/kernel/gpu/gsp/gsp_init_args.h:29-34
GSP_MSG_QUEUE_ELEMENTu8 authTagBuffer[16]; u8 aadBuffer[16]; u32 checkSum; u32 seqNum; u32 elemCount; NV_DECLARE_ALIGNED(rpc_message_header_v rpc, 8)header 48 B (44 + 4 pad; MODELED). Upstream bindgen shows the same 4-byte pad (nova bindings.rs:869-877)message_queue_priv.h:43-51
Element sizemin RM_PAGE_SIZE 4096, max 16 × that; RPC payload max = max − 48—message_queue_priv.h:91-103
Send / receiveseqNum :481, elemCount :482, checksum :515/519; receive :608—message_queue_cpu.c:456-519,608
rpc_message_header_v03_00u32 header_version, signature, length, function, rpc_result, rpc_result_private, sequence; union {u32 spare | cpuRmGfid}; rpc_message_data[]32 B (MODELED)N/generated/g_rpc-message-header.h:33-54; nova bindings.rs:686-696
Queues1 queue, RM task index 0—N/inc/kernel/gpu/gsp/message_queue.h:31-32
Oversizethe function is split across CONTINUATION_RECORD (71) elements—enum rpc_global_enums.h:81

2.2 Functions and events my driver needs

Enum file: N/inc/kernel/vgpu/rpc_global_enums.h. Structs: N/generated/g_rpc-structures.h (shown as S:). Senders: N/src/kernel/vgpu/rpc.c (shown as R:).

Upstream reference: nova-core drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs, fetched 2026-10-26 from https://raw.githubusercontent.com/torvalds/linux/master/drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs. That is the master branch with no commit pin; the fetched file's sha256 is 70d5d253ebffe5834b6cac75b6a37e6aa18d0c39a940162b5cb5d17e330f79e7. These are r570 numbers. Every number in the rows below matches 580.

DirNameNumber (enum line)Param struct (S: line)Sender / handler (580)PhaseUpstream nova r570
CPU→GSPGSP_SET_SYSTEM_INFO72 (:82)rpc_gsp_set_system_info_v17_00 {u32 data} (S:1484); payload GspSystemInfo N/inc/kernel/gpu/gsp/gsp_static_config.h:172-227R:10493; queued kernel_gsp.c:3800boot (pre-queued)bindings.rs:132; GspSystemInfo :580
CPU→GSPSET_REGISTRY73 (:83)PACKED_REGISTRY_TABLE N/generated/g_os_nvoc.h:234-239. The rpc struct is described at S:8368 only; the exact struct is NOT_VERIFIEDR:10666; queued kernel_gsp.c:3807boot (pre-queued):133; PACKED_REGISTRY_TABLE :844
CPU→GSPGET_GSP_STATIC_INFO65 (:75)rpc_get_gsp_static_info_v14_00 {u32 data} (S:440); payload GspStaticConfigInfo (gsp_static_config.h:169)R:9661; called kernel_gsp.c:4270boot (after INIT_DONE):125; GspStaticConfigInfo_t :507
bothCONTINUATION_RECORD71 (:81)raw continuation bytesqueue layerany:131
CPU→GSPGSP_RM_ALLOC103 (:113)rpc_gsp_rm_alloc_v03_00 {hClient, hParent, hObject, hClass, status, paramsSize, flags, reserved[4], params[]} (S:1491)rpcRmApiAlloc_GSP R:11138 (header R:11195; NV01_ROOT params-size workaround R:11182-11184); bound as physical RMAPI N/src/kernel/rmapi/rpc_common.c:74-79runtime:163
CPU→GSPGSP_RM_CONTROL76 (:86)rpc_gsp_rm_control_v03_00 {hClient, hObject, cmd, status, paramsSize, rmapiRpcFlags, rmctrlFlags, rmctrlAccessRight, u64 reserved0, params[]} (S:1506)rpcRmApiControl_GSP R:10853 (header R:10984)runtime:136
CPU→GSPFREE10 (:20)rpc_free_v03_00 {NVOS00_PARAMETERS_v03_00} (S:160)rpcRmApiFree_GSP R:11311 (header R:11333)runtime:70
CPU→GSPDUP_OBJECT21 (:31)rpc_dup_object_v03_00 (struct line NOT_VERIFIED)rpcRmApiDupObject_GSP R:11259 (header R:11285)runtime (UVM dup paths, §3):81
CPU→GSPUNLOADING_GUEST_DRIVER47 (:57)rpc_unloading_guest_driver_v1F_07 (S:378)R:9166; called kernel_gsp.c:4339teardown:107
CPU→GSPALLOC_MEMORY4 (:14)rpc_alloc_memory_v13_01 (S:79)R:3458 (header R:3470). Under the GSP client only via memRegisterWithGsp (N/src/kernel/mem_mgr/mem.c:515, macro inc/kernel/vgpu/rpc.h:113-150), reached from memdescSendMemDescToGSP (gpu/mem_mgr/mem_desc.c:4786,4865). No serving-path caller foundruntime, not on my path:64
CPU→GSPUPDATE_BAR_PDE70 (:80)rpc_update_bar_pde_v15_00 (S:447)R:9701; called gpu/bus/kern_bus.c:880. Whether it fires on an iGPU with no BAR2 FB: NOT_VERIFIEDboot:130
GSP→CPUGSP_INIT_DONE0x1001 (:253)header only; rpc_result checked_kgspRpcRecvPoll kernel_gsp.c:1648,2338,2362-2367boot:292 (4097)
GSP→CPUGSP_RUN_CPU_SEQUENCER0x1002 (:254)rpc_run_cpu_sequencer_v17_00 {bufferSizeDWord, cmdIndex, regSaveArea[8], commandBuffer[]} (S:1535)_kgspRpcRunCpuSequencer kernel_gsp.c:1520 → :5297boot, suspend/resume:293; struct :979
GSP→CPUPOST_EVENT0x1003 (:255)rpc_post_event_v17_00 (S:1545)_kgspRpcPostEvent (dispatch ~kernel_gsp.c:1495-1560)runtime (notifiers):294
GSP→CPURC_TRIGGERED0x1004 (:256)rpc_rc_triggered_v17_02 (S:1560)_kgspRpcRCTriggered (same dispatch)runtime (channel errors):295
GSP→CPUMMU_FAULT_QUEUED0x1005 (:257)header only (NOT_VERIFIED)_kgspRpcMMUFaultQueued kernel_gsp.c:1532runtime (non-replayable faults):296
GSP→CPUOS_ERROR_LOG0x1006 (:258)rpc_os_error_log_v17_00 (S:1579)boot-safe list kernel_gsp.c:1503-1509any:297
GSP→CPUUCODE_LIBOS_PRINT0x100c (:264)rpc_ucode_libos_print_v1E_08 (S:1656)boot-safe listany:303
GSP→CPUGSP_LOCKDOWN_NOTICE0x101c (:280)rpc_gsp_lockdown_notice_v17_00 (S:1817)boot-safe listboot:319
GSP→CPUGSP_POST_NOCAT_RECORD0x1020 (:284)rpc_gsp_post_nocat_record_v01_00 (S:1783)boot-safe listany:323

Count: 20 rows. That is 11 CPU→GSP functions (9 needed on my path; ALLOC_MEMORY is not on the path; UPDATE_BAR_PDE is NOT_VERIFIED), 1 bidirectional CONTINUATION_RECORD, and 8 GSP→CPU events. RECOVERY_ACTION 0x1022 (:286) exists but is not wired here: NOT_VERIFIED.

2.3 Functions that the GSP client does NOT send (vGPU-guest only). Do not implement.

Under the GSP client, IS_FW_CLIENT (N/generated/g_gpu_nvoc.h:5689) sends the NV_RM_RPC_* macros to the physical RMAPI, and that RMAPI is GSP_RM_ALLOC/GSP_RM_CONTROL:

So these dedicated function numbers never appear on the GSP-client wire: [INFERENCE] from the macro bodies; grep for NV_RM_RPC_MAP_MEMORY_DMA in N/src/kernel finds no caller.

NameNumber (enum line)
ALLOC_CHANNEL_DMA6 (:16)
ALLOC_OBJECT9 (:19)
MAP_MEMORY_DMA14 (:24)
UNMAP_MEMORY_DMA15 (:25)
ALLOC_SUBDEVICE19 (:29)
ALLOC_SHARE_DEVICE32 (:42)
SET_PAGE_DIRECTORY54 (:64)
UNSET_PAGE_DIRECTORY79 (:89)
CTRL_GPFIFO_SCHEDULE97 (:107)
CTRL_GPFIFO_GET_WORK_SUBMIT_TOKEN186 (:196)

3. Serving-surface map (CUDApp nvrm/nvrm.c, a520cd30)

Legend:

All RM-control routing claims rest on the export table flags word lacking RMCTRL_FLAGS_ROUTE_TO_PHYSICAL = 0x40 (N/inc/kernel/rmapi/control.h:233). Such a control is implemented in kernel RM. Kernel RM may then issue its own RPC.

#Surface itemDispositionEvidence (MEASURED unless marked)
1NV_ESC_CARD_INFO(b) enumerate the PCI device (sysfs/VFIO)KO/nv.c:2523; ioctl kernel-open/common/inc/nv-ioctl-numbers.h:31
2NV_ESC_REGISTER_FD(b) fd bookkeepingN/arch/nvalloc/unix/src/escape.c:844
3RM_ALLOC NV01_ROOT_CLIENT(b) local client. (a) GSP_RM_ALLOC hClass NV01_ROOT is sent lazily with the first deviceresource_list.h:64; rpc.h:48-~100 (bFirstDevice, AllocWithHandle(..., NV01_ROOT, ...))
4RM_ALLOC NV01_DEVICE_0(a) GSP_RM_ALLOCgpu/device.c:185 → rpc.h:198-206 FWCLIENT → rpc_common.c:74-79
5RM_ALLOC NV20_SUBDEVICE_0(a) GSP_RM_ALLOCgpu/subdevice/subdevice.c:124 → rpc.h:367-375
6RM_ALLOC NV01_MEMORY_VIRTUAL(a) GSP_RM_ALLOC (VA range object)mem_mgr/virt_mem_range.c:127 → rpc.h:271-290
7RM_ALLOC NV01_MEMORY_SYSTEM(b): pin pages and make an IOVA (VFIO_IOMMU_MAP_DMA, or the iommufd equivalent). No RPC under the GSP client; the NV_RM_RPC_ALLOC_MEMORY call sits inside if (IS_VIRTUAL(pGpu))mem_mgr/system_mem.c:462-490
8RM_ALLOC FERMI_VASPACE_ABoth. (a) GSP_RM_ALLOC (skipped for FLA/BAR1/host VAS). (b) CPU builds the page tables. The server-reserved PDEs are copied to GSP with NV90F1_CTRL_CMD_VASPACE_COPY_SERVER_RESERVED_PDES (GSP-client gate gpu_vaspace.c:4048, call :4062). The wire for that control is GSP_RM_CONTROL [INFERENCE]gpu/mem_mgr/vaspace_api.c:227,250-263; mem_mgr/gpu_vaspace.c:4040-4062
9RM_ALLOC KEPLER_CHANNEL_GROUP_A(a) GSP_RM_ALLOC, issued explicitly by the constructor (the resource entry resource_list.h:464 carries no RPC flag)gpu/fifo/kernel_channel_group_api.c:409,425-428
10RM_ALLOC FERMI_CONTEXT_SHARE_A(a) GSP_RM_ALLOC (generic path)resource_list.h:406,413 RPC_TO_ALL; generic rmapi/alloc_free.c:766,871
11RM_ALLOC BLACKWELL_CHANNEL_GPFIFO_ABoth. (a) GSP_RM_ALLOC via _kchannelSendChannelAllocRpc. (b) CPU allocates the instance block, USERD, RAMFC and error notifier, then puts their PAs into the alloc paramsgpu/fifo/kernel_channel.c:951-955; PA fill :562-575. On GB20B, BLACKWELL_CHANNEL_GPFIFO_B also exists (g_gpu_class_list.c:3634)
12RM_ALLOC BLACKWELL_COMPUTE_B(a) GSP_RM_ALLOC (generic channel-descendant RPC). (b) the GR context buffers are allocated by the client RM when gpuIsClientRmAllocatedCtxBufferEnabledclass entry resource_list.h:2114; compute entries carry RS_FLAGS_CHANNEL_DESCENDANT_COMMON = GPUS_LOCK | RPC_TO_ALL (resource_desc_flags.h:41,45; flags resource_list.h:2109,2120; which flags line belongs to 2114 is NOT_VERIFIED); gpu/gr/kernel_graphics_object.c:507,623. GB10B lacks this class (g_gpu_class_list.c:2426-2427 vs :3635)
13RM_ALLOC HOPPER_USERMODE_A (doorbell)(b): map the usermode page. BAR0 NV_VIRTUAL_FUNCTION window 0x30000-0x3FFFF (priv 0x0-0x2FFFF), or BAR1 when it is available (iGPU/coherent → BAR0 path). The doorbell write is the work-submit token to NVC361_NOTIFY_CHANNEL_PENDING 0x90. No RPCgpu/fifo/usermode_api.c:84-100; gpu/fifo/arch/hopper/kernel_fifo_gh100.c:111-131 (HAL for GB10B and GB20B, g_kernel_fifo_nvoc.c:527); C/inc/swref/published/blackwell/gb100/dev_vm.h:27,31; C/sdk/nvidia/inc/class/clc361.h:33; UVM rings it at U/uvm_volta_host.c:44. GB20B also lists BLACKWELL_USERMODE_A (g_gpu_class_list.c:3659)
14CTRL NV0000 GPU_GET_ID_INFO_V2(b) kernel-RM localrmapi/client_resource.c:1405; flags 0x109 (g_client_resource_nvoc.c:811)
15CTRL NV0080 GPU_GET_CLASSLIST(b) local class listgpu/device_ctrl.c:56 → gpuGetClassList; GB20B list g_gpu_class_list.c:3620-3727
16CTRL NV2080 GPU_GET_GID_INFO(b) local gpuGetGidInfo. Where the GID bytes come from (static info): NOT_VERIFIEDgpu/subdevice/subdevice_ctrl_gpu_kernel.c:3627-3640; flags 0x10118 (g_subdevice_nvoc.c:569)
17CTRL NV2080 GR_GET_INFO(b) served from the cached KGRAPHICS_STATIC_INFO, filled once at init by (a) GSP_RM_CONTROL NV2080_CTRL_CMD_INTERNAL_STATIC_KGR_GET_INFOgpu/gr/kernel_graphics.c:3004,3036,1231
18CTRL NVA06C GPFIFO_SCHEDULE(a) GSP_RM_CONTROL (IS_VIRTUAL \|\| IS_GSP_CLIENT → NV_RM_RPC_CONTROL)gpu/fifo/kernel_channel_group_api.c:1065,1176-1183; flags 0x10008 (g_kernel_channel_group_api_nvoc.c:211)
19CTRL NVC36F GET_WORK_SUBMIT_TOKEN(b): kfifoGenerateWorkSubmitToken on the CPU, then a notifier write. The RPC only fires for vGPUgpu/fifo/kernel_channel.c:3302,3316-3317,3362-3367; flags 0x10008 (g_kernel_channel_nvoc.c:539). Token formula HAL: NOT_VERIFIED
20RM_FREE(a) FREE (10) for objects that went to GSP; (b) local free otherwiseR:11311
21RM_MAP_MEMORY (CPU mapping)(b) mmap of sysmem or BAR0/BAR1escape.c:507; rmapi/mapping_cpu.c:120
22RM_MAP_MEMORY_DMA / UNMAP(b) page tables: dmaAllocMapping_GM107 → gvaspaceMap → mmuWalkMap (the CPU writes PDE/PTE), plus a TLB invalidate. The invalidate mechanism under the GSP client is NOT_VERIFIEDescape.c:624,640; gpu/mem_mgr/arch/maxwell/virt_mem_allocator_gm107.c:319; mem_mgr/gpu_vaspace.c:2190,2239
23UVM_INITIALIZE / UVM_MM_INITIALIZE(b)U/uvm.c:927, :59
24UVM_REGISTER_GPUBoth. (a) the RM objects via nvUvmInterfaceRegisterGpu/DeviceCreate/GetGpuInfo (GSP_RM_ALLOC/CONTROL). (b) fault buffer: nvUvmInterfaceInitFaultInfo → NVB069_CTRL_CMD_FAULTBUFFER_GET_SIZE/GET_REGISTER_MAPPINGS, NVC369_..._REGISTER_REPLAY_BUF/NON_REPLAY_BUF; ownership NV2080_CTRL_CMD_MC_CHANGE_REPLAYABLE_FAULT_OWNERSHIP. Then UVM reads and parses the buffer on the CPU (Blackwell parser)U/uvm_gpu.c:3801,2927,1414,2932; U/uvm_gpu_replayable_faults.c:140,188,247,254; N/src/kernel/rmapi/nv_gpu_ops.c:9174,9225,9253,9273,9293,2382,2391; U/uvm_blackwell_fault_buffer.c:34,95
25UVM_REGISTER_GPU_VASPACEBoth. (a) DupAddressSpace (DUP_OBJECT/ALLOC), SetPageDirectory → NV0080_CTRL_CMD_DMA_SET_PAGE_DIRECTORY. (b) UVM owns the page tree with the integrated-GPU MMU mode for both GB10B and GB20B. Only one iGPU per VA space ("T264/GB10B" TODO)U/uvm_gpu.c:3831,1305; U/uvm_va_space.c:1531,815-819; nv_gpu_ops.c:8779,8871; U/uvm_mmu.c:1116; U/uvm_hal.c:433-445
26UVM_REGISTER_CHANNELBoth. (a) RetainChannel (inside RM: GET_WORK_SUBMIT_TOKEN, nv_gpu_ops.c:10242) and BindChannelResources → NV2080_CTRL_CMD_GPU_PROMOTE_CTX (GSP_RM_CONTROL [INFERENCE]). (b) map the channel context buffers into the VA space from RM-supplied PTEsU/uvm_user_channel.c:738,141,467; nv_gpu_ops.c:10126,10827,10898; U/uvm_map_external.c:180
27UVM_CREATE_EXTERNAL_RANGE(b)U/uvm_map_external.c:622
28UVM_MAP_EXTERNAL_ALLOCATIONBoth. (a) GetExternalAllocPtes and DupMemory from RM. (b) the CPU writes PTEs into UVM's tree, then a TLB invalidate pushed on a channel (Blackwell host methods)U/uvm_map_external.c:1086,187,909,280; U/uvm_blackwell_host.c:31,83; U/uvm_hal.c:311-327
29UVM_FREE(b) unmap, invalidateU/uvm_va_range.c:740
30UVM_UNREGISTER_{GPU,GPU_VASPACE,CHANNEL}Both. (a) UnsetPageDirectory / FREE. (b) teardownU/uvm_gpu.c:3824,3842; U/uvm_user_channel.c:914; U/uvm_va_space.c:1431
31Interrupts(b): MSI-X through VFIO eventfds (8 vectors, lead's measurement). Service the GSP message-queue interrupt plus the replayable-fault top half; RM-owned interrupts are drained through nvUvmInterfaceServiceDeviceInterruptsRMU/uvm_gpu_isr.c:218,282,598; U/uvm_gpu.c:1342

CPU-side (b) list for my driver:

  1. VFIO_IOMMU_MAP_DMA for every sysmem object (#7).
  2. GMMU page tables for the RM VA space and the UVM page tree (#8, #22, #25, #28).
  3. TLB invalidates (#22, #28).
  4. Instance block, USERD, RAMFC and error notifier allocation, with their PAs passed to GSP (#11).
  5. The usermode BAR0 page (0x30000 window) and the doorbell write of the token to +0x90 (#13).
  6. Work-submit token generation (#19).
  7. UVM channel registration, mapping context buffers into the VA space (#26).
  8. Fault buffer read and parse, plus replay (#24).
  9. MSI-X interrupts (#31).
  10. CARD_INFO, REGISTER_FD and CPU mmap (#1, #2, #21).
  11. The GSP queue memory itself and the CPU sequencer executor (§1 steps 3 and 17).

4. What nova / nouveau already prove (4 of 4 web operations used)

  1. nova-core chip list (https://raw.githubusercontent.com/torvalds/linux/master/drivers/gpu/nova-core/gpu.rs, fetched 2026-10-26, master branch with no commit pin, sha256 374867636b5480b507114e29a467e9c77c64e02d47bde2d8c0ed495507f2edb6).
    • Blackwell entries: GB100 and GB102 (:138-140), and GB202/203/205/206/207 (:141-146). They map to BlackwellGB10x / BlackwellGB20x (:163-165).
    • No GB10B and no GB20B. Upstream nova lacks my chip (MEASURED on the fetched file).
  2. nova-core r570 bindings (§2.2). They confirm the RPC numbers and the 48-byte element header for r570 only, not for the 580 firmware on this box.
  3. nouveau on GB10: David Airlie's experimental patches, roughly 100 patches, rework nouveau for the R610 firmware with DGX Spark boot/display support. The source for this is secondary: The Linux Camp, 2026-09-09, https://thelinuxcamp.com/news/nouveau-nvk-experimental-patches-enable-nvidia-dgx-spark-gb10-support-mttzmgbr, citing Phoronix.
    • Not merged according to that article. Patch contents are NOT_VERIFIED.
    • The article does not say GB10B or GB20B, and does not say whether it uses the SEC2-COT path.
  4. Nouveau r570 mainline GB10/GB20B support: NOT_VERIFIED (no fetch left). The L332 inventory reports that NVIDIA's nouveau/extract-firmware-nouveau.py knows gh100, gb100 and gb202 FMC images but not gb10b (inventory lines 148-149, citing :655-662,775-781). This was re-cited, not re-read.

Net: no upstream driver is shown to boot GB10B/GB20B through the SEC2 COT path. The 580 open source is the only cited reference for that path.


5. L332 check

L332 files: /home/drakestapleton/workspace/aienos-own-gpu-driver/docs/GB10_FIRMWARE_INVENTORY.md (859 lines) and native/kernel/tools/ck_gsp_rpc_encode.c (594 lines).

Correct and reused (my reads agree):

Defect found (applies to GB10B, the chip L332 targets):

Every L332 GB10B assumption where GB20B differs (all MEASURED, 580 source):

#ItemGB10B (L332's value)GB20BSource
1Archarch 0x1A00x1B0 (impl 0x0B both)nv_arch.h:51,53,111,127; inventory line 68
2Firmware family / signature section.fwsignature_gb10y.fwsignature_gb20yfamily-select :60 / :66; inventory line 89
3Bindata archivesGspRmBoot_GB10B, GspRmFmcGfwProdSigned_GB10B (the inventory's eight arrays and their sha256 values)the _GB20B archives. GB20B's sha256 values were not measured: NOT_RUNg_kernel_gsp_nvoc.c:790/794, :926/930; inventory lines 107-120
4FWSEC"no FWSEC step"the driver waits ≤4 s for FWSEC's SCRATCH_RESET_PLUS_2 == 0xFFkernel_sec2_gb20b.c:540-575; inventory lines 26-28, 180-181, 197
5COT version12g_kernel_sec2_nvoc.c:481/485; inventory line 453
6frtsSysmemSizeimage size (195,912)0 (not set)kernel_sec2_gb10b.c:508 vs kernel_sec2_gb20b.c:729-827; inventory line 457
7MCTP headerconstant 1 (see defect above)SOM|EOM|SEID|SEQ fieldsg_kernel_sec2_nvoc.c:786-792
8Completionfire-and-forget, then MAILBOX0 ≠ 0xc001cafeksec2SendAndReadMessage: read the EMEM response, check the vendor and the SEC2_RESPONSE error codekernel_sec2_gb10b.c:622,640; kernel_sec2_gb20b.c:1044,293-361,1113-1136; inventory line 470
9SafeToSendBOOT_GSPFMC property onlyalso silicon, IS_MISSING and DISABLE_GSPFMC checkskernel_sec2_gb10b.c:414-427 vs kernel_sec2_gb20b.c:892-937; inventory lines 775-777
10PDB_PROP_KSEC2_RM_BOOT_GSPTRUEFALSEg_kernel_sec2_nvoc.c:464,469
11CC archiveGB100 variant; GB10B SEC2 has no CC branchCcFmcGfwProdSigned_GB202 (nvoc:961) plus a CC branch in _ksec2GetGspUcodeArchive (kernel_sec2_gb20b.c:608)
12SEC2 receive/read HALsstubsReadPacket_GB20B (g_kernel_sec2_nvoc.c:827), WaitForSecureBoot_GB20B (:860), NvdmToSeid_GB20B (COT→SEID 0, same value; kernel_sec2_gb20b.c:170-190)
13Published register headersC/inc/swref/published/blackwell/gb10b/ (inventory lines 233, 473)a separate blackwell/gb20b/ directory (dev_boot, dev_ce_base, dev_falcon_v4, dev_gsp, dev_mmu, dev_perf, dev_sec_pri, dev_xtl_ep_pcfg_gpu, kind_macros). The register offsets were not diffed: NOT_VERIFIEDls of both dirs
14Compute classBLACKWELL_COMPUTE_A onlyBLACKWELL_COMPUTE_B (CUDApp's class), plus BLACKWELL_CHANNEL_GPFIFO_B and BLACKWELL_USERMODE_Ag_gpu_class_list.c:2425-2446 vs :3633-3677

Same on both (L332's values carry over): Bootstrap_GH100, SetupGspFmcArgs_GH100, ResetHw_GB100, PopulateWprMeta_GB10B (heap and ZERO_FB: g_gpu_nvoc.c:212-218 lists GB10B | GB20B | GB20C), SendPacket_GB10B (EMEM write), GfwBootOk no-op, PREINITIALIZED_WPR_REGION, the queue/RPC framing, and the usermode HAL kfifoConstructUsermodeMemdescs_GH100.