interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / milestone-16-spec.md

173 lines · 9935 bytes Raw Blame History Rendered
1# Specification: Milestone 16 — Blackwell Native Path Known (`BLACKWELL_NATIVE_PATH_KNOWN`)
2
3```text
4Document ID: SPEC-ACCEL-M16
5Milestone: Milestone 16 (BLACKWELL_NATIVE_PATH_KNOWN)
6Classification: Sovereign Machine Canonical Specification
7Target Substrate: Empirical Characterization of Native Blackwell Submission Architecture
8Status: RATIFIED / COMPLETE
9Lineage: SILICON -> ATLAS (M1) -> PHYSICS (M2/M3/M15) -> OMEGA (M4-M14) -> M15 (Authority) -> M16 (Discovery)
10```
11
12---
13
14## 1. Executive Summary & Foundational Boundary
15
16Milestone 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`).
17
18Milestone 16 establishes **how the accelerator is actually commanded**:
19
20> **M15 ESTABLISHES WHO MAY TOUCH THE ACCELERATOR.**
21> **M16 DISCOVERS HOW THE ACCELERATOR IS ACTUALLY COMMANDED.**
22
23Milestone 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.
24
25Milestone 16 does **NOT** need to generate OMEGA compute; verified compute realization belongs to **Milestone 17 (`OMEGA_BLACKWELL_VECTOR`)**.
26
27---
28
29## 2. Core Responsibilities & Ownership
30
31Milestone 16 explicitly owns the discovery and characterization of:
32
331. **Device Submission Architecture**:
34 - Host-to-device submission mechanics across coherent NVLink-C2C interconnect.
35 - Distinction between host pushbuffer memory, user-space channel structures, and device runlists.
36
372. **Command Buffer Format**:
38 - Native Blackwell method header formats, subchannel addressing, opcode structures, and payload layout.
39
403. **Channel & Queue Structures**:
41 - GPFIFO / work queue ring layout, entry sizing, alignment constraints, and wrap-around mechanics.
42
434. **BAR & Register Discovery**:
44 - Characterization of physical BAR0 aperture offsets (`0x24000000 - 0x27ffffff`, 64 MiB).
45 - Identification of user-accessible doorbell pages, channel control registers, and status apertures.
46
475. **Doorbell Mechanism**:
48 - Verified physical MMIO doorbell address, write token format, and signaling protocol.
49
506. **Work Descriptor Format**:
51 - Concrete binary encoding of minimum viable compute/copy work descriptors.
52
537. **Completion & Synchronization Mechanism**:
54 - Hardware semaphores, memory-backed fence locations, interrupt reporting, and empirical completion latency.
55
568. **Fault Reporting**:
57 - Hardware MMU fault codes, channel error registers, SMMUv3 event records, and recovery syndromes.
58
599. **Minimum Safe Compute/Copy Submission**:
60 - The smallest verified end-to-end hardware execution transaction producing an observable, non-simulated effect on silicon.
61
62---
63
64## 3. Epistemic Classification Standard
65
66To 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**:
67
68```text
69[DOCUMENTED]
70 Fact established by public vendor architecture manuals, open-source driver
71 headers (e.g. open-gpu-kernel-modules), or official hardware specifications.
72
73[OBSERVED]
74 Fact directly read, measured, or captured from the live DGX Spark machine
75 (e.g. sysfs PCI resources, IOMMU tables, ACPI IORT tables, kernel logs).
76
77[REVERSE_ENGINEERED]
78 Fact deduced by empirical instrumentation, command stream tracing, or
79 controlled input/output differential analysis on running silicon.
80
81[INFERRED]
82 Hypothesis supported by strong architectural analogy to prior generations
83 (e.g. Hopper GH200 / Ada Lovelace) but not yet directly confirmed on GB10.
84 CANNOT satisfy a qualification gate until elevated to OBSERVED.
85
86[UNKNOWN]
87 Currently undiscovered or unverified mechanism. Explicitly tracked as an
88 open research problem; never guessed or faked.
89```
90
91---
92
93## 4. Phase Plan: From Topology to Minimum Submission
94
95### Phase 1: Passive Characterization & Discovery
96- Inspect kernel GPU driver (`nvidia.ko` / `nvidia-uvm.ko`) channel allocation paths.
97- Analyze open-gpu-kernel-modules source for Blackwell GB10 class definitions and method headers.
98- Map BAR0 aperture allocations via `/proc/iomem` and kernel debug interfaces.
99- Classify all target structures under the Epistemic Classification Standard.
100
101### Phase 2: Channel & Pushbuffer Reverse Engineering
102- Observe user-space channel creation (`/dev/nvidia*` ioctl sequence or direct mapping).
103- Identify GPFIFO entry formatting and pushbuffer token encodings.
104- Trace memory barrier and flush requirements on coherent ARM64 Neoverse V2.
105
106### Phase 3: Doorbell & Completion Validation
107- Identify physical doorbell page offset within BAR0.
108- Determine token encoding (channel ID + pushbuffer get/put pointer).
109- Validate hardware semaphore release or timestamp writeback upon completion.
110
111### Phase 4: Minimum Safe Hardware Transaction
112- Construct minimal sovereign pushbuffer descriptor.
113- Submit descriptor into hardware channel.
114- Independently observe hardware execution without proprietary userspace runtimes.
115- Verify completion on physical silicon.
116
117---
118
119## 5. Milestone 16 Exit Criteria
120
121Milestone 16 is complete when:
122
1231. **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.
1242. **Doorbell & Queue Verified**: Physical doorbell offset and GPFIFO ring format are independently demonstrated.
1253. **Completion Observed**: Hardware completion signaling is independently verified from device-produced memory modification.
1264. **Zero Ambient Authority**: All submissions remain strictly mediated through the capability and memory bounds established in Milestone 15.
127
128Milestone 16 provides the empirical foundation upon which **Milestone 17 (`OMEGA_BLACKWELL_VECTOR`)** synthesizes autonomous GPU compute.
129
130---
131
132## 6. Empirical Verification & Qualification
133
134Milestone 16 was qualified on NVIDIA DGX Spark on 2026-09-26.
135
136### 6.1 Historical Qualification Audit (Superseded)
137
138- **Original Commit**: `physics@f72e2974793a288c5dd910180f4685deffa31bb7`
139- **Original Receipt**: `evidence/m16-blackwell-native-path-receipt.json`
140- **Audit Status**: **SUPERSEDED / FAILED INDEPENDENT RUNTIME AUDIT**
141- **Audit Findings**:
142 1. `sovereign_submit` linked and loaded `libcuda.so.1`.
143 2. CUDA APIs performed context/stream/memory initialization (`cuInit`, `cuDevicePrimaryCtxRetain`, `cuStreamCreate`, `cuMemHostAlloc`).
144 3. Session-specific queue, USERD, and work-submit token state was reused (`ring = 0x200202000`, `userd_gpput = 0x20080108c`, `token = 0x40000003`).
145 4. Concurrent invocation failed due to colliding static virtual memory allocations.
146 5. Referenced raw evidence was not committed to Git.
147 6. Original flush interpretation contained an unsupported claim regarding method execution semantics.
148 7. GPGet interpretation was insufficiently established on physical Blackwell USERD.
149 8. Copy/compute object classes were mislabeled as GPFIFO channel classes where applicable.
150 9. Physical-address claims lacked independent qualification (userspace virtual mappings were treated as verified physical addresses).
151
152The historical commit `physics@f72e297` is preserved in git history as an immutable audit record.
153
154### 6.2 Corrective Requalification (Ratified)
155
156- **Implementation Commit**: `physics@a2c0d7fbc03f7ce91fcb6389312a0ee8630322cd`
157- **Evidence Commit**: `physics@92038f7`
158- **Canonical Main Commit**: `physics@b64753d95bacb1114ba48decde48239f0c542e12` (PR #11)
159- **Authoritative Evidence Collection**: `physics/evidence/m16-requalification/` (sealed with `SHA256SUMS`)
160- **Physics Qualification Receipt**: `evidence/m16-blackwell-native-path-requalification-receipt.json`
161- **Audit Dossier**: `evidence/m16-requalification/M16_REQUALIFICATION_AUDIT.md`
162- **Requalification Scope**:
163 1. Complete critical path verified with zero `UNKNOWN` or `INFERRED` links.
164 2. 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.
165 3. 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`).
166 4. Usermode doorbell aperture identified at BAR0 offset `0xbb0000` (class `0xC661` `HOPPER_USERMODE_A`), with register offset `+0x90` (`NVC361_NOTIFY_CHANNEL_PENDING`).
167 5. GPFIFO 8-byte entry structure and `NVC06F` pushbuffer method headers decoded with bit 41 (`LEVEL_SUBROUTINE`) dispatch.
168 6. Device completion attributed to pushbuffer method `0x5c` (`SEM_ADDR_LO`) writing coherent memory marker with `RELEASE` (`0x1`) flanked by `MEM_OP_D` flushes.
169 7. 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).
170 8. Concurrency verified: Independent contexts execute concurrently without memory collision or crosstalk.
171
172**Milestone 16 is CORRECTIVELY REQUALIFIED and RATIFIED.** Milestone 17 (`OMEGA_BLACKWELL_VECTOR`) is **IN PROGRESS**.
173