interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / docs / gpu / GSP_RPC_REGISTRY_REFERENCE.md

446 lines · 35577 bytes Raw Blame History Source

Clean-Room GSP-RM RPC, Control & Registry Reference for GB20B Compute Bring-Up

Scope & Clean-Room Hygiene: This document specifies wire formats, RPC function/event IDs, RM object class IDs, RM control command IDs, and registry table layouts needed for pure-Omega compute bring-up on NVIDIA GB10 (DGX Spark, verified silicon identity GB20B). It contains no copied third-party source code. Every constant and struct layout is cross-referenced to verified pure-Omega units in this repository (gpu/driver/, gpu/nvidia/native/) or explicitly labeled by provenance and verification state.

Provenance & Status Vocabulary

LabelMeaning
IMPLEMENTEDWire codec or state machine exists in this repository at the named .om path.
HOST_VERIFIEDCodec/state machine exercised by host replay/simulator or layout-diff tests; not bare-metal silicon qualification.
SILICON_VERIFIEDDirectly observed on live DGX Spark GB10 hardware (e.g., BOOT_0/BOOT_42 or stock nvidia.ko RM path).
GB20B_REQUIREDVerified delta required for Spark GB20B (BOOT_42 = 0x1bba1000, arch 0x1B, impl 0xB) vs. GB10B (0x1A).
GB10B_LEGACYPresent in current gpu/driver/ units ported from GB10B assumptions; must be updated for GB20B silicon.
PROPOSEDDocumented NVIDIA 580.173.02 ABI / bring-up candidate not yet wired into gpu/driver/ or NOT_RUN on GB20B bare metal.

Target Silicon Identity (SILICON_VERIFIED):


1. GSP-RM Message Queue & RPC Wire Framing

Implemented in gpu/driver/gsp/rpc.om, gpu/driver/gsp/transport.om, and gpu/driver/gsp/notify.om (IMPLEMENTED, HOST_VERIFIED, non-CC single-client profile).

1.1 Queue Geometry & Header Layout

Two 256 KiB rings live in shared DMA memory (page-table radix page + 64 pages cmdq + 64 pages statq = 129 pages total, built in gpu/driver/gsp/arena.om):

ConstantOmega SymbolDecimalHexMeaning
Queue sizeRQQSZ2621440x00040000256 KiB per queue (cmdq or statq)
Slot sizeRQSLOT40960x000010004 KiB per slot; slot 0 is the header page
Slot countRQCOUNT630x0000003f63 ring data slots (slots 1..63)
Max messageRQMAX655360x0001000064 KiB max total message span (16 slots)
Header versionRQVER503316480x03000000GSP_MSG_QUEUE_ELEMENT_VERSION (3 << 24)
Header signatureRQSIG11293374300x43505256'VPRC' (NV_VGPU_MSG_SIGNATURE_VALID)

Queue header page (slot 0, little-endian u32 fields):

OffsetWidthFieldValue / Notes
0x004version0
0x044size262144 (0x40000)
0x084entrySize4096 (0x1000)
0x0C4entryCount63
0x104writePtrProducer slot index 0..62 (CPU writes cmdq[0x10], GSP writes statq[0x10])
0x144flags1 (SWAP_RX layout)
0x184txHdrOff32 (0x20, byte offset of readPtr in peer header)
0x1C4rxHdrOff4096 (0x1000, byte offset of slot 1)
0x204readPtrConsumer slot index 0..62 (CPU writes cmdq[0x20] for statq consumption; GSP writes statq[0x20] for cmdq consumption)

1.2 Message Element & RPC Header Layout (80 B prefix)

All fields are little-endian. Multi-slot messages wrap modulo 63 starting at writePtr (or readPtr).

OffsetWidthFieldNotes
0x00..0x1F32authTag / aadMust be all 0 in non-CC profile (rqvalid refuses nonzero bytes with -5).
0x20 (32)4checkSumXOR-32 of every 4-byte little-endian word across align8(80 + logical_payload_len) bytes (computed with checkSum = 0).
0x24 (36)4seqNumMonotonic per-direction queue element sequence (rqtx / rqrx).
0x28 (40)4elemCountNumber of 4 KiB slots: ceil((80 + logical_payload_len) / 4096), in 1..16.
0x2C (44)4reservedMust be 0.
0x30 (48)4header_version0x03000000 (RQVER).
0x34 (52)4signature0x43505256 (RQSIG, 'VPRC').
0x38 (56)4length32 + logical_payload_len (range 32..65488).
0x3C (60)4functionRPC function ID or GSP->CPU event ID (Section 2).
0x40 (64)4rpc_result0xFFFFFFFF on send; NV_STATUS (0 = OK) on reply.
0x44 (68)4rpc_result_private0xFFFFFFFF on send; private NV_STATUS on reply.
0x48 (72)4sequenceSynchronous RPC correlation counter (0 for async/pre-queued RPCs).
0x4C (76)4cpuRmGfid / reservedMust be 0 in single-client non-CC profile.
0x50 (80)ppayload[]RPC-specific payload bytes.

GSP_RM_ALLOC (103) Special Framing Rule: logical_payload_len is fixed at 32 (covering the rpc_gsp_rm_alloc header only), while physical_payload_len is 32 + paramsSize (appended inline params). Both checkSum and rpc_message_header_v.length (64 = 32 + 32) cover only the 32-byte logical header (gpu/driver/gsp/rpc.om:186, gpu/driver/gsp/boot.om:328).

1.3 Queue Doorbell Notification

After copying payload slots and updating cmdq[0x10] (writePtr) with a full barrier (DSB SY), notify GSP by writing 0 (32-bit) to:

RegisterBAR0 OffsetOmega SymbolValueProvenance
NV_PGSP_QUEUE_HEAD(0)0x00110C00GPNOTIF (1117184)0IMPLEMENTED (gpu/driver/gsp/notify.om, kernel_gsp_tu102.c:343-355)

2. RPC Function & Event ID Catalog

Cross-checked against gpu/driver/gsp/boot.om, gpu/driver/gsp/rpc.om, gpu/driver/gsp/dispatch.om, gpu/driver/chan/params.om, and gpu/driver/rm/dispatch.om.

2.1 CPU -> GSP RPC Functions

Function IDHexName (rpc_global_enums.h)ModePayload SizeOmega ImplementationStatus
10x01SET_GUEST_SYSTEM_INFOSync792 B (v03_00)boot.om (bguest)IMPLEMENTED, HOST_VERIFIED
100x0AFREESync16 Bboot.om (brmfree)IMPLEMENTED, HOST_VERIFIED
540x36SET_PAGE_DIRECTORYSync48 B (v1E_05)params.om (PARSETPD, pasetpd)IMPLEMENTED, HOST_VERIFIED
650x41GET_GSP_STATIC_INFOSyncCaller-sized (zero-filled req)boot.om (bstatic)IMPLEMENTED, HOST_VERIFIED
720x48GSP_SET_SYSTEM_INFOAsync (pre-queued)936 B (GspSystemInfo)sysinfo.om, boot.om (bsys), arena.omIMPLEMENTED, HOST_VERIFIED
730x49SET_REGISTRYAsync (pre-queued)8..65456 B (PACKED_REGISTRY_TABLE)arena.om (arregok), boot.om (breg)IMPLEMENTED, HOST_VERIFIED
760x4CGSP_RM_CONTROLSync40 B header + N B params (N <= 4096)params.om (PARCTRL), boot.om (brmctrl)IMPLEMENTED, HOST_VERIFIED
790x4FUNSET_PAGE_DIRECTORYSync16 B (v1E_05)params.om (PARUNSPD, paunsetpd)IMPLEMENTED, HOST_VERIFIED
1030x67GSP_RM_ALLOCSync32 B logical + N B params (N <= 3984)params.om (PARALLOC), boot.om (brmalloc)IMPLEMENTED, HOST_VERIFIED

2.2 GSP -> CPU Asynchronous Events

Event IDHexNamePayload LayoutOmega ImplementationStatus
40970x1001GSP_INIT_DONEStatus in rpc_result (0 = OK); sequence = 0boot.om (bpoll, state 4 -> 5)IMPLEMENTED, HOST_VERIFIED
40980x1002GSP_RUN_CPU_SEQUENCERrpc_run_cpu_sequencer_v17_00: bufferSizeDWord (+0x50), cmdIndex (+0x54), regSaveArea[8] (+0x58..0x77), cmdBuf[] (+0x78). Opcodes 0..8: 0=REG_WRITE(2), 1=REG_MODIFY(3), 2=REG_POLL(5), 3=DELAY_US(1), 4=REG_STORE(2), 5=CORE_RESET(0), 6=CORE_START(0), 7=CORE_WAIT_FOR_HALT(0), 8=CORE_RESUME(0).seq.om, dispatch.om, boot.om (state 11)IMPLEMENTED, HOST_VERIFIED

2.3 Mandatory Boot & Handshake Ordering (gpu/driver/gsp/boot.om)

  1. Pre-queue RPC 72 (GSP_SET_SYSTEM_INFO, 936 B) into cmdq before SEC2 starts GSP-FMC.
  2. Pre-queue RPC 73 (SET_REGISTRY) into cmdq if any registry entries are present (omit if 0 bytes).
  3. Start GSP-FMC via SEC2 COTv2 (GB20B_REQUIRED: poll NV_PMC_SCRATCH_RESET_PLUS_2 0x5e0 == 0xFF, send 868 B COTv2 packet via SEC2 QUEUE_HEAD/TAIL 0x840c00/04 + EMEMC 0x840ac0, consume reply from NV_PSEC_MSGQ_HEAD/TAIL(0) 0x840c80/84 writing TAIL before HEAD; see gpu/driver/gsp/sec2.om).
  4. Service 0x1002 (GSP_RUN_CPU_SEQUENCER) events until 0x1001 (GSP_INIT_DONE) arrives.
  5. Send RPC 1 (SET_GUEST_SYSTEM_INFO, 792 B) and wait for reply (NV_STATUS = 0). Mandatory before static info (kernel_gsp.c:4261-4274).
  6. Send RPC 65 (GET_GSP_STATIC_INFO) and wait for reply.
  7. Enter Ready state (bstate = 9): one-in-flight synchronous RM RPCs (103, 76, 10, 54, 79) are now permitted.

2.4 Core RM RPC Envelope Payloads

RPC 103 (GSP_RM_ALLOC) (gpu/driver/gsp/boot.om:319-337, 151-173):

Payload OffsetFrame OffsetWidthFieldNotes
0x000x50 (80)4hClientClient handle (NV01_ROOT)
0x040x54 (84)4hParentParent handle (0 for NV01_ROOT)
0x080x58 (88)4hObjectNew object handle
0x0C0x5C (92)4hClassClass ID (Section 4)
0x100x60 (96)4status0 on send; NV_STATUS on reply
0x140x64 (100)4paramsSizeByte length of inline params (0..3984)
0x180x68 (104)4flags0
0x1C0x6C (108)4reserved0
0x200x70 (112)Nparams[]Class-specific alloc struct (verbatim)

RPC 76 (GSP_RM_CONTROL) (gpu/driver/gsp/boot.om:347-363, 175-195):

Payload OffsetFrame OffsetWidthFieldNotes
0x000x50 (80)4hClientClient handle
0x040x54 (84)4hObjectTarget object handle
0x080x58 (88)4cmdRM control command ID (Section 4)
0x0C0x5C (92)4status0 on send; NV_STATUS on reply
0x100x60 (96)4paramsSizeByte length of inline params (0..4096)
0x140x64 (100)4flags0 (flat profile)
0x18..0x270x68..0x7716reserved / metadataMust be 0 in flat profile
0x280x78 (120)Nparams[]Control-specific param struct (verbatim)

RPC 10 (FREE) (gpu/driver/gsp/boot.om:372-382, 197-207):

Payload OffsetFrame OffsetWidthFieldNotes
0x000x50 (80)4hClientClient handle
0x040x54 (84)4hParent0 (GSP looks up parent by client+object)
0x080x58 (88)4hObjectObject handle to free
0x0C0x5C (92)4status0 on send; NV_STATUS on reply

3. Registry Wire Format (RPC 73) & Compute Bring-Up Keys

3.1 Canonical PACKED_REGISTRY_TABLE Wire Format (IMPLEMENTED, HOST_VERIFIED)

Validated strictly by arregok in gpu/driver/gsp/arena.om (L101-L166) and breg in gpu/driver/gsp/boot.om (L58-L76).

Header (8 B):

OffsetWidthFieldConstraints
0x004sizeTotal table byte size (8..65456); must equal exact wire length
0x044numEntriesEntry count (1..32; 0 bytes omits RPC 73 completely)

Entry Table (16 B × numEntries, starting at offset 0x08):

Entry OffsetWidthFieldConstraints
+0x004nameOffsetByte offset to NUL-terminated, non-empty ASCII key name
+0x041type1 = DWORD, 2 = BINARY, 3 = STRING
+0x05..0x073reservedMust be 0, 0, 0
+0x084dataFor type = 1: inline u32 value. For type = 2/3: byte offset to value bytes
+0x0C4lengthFor type = 1: must be 4. For type = 2/3: must be > 0 and fit within size

Canonical Contiguity Invariant (arena.om): Starting at pos = 8 + 16 * numEntries, for each entry i = 0..numEntries-1:

  1. entry[i].nameOffset == pos, followed by non-empty NUL-terminated name bytes; advance pos past NUL.
  2. If type is 2 or 3, entry[i].data == pos, followed by entry[i].length opaque bytes; advance pos += length.
  3. After the final entry, pos == size (no trailing slack or out-of-order blobs).

3.2 Registry Keys for Compute Bring-Up

Important: In host replay (gpu/driver/tests/rpc_trace.om, rmchan_trace.om), breg 0 (empty table, RPC 73 omitted) is the verified baseline. On bare-metal GB20B, registry keys below are PROPOSED / NOT_RUN unless explicitly marked otherwise; none is required to be fabricated until Window 0 testing confirms whether GSP-RM defaults suffice.

Key NameTypeCandidate ValuePurpose in Headless Compute Bring-UpStatus
(omit RPC 73)—0 BMinimal bring-up baseline using GSP-RM compiled defaultsIMPLEMENTED, HOST_VERIFIED (boot.om, arena.om)
EnableGpuFirmwareDWORD (1)1Host-side nvidia.ko knob selecting GSP-RM firmware mode (not required inside GSP once FMC is booted, noted for parity)PROPOSED (580.173.02)
RMGspLogLevelDWORD (1)0..5Controls GSP-RM LOGINIT/LOGRM verbosity into the 7 LibosLog buffers mapped in arena.omPROPOSED (NOT_RUN on GB20B)
RmLogonRCDWORD (1)1Enables robust-channel / fault diagnostic logging to GSP log rings during channel bring-upPROPOSED (NOT_RUN on GB20B)
RMEnableDynamicPowerManagementDWORD (1)0Disables RTD3/GC6 dynamic power transitions during early Window 0 compute bring-upPROPOSED (NOT_RUN on GB20B)
RMPowerFeature2DWORD (1)0Power-feature override mask for deterministic clock/power bring-upPROPOSED (NOT_RUN on GB20B)
RMDisableDisplayDWORD (1)1Suppresses display engine initialization on headless compute-only bring-upPROPOSED (NOT_RUN on GB20B)

3.3 GspSystemInfo (RPC 72, 936 B) Critical GB20B Fields

Full 72-field offset table lives in gpu/driver/gsp/sysinfo.om. Key fields that must come from live PCI/DMA state on Spark GB20B:

FieldOffsetWidthSpark GB10 / GB20B Value / SourceStatus
gpuPhysAddr08BAR0 CPU physical address (live PCI assignment, e.g. 0x24000000)IMPLEMENTED (sysinfo.om)
gpuPhysFbAddr880 (unified memory; no discrete FB BAR)IMPLEMENTED
gpuPhysInstAddr168BAR0 + 0x700000 (live)IMPLEMENTED
nvDomainBusDeviceFunc3280x0000000f00000100 (000f:01:00.0)SILICON_VERIFIED
notifyOpSharedSurfacePhysAddr488Driver IOVA of notify-op DMA page (live per boot)IMPLEMENTED
maxUserVa7280x0001000000000000 (48-bit arm64 TASK_SIZE)IMPLEMENTED
pciConfigMirrorBase / Size80 / 844 / 40x92000 / 0x1000IMPLEMENTED
PCIDeviceID / SubDeviceID / Rev88 / 92 / 964 each0x2e1210de / 0x10de / 0xa1SILICON_VERIFIED
oorArch10413 (OOR_ARCH_AARCH64)IMPLEMENTED
Chipset12040x106d (CS_NVIDIA_T254, root port 0x22d1)IMPLEMENTED
bFlrSupported1251Config DevCap[28]; note PDB_PROP_GPU_TRIGGER_PCIE_FLR = NV_FALSE on GB20B (sysfs FLR reboots SoC)SILICON_VERIFIED
sysTimerOffsetNs8488OS_ns - PTIMER_ns (live read immediately before send)IMPLEMENTED
hostPageSize92084096IMPLEMENTED

4. Compute Bring-Up Stages: Classes, Control IDs & Wire Layouts

Object Hierarchy (gpu/driver/chan/rmchan.om, gpu/driver/rm/handles.om)

NV01_ROOT (0x0000 / Linux ioctl 0x0041)
 └── NV01_DEVICE_0 (0x0080)
      ├── NV20_SUBDEVICE_0 (0x2080)
      │    └── VOLTA_USERMODE_A (0xc361) / HOPPER_USERMODE_A (0xc661)   [doorbell page]
      ├── FERMI_VASPACE_A (0x90f1)                                      [GPU VA space]
      ├── NV01_MEMORY_SYSTEM (0x003e) / NV01_MEMORY_LOCAL_USER (0x0040) [backing memory]
      ├── NV50_MEMORY_VIRTUAL (0x0070)                                  [virtual range]
      └── KEPLER_CHANNEL_GROUP_A (0xa06c)                               [TSG]
           ├── FERMI_CONTEXT_SHARE_A (0x9067)                           [subcontext]
           └── BLACKWELL_CHANNEL_GPFIFO_A (0xc96f) / _B (0xca6f)        [GPFIFO channel]*
                └── BLACKWELL_COMPUTE_B (0xcec0)                        [compute engine]

*Note on channel parent handle: On the Linux RM ioctl path (context.om:946, handles.om:39-40), BLACKWELL_CHANNEL_GPFIFO_A is allocated with parent = KEPLER_CHANNEL_GROUP_A (hTSG). On the direct GSP-RM rmchan.om path (rmchan.om:414), BLACKWELL_CHANNEL_GPFIFO_A is allocated with parent = NV01_DEVICE_0 (hDev) and hPhysChannelGroup = hTSG inside NV_CHANNEL_ALLOC_PARAMS[0xF0].


Stage 1: Device & Subdevice

Class IDs

Class NameHexDecimalParentParam Struct & SizeOmega Symbol / UnitStatus
NV01_ROOT0x000000NV0000_ALLOC_PARAMETERS (120 B)PACROOT (params.om)IMPLEMENTED, HOST_VERIFIED
NV01_ROOT_CLIENT0x00416500 B on Linux RM ioctl (maps to paroot 120 B on GSP wire)dispatch.om, context.omIMPLEMENTED, SILICON_VERIFIED (via nvidia.ko)
NV01_DEVICE_00x0080128hClientNV0080_ALLOC_PARAMETERS (56 B)PACDEV (params.om)IMPLEMENTED, HOST_VERIFIED
NV20_SUBDEVICE_00x20808320hDeviceNV2080_ALLOC_PARAMETERS (4 B)PACSUB (params.om)IMPLEMENTED, HOST_VERIFIED

Parameter Layouts (gpu/driver/chan/params.om)

Control Command IDs (Device / Subdevice Discovery & Static GR Info)

Control ID (Hex)DecimalNameTarget ObjectParam SizeRouteNotes / Status
0x00000205517NV0000_CTRL_CMD_GPU_GET_ID_INFO_V2NV01_ROOT32 BHost-local RM (gpu_mgr.c)Maps gpuId (+0) -> deviceInstance (+8), subDeviceInstance (+12). IMPLEMENTED (context.om:376, model.om:81)
0x008002018389121NV0080_CTRL_CMD_GPU_GET_CLASSLISTNV01_DEVICE_016 BHost-local RM (device_ctrl.c)Enumerates supported RM classes. IMPLEMENTED (dispatch.om:43, model.om:88)
0x008002928389266NV0080_CTRL_CMD_GPU_GET_CLASSLIST_V2NV01_DEVICE_0804 BLinux RM ioctlReturns numClasses (+0) + classList[200] (+4); verifies 0xcec0, 0xc96f/0xca6f, 0xc361/0xc661. IMPLEMENTED (context.om:398)
0x2080014a545259850NV2080_CTRL_CMD_GPU_GET_GID_INFONV20_SUBDEVICE_0268 BHost-local RM (gpu.c)flags = 2 (SHA-1/binary), length = 16 -> 16-byte GPU UUID at +12. IMPLEMENTED (context.om:803, model.om:118)
0x20800a2a545262122NV2080_CTRL_CMD_INTERNAL_STATIC_KGR_GET_INFONV20_SUBDEVICE_03712 BGSP RPC 76PACMGRI (params.om:35). Zero request; reply is 8 engines × 58 entries × 8 B (464 B/engine). SM_VERSION is index 0xC (byte offset 100 in engine 0). IMPLEMENTED, HOST_VERIFIED
0x20801201545264129NV2080_CTRL_CMD_GR_GET_INFONV20_SUBDEVICE_032 BHost RM (backed by 0x20800a2a)Queries GR info list entry (e.g. index 12 = SM_VERSION). IMPLEMENTED (model.om:102)
0x20801228545264168NV2080_CTRL_CMD_GR_GET_INFO_V2NV20_SUBDEVICE_0488 BLinux RM ioctlQueries GR info v2; returns 0x0a04 (2564) on GB10. IMPLEMENTED (context.om:431)

Stage 2: Memory & Virtual Address Space

Class IDs

Class NameHexDecimalParentParam Struct & SizeNotes / Status
FERMI_VASPACE_A0x90f137105hDeviceNV_VASPACE_ALLOCATION_PARAMETERS (56 B)PACVAS (params.om:29, context.om:794). IMPLEMENTED, HOST_VERIFIED
NV01_MEMORY_SYSTEM0x003e62hDeviceNV_MEMORY_ALLOCATION_PARAMS (128 B)Sysmem backing (unified pool on GB10). IMPLEMENTED (context.om:664, dispatch.om:4)
NV01_MEMORY_LOCAL_USER0x004064hDeviceNV_MEMORY_ALLOCATION_PARAMS (128 B)Local memory class (host model in dispatch.om:4). IMPLEMENTED
NV50_MEMORY_VIRTUAL0x0070112hDeviceNV_MEMORY_VIRTUAL_ALLOCATION_PARAMS (24 B)Virtual range object for NVOS46 DMA mapping (context.om:784). IMPLEMENTED

Key Memory Parameter Layouts

GB10 Unified-Memory Coherency Rule (SILICON_VERIFIED): Host-polled completion markers, GPFIFO rings, USERD pages, and CPU-rewritten pushbuffers must be allocated GPU-uncached (attr2 = 9 on RM; GMHPOLL uncached in gpu/driver/chan/mem.om). GPU-cached system memory is not coherent with CPU mappings on GB10. Compute-only data operands may remain GPU-cached (attr2 = 5) provided a GPU L2 flush executes before CPU readback (launch.om:223-229).

Page Directory GSP RPCs (gpu/driver/chan/params.om)

Direct GMMU v3 TLB Invalidation Registers (gpu/driver/chan/gmmu.om, IMPLEMENTED, HOST_VERIFIED)

VF base 0x00B80000 (57-bit VA, 52-bit PA, aperture 2 = SYSMEM_COHERENT, PDE PCF 2 = cached, no ATS):

RegisterBAR0 OffsetOmega SymbolNotes
NV_VIRTUAL_FUNCTION_PRIV_MMU_INVALIDATE_PDB0x00B830A0MMRPDB (12071072)Low PDB PA + aperture 2
NV_VIRTUAL_FUNCTION_PRIV_MMU_INVALIDATE_UPPER_PDB0x00B830A4MMRUPR (12071076)High PDB PA
NV_VIRTUAL_FUNCTION_PRIV_MMU_INVALIDATE0x00B830B0MMRINV (12071088)Trigger bit 31 (0x80000000), ALL_VA bit 0 (0x1)

Stage 3: Channel & Scheduling

Class IDs

Class NameHexDecimalParentParam Struct & SizeNotes / Status
KEPLER_CHANNEL_GROUP_A0xa06c41068hDeviceNV_CHANNEL_GROUP_ALLOCATION_PARAMETERS (20 B)PACTSG (params.om:30). IMPLEMENTED, HOST_VERIFIED
FERMI_CONTEXT_SHARE_A0x906736967hTSGNV_CTXSHARE_ALLOCATION_PARAMETERS (12 B)PACCTX (params.om:31). IMPLEMENTED, HOST_VERIFIED
BLACKWELL_CHANNEL_GPFIFO_A0xc96f51567hDevice (GSP) / hTSG (Linux RM)NV_CHANNEL_ALLOC_PARAMS (368 B)PACGPF (params.om:32, context.om:946). IMPLEMENTED, HOST_VERIFIED
BLACKWELL_CHANNEL_GPFIFO_B0xca6f51823hDevice / hTSGNV_CHANNEL_ALLOC_PARAMS (368 B)GB20B_REQUIRED (gb20b-gsp-boot.md §1); check CLASSLIST on live GB20B

Parameter Layouts (gpu/driver/chan/params.om)

Channel Backing Structures (gpu/driver/chan/chan.om, complete.om)

Channel Schedule Control (RPC 76)

Control ID (Hex)DecimalNameTarget ObjectParam SizeLayoutStatus
0xa06c01012691432705NVA06C_CTRL_CMD_GPFIFO_SCHEDULEKEPLER_CHANNEL_GROUP_A3 BbEnable (+0, u8), bSkipSubmit (+1, u8), bSkipEnable (+2, u8)IMPLEMENTED, HOST_VERIFIED (PACMSCH, params.om:238, rmchan.om:239)

Teardown Ordering (gpu/driver/chan/rmchan.om:13-15)

  1. NVA06C_CTRL_CMD_GPFIFO_SCHEDULE (bEnable = 0) to disable TSG.
  2. Drain in-flight work via bounded completion semaphore poll (cmdrain); on timeout, quarantine DMA backing without freeing.
  3. RPC 10 (FREE) in strict reverse dependency order: BLACKWELL_COMPUTE_B -> BLACKWELL_CHANNEL_GPFIFO_* -> FERMI_CONTEXT_SHARE_A -> KEPLER_CHANNEL_GROUP_A -> FERMI_VASPACE_A -> NV20_SUBDEVICE_0 -> NV01_DEVICE_0 -> NV01_ROOT.

Stage 4: Compute Object & Pushbuffer Submission

Class ID

Class NameHexDecimalParentParam Struct & SizeNotes / Status
BLACKWELL_COMPUTE_B0xcec052928hChannel0 B (empty params)PACCMP (params.om:33, context.om:954). Retry on NV_ERR_NO_MEMORY (81 = 0x51) during bring-up if prior client teardown is still draining. IMPLEMENTED, SILICON_VERIFIED (via nvidia.ko)

Pushbuffer Method Framing (gpu/driver/chan/chan.om, complete.om, gpu/nvidia/native/blackwell/launch.om)


Stage 5: Kick / Doorbell

Usermode Classes & Work Submit Token Control

TypeID (Hex)DecimalNameParent / TargetParam SizeNotes / Status
Class0xc36150017VOLTA_USERMODE_AhSubDevice0 BUsermode doorbell BAR page (64 KiB mmap). IMPLEMENTED (context.om:900, dispatch.om:10)
Class0xc66150785HOPPER_USERMODE_AhSubDevice0 BHopper/Blackwell usermode doorbell BAR page. IMPLEMENTED (dispatch.om:10, card.om:120)
Control0xc36f01083278831880NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKENhChannel4 BReturns u32 workSubmitToken at +0 (init request with 0xFFFFFFFF). IMPLEMENTED (context.om:972, dispatch.om:56)

Work Submit Token Encoding — Critical GB10B vs. GB20B Delta

TargetFormulaBit SemanticsProvenance
GB10B (GB10B_LEGACY)((runlist & 0x7F) << 16) \| (chId & 0xFFF)Bit 22 active-low (gpu/driver/chan/chan.om:75-77)IMPLEMENTED (chan.om, GB10B_LEGACY)
GB20B (GB20B_REQUIRED)0x40000000 \| ((runlist & 0x7F) << 16) \| (chId & 0xFFF)Bit 30 RUNLIST_DOORBELL_ENABLE active-high (kfifoGenerateWorkSubmitTokenHal_GB202, gb202/dev_vm.h:30-32, kernel_fifo_gb202.c:73-76); runlist <= 127, chId <= 4095GB20B_REQUIRED (gb20b-gsp-boot.md §1)

GPFIFO Entry & Doorbell Kick Sequence

  1. GPFIFO Entry (64-bit LE at gpfifo_base + (put % entries) * 8):
    • entry = (va & ~3ULL) | ((uint64)(words & 0x1FFFFF) << 42) | (1ULL << 41)
    • Constraints: va < (1ULL << 40) (1 TiB), va 4-byte aligned, 1 <= words <= 0x1FFFFF, bit 41 (LEVEL) set (chan.om:86-88, context.om:1048).
  2. Advance GPPut:
    • Write (put + 1) % entries (u32 LE) to USERD offset 0x8C (140) (chan.om:260, context.om:1055).
  3. Barrier & Ring Doorbell:
    • Execute memory barrier (DSB SY) so GP entry and USERD GPPut are visible before doorbell.
    • Write 32-bit workSubmitToken to:
      • Direct BAR0 (own-driver / VFIO): 0x00BB0090 (CHDBELL = 12255376, VF base 0xB80000 + 0x30090, chan.om:50).
      • Mapped Usermode Page (VOLTA_USERMODE_A / HOPPER_USERMODE_A): offset 0x90 (144, context.om:1056).

5. Pure-Omega Driver Milestone Alignment & Open Gaps

To progress gpu/driver/ from HOST_VERIFIED GB10B replay to GB20B bare-metal compute bring-up:

  1. Channel class & doorbell token (GB20B_REQUIRED): gpu/driver/chan/params.om currently hardcodes PACGPF = 0xc96f (BLACKWELL_CHANNEL_GPFIFO_A) and gpu/driver/chan/chan.om chtoken omits bit 30 (0x40000000). Add GB20B selection for 0xca6f (BLACKWELL_CHANNEL_GPFIFO_B) and 0x40000000 | (rl << 16) | chid, or retrieve the token via NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN (0xc36f0108) over RPC 76.
  2. Compute object wiring in rmchan.om: PACCMP = 0xcec0 (BLACKWELL_COMPUTE_B) is defined in params.om, but rmchan.om stops after channel scheduling (RMSACTV) and does not yet allocate/free 0xcec0 as a child of rmhchan.
  3. Page directory RPC wiring: pasetpd (RPC 54) and paunsetpd (RPC 79) are implemented in params.om but not yet wired into gsp/boot.om (brmalloc/brmctrl/brmfree only cover 103, 76, 10).
  4. Registry table population: arena.om and boot.om enforce canonical PACKED_REGISTRY_TABLE validation for RPC 73; Window 0 bring-up should start with empty registry (breg 0) and add RMGspLogLevel/RMDisableDisplay only if bare-metal GSP logs indicate a requirement.
  5. Hardware qualification: All gpu/driver/ GSP/channel milestones remain HOST_VERIFIED (hardware = NOT_RUN) until a reviewed Window 0 cold boot on the Spark produces a content-addressed receipt under evidence/.