code wiki / gpu

topic: gpu

76 modules sharing the gpu name family (derived from the tree's prefix discipline).

The 'gpu' topic family in the Nishi sovereign ecosystem provides foundational support for bare-metal GPU operations within the NishiLang framework, organizing 75 modules into distinct rungs for system bring-up and functional execution. Modules like _gpu_bm_gpfifo_gate establish the GPFIFO interface, while _gpu_bm_pci_gate handles PCIe enumeration and GPU identification, and _gpu_bm_gmmu_gate manages VA-to-PA translation through the GMMU. These modules collectively enable low-level GPU control, memory management, and communication pathways essential for sovereign GPU execution in the Nishi architecture.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
_gpu_bm_boot_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-3: GPU bring-up over the BAR0 MMIO register file.9110
_gpu_bm_channel_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-4: set up a GPFIFO CHANNEL (RAMFC + USERD +8412
_gpu_bm_compute_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-C1: compute-class dispatch + GEMM through the15510
_gpu_bm_copy_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-CE1: Copy Engine (DMA) through the sovereign GPFIFO.12810
_gpu_bm_doorbell_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-5: the FULL doorbell->execute path.12815
_gpu_bm_gmmu_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-MMU: the NVIDIA GMMU (GPU page tables) VA->PA12313
_gpu_bm_gpfifo_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-1: a spec-accurate sovereign NVIDIA GPFIFO11910
_gpu_bm_pci_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-2: PCIe config-space enumeration + GPU identify +12113
_gpu_bm_qmd_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-C2: FAITHFUL Ampere+ compute QMD-by-pointer dispatch14911
_gpu_bm_qmd_v5_gate.nxBARE-METAL SOVEREIGN-GPU rung BM-GPU-7a: REAL Blackwell QMDV05_00 descriptor.20813
_gpu_compute_gate.nxGPU-COMPUTE bit-identical CPU-vs-GPU gate (V-RAM-005 / X-DRV-003, the18810
_gpu_deploy_pcienum.nxBARE-METAL DEPLOYMENT KIT rung BM-DEPLOY-1: REAL PCI enumeration via /proc/bus/pci/devices.968
_gpu_dxg_adapterinfo_gate.nxSOVEREIGN-GPU ladder R1 (adapter identity), the HONEST re-scope.1256
_gpu_dxg_alloc_gate.nxSOVEREIGN-GPU ladder R4d (allocate REAL GPU memory on the 5080, UMD-less).14114
_gpu_dxg_context_gate.nxSOVEREIGN-GPU ladder R4a (create a GPU CONTEXT on the 5080 WDDM device).13311
_gpu_dxg_device_gate.nxSOVEREIGN-GPU ladder R3 (create a real WDDM DEVICE on the RTX 5080).14110
_gpu_dxg_gate.nxGATE for the SOVEREIGN-GPU foundation rung (R0): proves Nishi reaches the986
_gpu_dxg_gate_tamper.nxNO-FALSE-GREEN PROOF for _gpu_dxg_gate. Identical logic, EXCEPT the465
_gpu_dxg_makeresident_gate.nxSOVEREIGN-GPU ladder R4f (make a real allocation GPU-RESIDENT on the 5080).16418
_gpu_dxg_mapva_gate.nxSOVEREIGN-GPU ladder R4e (map a real allocation to a GPU VIRTUAL ADDRESS on the 5080).16518
_gpu_dxg_open_gate.nxSOVEREIGN-GPU ladder R2 (adapter-handle open from LUID).1378
_gpu_dxg_pagingqueue_gate.nxSOVEREIGN-GPU ladder R4c (create a GPU PAGING QUEUE + fence on the 5080).14112
_gpu_dxg_r1_recon.nxSCOPE/RECON probe for SOVEREIGN-GPU rung R1: adapter DESCRIPTION +2058
_gpu_dxg_r1_recon2.nxR1 recon pass 2. nr=0x09 (LX_DXQUERYADAPTERINFO, code 0xC0184709) is1077
_gpu_dxg_r1_recon3.nxR1 recon pass 3. Pass 2 proved QueryAdapterInfo(nr=0x09) returns1317
_gpu_dxg_r1_recon4.nxR1 recon pass 4. GROUND TRUTH from WSL2-Linux-Kernel1188
_gpu_dxg_r1_recon5.nxR1 recon pass 5: confirm the NO-FALSE-GREEN tamper behavior for the685
_gpu_dxg_r2_recon.nxSOVEREIGN-GPU ladder R2 RECON (adapter-open from LUID).1006
_gpu_dxg_r3_recon.nxSOVEREIGN-GPU ladder R3 RECON (create a WDDM device on the RTX 5080).1038
_gpu_dxg_r4_recon.nxSOVEREIGN-GPU ladder R4 RECON (create a GPU CONTEXT on the WDDM device).9210
_gpu_dxg_r4b_recon.nxSOVEREIGN-GPU ladder R4b RECON (read the REAL VRAM budget of the 5080).758
_gpu_dxg_r4c_pq_recon.nxSOVEREIGN-GPU ladder R4c RECON (create a GPU PAGING QUEUE on the 5080).8410
_gpu_dxg_r4c_recon.nxSOVEREIGN-GPU ladder R4c RECON (allocate real GPU memory on the 5080).799
_gpu_dxg_r4d_alloc.nxSOVEREIGN-GPU ladder R4d ATTEMPT: real UMD-less EXISTINGHEAP allocation on the 5080.10612
_gpu_dxg_r4d_alloc2.nxSOVEREIGN-GPU ladder R4d ATTEMPT 2: tune the EXISTINGHEAP standard allocation.9412
_gpu_dxg_r4d_alloc3.nxSOVEREIGN-GPU ladder R4d ATTEMPT 3: provide the per-alloc OUT priv_drv_data buffer.9512
_gpu_dxg_r4d_alloc4.nxSOVEREIGN-GPU R4d CONFIRM: the EXACT EXISTINGHEAP recipe from the open-source8311
_gpu_dxg_r4d_probe.nxSOVEREIGN-GPU ladder R4d PROBE pass 1: locate alloc_count in d3dkmt_createallocation.879
_gpu_dxg_r4d_probe2.nxSOVEREIGN-GPU ladder R4d PROBE pass 2: locate the allocation_info pointer.879
_gpu_dxg_r4d_probe3.nxSOVEREIGN-GPU ladder R4d PROBE pass 3: characterize the d3dkmt_allocationinfo2849
_gpu_dxg_r4d_probe4.nxSOVEREIGN-GPU ladder R4d PROBE pass 4: find the StandardAllocation flag bit10311
_gpu_dxg_r4e_map_recon.nxSOVEREIGN-GPU ladder R4e RECON: map the R4d allocation to a GPU VA on the 5080.10414
_gpu_dxg_r4e_recon.nxSOVEREIGN-GPU ladder R4e RECON: reserve GPU virtual-address space on the 5080.7811
_gpu_dxg_r4e_wait_recon.nxSOVEREIGN-GPU R4e RECON: confirm the paging fence ADVANCES to the map's10114
_gpu_dxg_r4f_recon.nxSOVEREIGN-GPU ladder R4f RECON: make the R4d allocation GPU-RESIDENT on the 5080.10214
_gpu_dxg_r4g_recon.nxSOVEREIGN-GPU ladder R4g RECON: create a GPU SYNCHRONIZATION OBJECT on the 5080.8611
_gpu_dxg_r4g_size.nxR4g size-sweep: find the real _IOC_SIZE for CREATESYNCHRONIZATIONOBJECT (nr=0x10).7710
_gpu_dxg_r4g_sw_recon.nxR4g RECON: signal+wait a monitored-fence sync object from CPU.9812
_gpu_dxg_r5_submit_size.nxR5 SAFE size-sweep for LX_DXSUBMITCOMMAND (nr=0x0f). The submit validation7310
_gpu_dxg_r5a_fence.nxSOVEREIGN-GPU R5a-v2: prove the real 5080 EXECUTES a Nishi-emitted pushbuffer by14117
_gpu_dxg_r5a_probe.nxR5a SUBMIT offset probe (SAFE): find broadcast_context_count + broadcast_context[0]11917
_gpu_dxg_r5a_sem.nxSOVEREIGN-GPU R5a: make the real RTX 5080 EXECUTE a Nishi-emitted pushbuffer.15217
_gpu_dxg_r6_hwq.nxSOVEREIGN-GPU R6: make the real RTX 5080 EXECUTE via the HARDWARE-QUEUE path.854
_gpu_dxg_syncobj_gate.nxSOVEREIGN-GPU ladder R4g (GPU synchronization-object mechanism on the 5080).14616
_gpu_dxg_vidmem_gate.nxSOVEREIGN-GPU ladder R4b (read the REAL VRAM budget of the 5080).12110
_gpu_matmul_gate.nxGPU 2x2 int8 MATMUL bit-identical CPU-vs-GPU gate (V-RAM-005 / X-DRV-003,18510
_gpu_oplist_gate.nxGPU-class driver-from-spec gate (X-DRV-W1 -> X-DRV-003 / GPU trajectory):16811
_gpu_run.nxa SOVEREIGN rv64 runner with the GPU-class device ATTACHED (twin of853
nx_gpu_bench.nxSOVEREIGN three-way GPU-compute benchmark harness: OURS vs CUDA vs Vulkan,2709
nx_gpu_broker.nxTHE RESOURCE-SHARING BRAIN (serving-census capstone). Admits/schedules a MIXED workload --15413
nx_gpu_ctl.nxSOVEREIGN GPU-provider CONTROL PLANE (Vast.ai) over our OWN TLS-1.2 stack (console.vast.ai is10210
nx_gpu_driver.nxSOVEREIGN UNIVERSAL GPU-DRIVER FRAMEWORK (operator: "not just our own gpu driver but all of8410
nx_gpu_dxg_probe.nxSOVEREIGN-GPU foundation organ (R0): reach the REAL RTX 5080 through1237
nx_gpu_embed_gate.nxE-ARC e4 (2026-07-15): the NISHILANG GPU-EMBED CLIENT, gated BIT-EXACT2319
nx_gpu_exceed_gate.nxMEASURED DirectX exceed: the sovereign graphics SUBMISSION path vs DirectX.886
nx_gpu_export.nxdump the no-float Qwen2.5-0.5B i8 caches + i32 head + output_norm gamma + freqs +1317
nx_gpu_geometry.nxGOAL-GPU-NATIVE rung-3: the 3D GEOMETRY STAGE (transform + project + hidden-surface).12412
nx_gpu_graphics_gate.nxGOAL-GPU-NATIVE rung-2: a GRAPHICS engine on the sovereign GPFIFO pipeline.17016
nx_gpu_matcher.nxsovereign GPU-provider MATCHER for our exact sovereign-development spec (verified 2026-07-14).464
nx_gpu_power.nxsovereign GPU POWER + THERMAL GOVERNOR (operator 2026-06-20: "fix the energy and heat output302
nx_gpu_power_gate.nxgate for the sovereign GPU power/thermal governor (nx_gpu_power) = the NEVER-FRY rung.405
nx_gpu_q4k_gate.nxproves a SOVEREIGN organ can drive the GPU.33510
nx_gpu_render.nxSOVEREIGN SOTA-render R1: the WebGL2 BEACHHEAD. Emits a self-contained HTML that renders502
nx_gpu_ring.nxGATE: a GPU BAR/MMIO COMMAND-RING SUBMISSION MODEL (deepens GPU-DRIVER toward the real-hw BAR/ring14714
nx_gpu_serve_gate.nx#23 KEYSTONE: the SOVEREIGN serve-side GPU client, gated byte-exact.1498
nx_gpu_sovereignty_gate.nxADVERSARIAL proof of the operator's "NO 3rd party" law for the browser-COMPAT905