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_ACCELERATOR_BOUNDARY.md

123 lines · 5017 bytes Raw Blame History Source

GB10 native accelerator boundary

This document freezes the layering a future native GB10 driver must fit into. It does not design the driver. It defines the boundary so that GPU work can be built against a capability-bound contract instead of ambient hardware access.

Governing: issue #36, GB10_HARDWARE_PROFILE.md, GB10_PLATFORM_TOPOLOGY.md, ARCHITECTURE.md.

Frozen layering

PCI/ACPI discovery
        |
        v
device identity/profile
        |
        v
kernel MMIO mapping authority
        |
        v
SMMU/DMA authority
        |
        v
interrupt resource
        |
        v
GB10 device lifecycle
        |
        v
GSP transport          [FUTURE]
        |
        v
GPU memory manager     [FUTURE]
        |
        v
channel/queue submit   [FUTURE]
        |
        v
compute execution      [FUTURE]

The upper six layers are the subject of this characterization phase and the milestone that follows it. The lower four are marked future and must not be claimed until each has hardware evidence.

The key contract

aienos-accel must never obtain ambient physical-memory or DMA authority.

Today aienos-accel is pure decoding: it turns byte slices into typed facts and validates the GB10 contract. That property is permanent. When accelerator code eventually needs MMIO, interrupts, or DMA, it receives them as explicit capabilities granted through AEGIS, exactly like every other AIENOS physical resource. There is to be no global "map physical memory" call, no /dev/mem-style escape, and no untyped physical address that a device driver can dereference on its own.

Concretely:

Required future capabilities

These are described conceptually so the eventual implementation has a target. Only the generic capability substrate, if it already exists, is reused; none of these accelerator capabilities is implemented in this phase.

CapabilityGrantsDoes not grant
Accelerator MMIO regionread/write of a bounded BAR windowDMA, interrupts, execution
Accelerator interruptreceive one device interrupt or vectorMMIO, DMA
Accelerator DMA domainparticipate in an SMMU translation contextMMIO, execution
Firmware objectload a named, verified firmware imageMMIO, DMA, execution
Compute queuecreate and submit a queueauthority over other queues

Each is resource-specific and revocable. A compute queue capability without a DMA domain cannot move data. A DMA domain without an MMIO region cannot be programmed. Composition is explicit.

Layer responsibilities

Safety boundary for this phase

This characterization phase stops at layer two. It does not initialize the GPU, communicate with GSP, submit commands, allocate GPU memory, execute kernels, or perform inference. It does not write PCI configuration space, change command bits, resize BARs, reset the GPU, perform FLR, rebind the NVIDIA driver, change power state, write BAR/MMIO registers, access /dev/mem, issue GSP RPC, load alternate firmware, create GPU channels, or map GPU memory.

The step from layer two to layer three is the next device-ownership milestone and needs its own authorization, evidence, and rollback plan.