interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / GB10_NATIVE_STATUS.md

80 lines · 4525 bytes Raw Blame History Rendered
1# GB10 native execution status
2
3The `aienos-handoff` AArch64 UEFI image now checks the DGX Spark's observed
4GB10 PCI location first, then walks every bus in each root bridge's
5firmware-declared bus range. It opens the UEFI PCI root bridge protocol with a
6shared (`GetProtocol`) open. The leading hypothesis for the first native
7boot's `gb10: unavailable` is that the firmware PCI bus driver holds the
8protocol `ByDriver` and refuses an exclusive open with `ACCESS_DENIED`; this is
9unconfirmed on hardware, and the next native boot's `gb10_pci_root_open[..]`
10lines will confirm or rule it out. It accepts only
11NVIDIA `10de:2e12` with a programmed 64-bit memory BAR and PCI memory
12decoding enabled. Through the UEFI PCI root bridge protocol, it reads the
13read-only PMC `BOOT_0` and `BOOT_42` registers from BAR0. It carries the
14location, BAR address, and register values across `ExitBootServices` into the
15AIENOS kernel's serial boot report. No Linux service is involved in that image.
16
17When the GB10 is not found, the pre-exit report and the final
18firmware-variable report record why: how many root bridges carry the protocol
19(`gb10_pci_root_bridges`), any refused opens (`gb10_pci_root_open[i]`), and
20per scanned bridge the segment number, device count, bridge count, and valid
21bridge bus windows (`gb10_pci_root[i]`). If the GB10 vendor/device pair was
22seen but rejected, its command/status and BAR0 values are recorded
23(`gb10_pci_candidate[i]`), distinguishing an unprogrammed BAR from a missed
24match.
25
26This image has been built but the fixed discovery path **has not been booted
27on hardware**. These register reads still use firmware services before
28handoff. They establish a device identity path; they do not initialize the
29GPU or execute a GPU command.
30
31To reach independent GPU execution, AIENOS still needs a native MMU mapping for
32GPU MMIO, GPU resource and interrupt management, GB10/GSP firmware loading and
33RPC, GPU memory allocation and synchronization, a command submission path, a
34GPU code toolchain, and an inference runtime. Each stage needs hardware
35evidence before the next can be claimed. The UEFI boot path is only a loader;
36the intended runtime owner is the AIENOS kernel on Arm with GB10 as the primary
37compute device.
38
39The image has not been installed, selected as the host boot target, or allowed
40to modify the existing Linux server. Host verification is `bash
41scripts/verify_all.sh`; a passing result proves build and unit-test readiness,
42not a successful native boot or model execution.
43
44## KV memory ownership on the native path
45
46Added 2026-10-16 for aien-spark/aien-architecture#233 (lane P1). The full
47source map for KV ownership, write rules, GPU visibility, queue bounds,
48cancellation, reuse and restart recovery lives with the code that owns the
49pool, in sovereign-core
50[`crates/aien-kv-cache/OWNERSHIP.md`](https://github.com/aien-spark/aien-sovereign-core/blob/a78ee68ab9a1285a7d4e8a983a7738ff2e1b7d4a/crates/aien-kv-cache/OWNERSHIP.md)
51(aien-spark/aien-sovereign-core#588). What it says about AIENOS, at aienos
52`b7ebf7c`:
53
54- Native GB10 GPU: no KV code exists. Nothing above allocates GPU memory,
55 so there is no native KV buffer, no visibility rule and no evidence.
56 NOT_RUN; the native GB10 model is aienos#327.
57- Native Pi 5 CPU: `aienos-infer` keeps one dense f32 cache per session,
58 `[layer][pos][kv_dim]`, allocated once
59 (`crates/aienos-infer/src/decode.rs` L21, L56-L62). `reset` only sets
60 `pos = 0` and keeps the buffers (L93-L96). No paging, no sharing, no
61 persistence. Native-hardware-tested for inference only:
62 `docs/native/PI5-6-INFER-RUNS.md` (1.20 tok/s, KV capacity 64 in that
63 probe).
64- Native storage: the NVMe driver allows one outstanding command, and
65 "Every request goes through the bounce buffer"
66 (`native/disk/disk_nvme.h` L17-L19). The planned KV slab, its step-budgeted
67 pump and the export/import calls are design only (sovereign-core ADR 0003
68 section 9); no code, NOT_RUN, tracked in aienos#367.
69- Emulator / QEMU: the native KV slab tests are PLANNED (ADR 0003 section
70 11); nothing runs yet.
71
72The Linux-hosted Spark results in that page (GB10 through the NVIDIA Linux
73driver) are not native evidence and are not claimed here.
74
75## Hardware gate register
76
77Which Aienux and GB10 driver gates ran on the host, in QEMU or on the machine, each with its
78receipt: the register [hardware-gates.tsv](hardware-gates.tsv), explained in
79[HARDWARE_GATES.md](HARDWARE_GATES.md). A physical row says PASS only once an attended run has
80committed its receipt.