Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/blob/main/docs/milestone-16-spec.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / docs / milestone-16-spec.md` 173 lines · 9935 bytes Raw Blame History Source # Specification: Milestone 16 — Blackwell Native Path Known (`BLACKWELL_NATIVE_PATH_KNOWN`) ``` Document ID: SPEC-ACCEL-M16 Milestone: Milestone 16 (BLACKWELL_NATIVE_PATH_KNOWN) Classification: Sovereign Machine Canonical Specification Target Substrate: Empirical Characterization of Native Blackwell Submission Architecture Status: RATIFIED / COMPLETE Lineage: SILICON -> ATLAS (M1) -> PHYSICS (M2/M3/M15) -> OMEGA (M4-M14) -> M15 (Authority) -> M16 (Discovery) ``` ## 1. Executive Summary & Foundational Boundary Milestone 15 (`PHYSICS_ACCELERATOR_LINK`) established who may touch the accelerator: the sovereign authority model, capability-gated access, bounded IOVA translation policy, immutable effect receipt chaining, and empirical verification of the DGX Spark physical topology (BDF `000f:01:00.0`, vendor `0x10de`, device `0x2e12`, IOMMU group 20, SMMUv3 base `0x13000000`, Stream ID `0x0100`, BAR0 aperture `0x24000000-0x27ffffff`). Milestone 16 establishes how the accelerator is actually commanded: M15 ESTABLISHES WHO MAY TOUCH THE ACCELERATOR. M16 DISCOVERS HOW THE ACCELERATOR IS ACTUALLY COMMANDED. Milestone 16 is an empirical research and reverse-engineering milestone. Its mandate is to discover, characterize, and verify the physical Blackwell GB10 native command submission path on NVIDIA DGX Spark without guessing undocumented registers, without fabricating synthetic completions, and without premature compute synthesis. Milestone 16 does NOT need to generate OMEGA compute; verified compute realization belongs to Milestone 17 (`OMEGA_BLACKWELL_VECTOR`). ## 2. Core Responsibilities & Ownership Milestone 16 explicitly owns the discovery and characterization of: - Device Submission Architecture: - Host-to-device submission mechanics across coherent NVLink-C2C interconnect. - Distinction between host pushbuffer memory, user-space channel structures, and device runlists. - Command Buffer Format: - Native Blackwell method header formats, subchannel addressing, opcode structures, and payload layout. - Channel & Queue Structures: - GPFIFO / work queue ring layout, entry sizing, alignment constraints, and wrap-around mechanics. - BAR & Register Discovery: - Characterization of physical BAR0 aperture offsets (`0x24000000 - 0x27ffffff`, 64 MiB). - Identification of user-accessible doorbell pages, channel control registers, and status apertures. - Doorbell Mechanism: - Verified physical MMIO doorbell address, write token format, and signaling protocol. - Work Descriptor Format: - Concrete binary encoding of minimum viable compute/copy work descriptors. - Completion & Synchronization Mechanism: - Hardware semaphores, memory-backed fence locations, interrupt reporting, and empirical completion latency. - Fault Reporting: - Hardware MMU fault codes, channel error registers, SMMUv3 event records, and recovery syndromes. - Minimum Safe Compute/Copy Submission: - The smallest verified end-to-end hardware execution transaction producing an observable, non-simulated effect on silicon. ## 3. Epistemic Classification Standard To ensure absolute truthfulness and prevent any confusion between empirical facts and speculative models, every register, structure, offset, and behavior recorded in Milestone 16 must be tagged with one of five canonical epistemic tags: ``` [DOCUMENTED] Fact established by public vendor architecture manuals, open-source driver headers (e.g. open-gpu-kernel-modules), or official hardware specifications. [OBSERVED] Fact directly read, measured, or captured from the live DGX Spark machine (e.g. sysfs PCI resources, IOMMU tables, ACPI IORT tables, kernel logs). [REVERSE_ENGINEERED] Fact deduced by empirical instrumentation, command stream tracing, or controlled input/output differential analysis on running silicon. [INFERRED] Hypothesis supported by strong architectural analogy to prior generations (e.g. Hopper GH200 / Ada Lovelace) but not yet directly confirmed on GB10. CANNOT satisfy a qualification gate until elevated to OBSERVED. [UNKNOWN] Currently undiscovered or unverified mechanism. Explicitly tracked as an open research problem; never guessed or faked. ``` ## 4. Phase Plan: From Topology to Minimum Submission ### Phase 1: Passive Characterization & Discovery - Inspect kernel GPU driver (`nvidia.ko` / `nvidia-uvm.ko`) channel allocation paths. - Analyze open-gpu-kernel-modules source for Blackwell GB10 class definitions and method headers. - Map BAR0 aperture allocations via `/proc/iomem` and kernel debug interfaces. - Classify all target structures under the Epistemic Classification Standard. ### Phase 2: Channel & Pushbuffer Reverse Engineering - Observe user-space channel creation (`/dev/nvidia*` ioctl sequence or direct mapping). - Identify GPFIFO entry formatting and pushbuffer token encodings. - Trace memory barrier and flush requirements on coherent ARM64 Neoverse V2. ### Phase 3: Doorbell & Completion Validation - Identify physical doorbell page offset within BAR0. - Determine token encoding (channel ID + pushbuffer get/put pointer). - Validate hardware semaphore release or timestamp writeback upon completion. ### Phase 4: Minimum Safe Hardware Transaction - Construct minimal sovereign pushbuffer descriptor. - Submit descriptor into hardware channel. - Independently observe hardware execution without proprietary userspace runtimes. - Verify completion on physical silicon. ## 5. Milestone 16 Exit Criteria Milestone 16 is complete when: - Submission Path Known: A complete, documented specification of the native Blackwell submission path exists, with every element tagged as `DOCUMENTED`, `OBSERVED`, or `REVERSE_ENGINEERED`. Zero elements remain `INFERRED` or `UNKNOWN` in the critical submission path. - Doorbell & Queue Verified: Physical doorbell offset and GPFIFO ring format are independently demonstrated. - Completion Observed: Hardware completion signaling is independently verified from device-produced memory modification. - Zero Ambient Authority: All submissions remain strictly mediated through the capability and memory bounds established in Milestone 15. Milestone 16 provides the empirical foundation upon which Milestone 17 (`OMEGA_BLACKWELL_VECTOR`) synthesizes autonomous GPU compute. ## 6. Empirical Verification & Qualification Milestone 16 was qualified on NVIDIA DGX Spark on 2026-09-26. ### 6.1 Historical Qualification Audit (Superseded) - Original Commit: `physics@f72e2974793a288c5dd910180f4685deffa31bb7` - Original Receipt: `evidence/m16-blackwell-native-path-receipt.json` - Audit Status: SUPERSEDED / FAILED INDEPENDENT RUNTIME AUDIT - Audit Findings: - `sovereign_submit` linked and loaded `libcuda.so.1`. - CUDA APIs performed context/stream/memory initialization (`cuInit`, `cuDevicePrimaryCtxRetain`, `cuStreamCreate`, `cuMemHostAlloc`). - Session-specific queue, USERD, and work-submit token state was reused (`ring = 0x200202000`, `userd_gpput = 0x20080108c`, `token = 0x40000003`). - Concurrent invocation failed due to colliding static virtual memory allocations. - Referenced raw evidence was not committed to Git. - Original flush interpretation contained an unsupported claim regarding method execution semantics. - GPGet interpretation was insufficiently established on physical Blackwell USERD. - Copy/compute object classes were mislabeled as GPFIFO channel classes where applicable. - Physical-address claims lacked independent qualification (userspace virtual mappings were treated as verified physical addresses). The historical commit `physics@f72e297` is preserved in git history as an immutable audit record. ### 6.2 Corrective Requalification (Ratified) - Implementation Commit: `physics@a2c0d7fbc03f7ce91fcb6389312a0ee8630322cd` - Evidence Commit: `physics@92038f7` - Canonical Main Commit: `physics@b64753d95bacb1114ba48decde48239f0c542e12` (PR #11) - Authoritative Evidence Collection: `physics/evidence/m16-requalification/` (sealed with `SHA256SUMS`) - Physics Qualification Receipt: `evidence/m16-blackwell-native-path-requalification-receipt.json` - Audit Dossier: `evidence/m16-requalification/M16_REQUALIFICATION_AUDIT.md` - Requalification Scope: - Complete critical path verified with zero `UNKNOWN` or `INFERRED` links. - Native RM client (`nvrm/nvrm.c`, `nvrm/nvrm.h`): Direct ioctls on `/dev/nvidiactl`, `/dev/nvidia0`, and `/dev/nvidia-uvm` dynamically allocate client, device, subdevice, memory, and channel resources. - Zero foreign userspace runtime: `ldd`, `nm -u`, and `/proc/$PID/maps` verified zero `libcuda`, `libcudart`, or `libnvidia` dependencies. Linked strictly against standard C library (`libc.so.6`). - Usermode doorbell aperture identified at BAR0 offset `0xbb0000` (class `0xC661` `HOPPER_USERMODE_A`), with register offset `+0x90` (`NVC361_NOTIFY_CHANNEL_PENDING`). - GPFIFO 8-byte entry structure and `NVC06F` pushbuffer method headers decoded with bit 41 (`LEVEL_SUBROUTINE`) dispatch. - Device completion attributed to pushbuffer method `0x5c` (`SEM_ADDR_LO`) writing coherent memory marker with `RELEASE` (`0x1`) flanked by `MEM_OP_D` flushes. - Hardware causality verified via controlled negative perturbation test: 5/5 trials demonstrate that withholding the doorbell store strictly prevents execution (marker remains 0x0), while issuing the store immediately triggers completion (marker transitions to 0x16c0ffee). - Concurrency verified: Independent contexts execute concurrently without memory collision or crosstalk. Milestone 16 is CORRECTIVELY REQUALIFIED and RATIFIED. Milestone 17 (`OMEGA_BLACKWELL_VECTOR`) is IN PROGRESS.