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/aienux/blob/main/docs/GB10_HARDWARE_PROFILE.md # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / docs / GB10_HARDWARE_PROFILE.md` 132 lines ยท 6545 bytes Raw Blame History Rendered 1 # GB10 hardware profile v1 2 3 This document defines the typed GB10 characterization used by AIENOS and the 4 read-only Linux collector that fills it. It is characterization only. Nothing 5 here initializes the GPU, talks to GSP, submits a command, allocates GPU 6 memory, executes a kernel, or performs inference. 7 8 Governing: issue [#36](https://github.com/aien-dev/aienux/issues/36), 9 [GB10_NATIVE_STATUS.md](GB10_NATIVE_STATUS.md), 10 [GB10_PLATFORM_TOPOLOGY.md](GB10_PLATFORM_TOPOLOGY.md), 11 [GB10_NATIVE_ACCELERATOR_BOUNDARY.md](GB10_NATIVE_ACCELERATOR_BOUNDARY.md). 12 13 ## Evidence classes 14 15 Every fact in the profile is one of three states, never collapsed into a 16 default: 17 18 - `Observed`: a value read from a named source. 19 - `Derived`: a value computed from observed values, not read directly. 20 - `Unknown`: no value was obtained. Absence of evidence is not a zero, not a 21 default, and not a hardware property. 22 23 Every observed value also records: 24 25 - its `source` (UEFI firmware service, native AIENOS PCI enumeration, Linux 26 sysfs, Linux procfs, Linux ACPI, a synthetic fixture, or derived); 27 - whether Linux interpreted the value (`true` for a kernel sysfs attribute that 28 the kernel decoded, `false` for raw configuration bytes this project decodes 29 itself); 30 - whether native AIENOS has independently verified the value. 31 32 `BAR0 base observed through Linux sysfs` and `BAR0 base independently decoded 33 by native AIENOS PCI enumeration` are different claims, and the type keeps 34 them different. 35 36 ## Where it lives 37 38 | Item | Location | 39 | --- | --- | 40 | Pure PCI configuration decoders | `crates/aienos-accel/src/pci.rs` | 41 | Typed profile, provenance, GB10 contract match | `crates/aienos-accel/src/profile.rs` | 42 | Register knowledge ledger | `crates/aienos-accel/src/registers.rs` | 43 | Read-only Linux collector | `scripts/gb10_profile.sh` | 44 | Synthetic fixture tests | `crates/aienos-accel/tests/gb10_fixtures.rs` | 45 46 ## Representable facts 47 48 The profile can represent at least the following, with `Fact` carrying the 49 state, source, and native-verification flag. A value configuration space cannot 50 answer stays `Unknown` rather than zero. 51 52 | Fact | Type | Source when known | 53 | --- | --- | --- | 54 | PCI segment / domain, bus, device, function | `PciLocation` | enumeration path | 55 | Vendor ID, device ID | `Fact` | config 0x00 | 56 | Subsystem vendor / device | `Fact` | config 0x2c | 57 | Class, subclass, programming interface | `Fact` | config 0x0b | 58 | Revision | `Fact` | config 0x08 | 59 | PCI command and status | `Fact` | config 0x04 | 60 | BAR count, type, base, prefetchability, 32 vs 64 bit | `Fact` and `Fact` sizes | config 0x10, `resource` | 61 | BAR size when reliably observable | `Fact` | Linux `resource`; a probe is never performed | 62 | PCIe capability presence | `Fact` | config capability list | 63 | Negotiated and maximum link width and speed | inside `PcieFacts` | PCIe capability registers, sysfs | 64 | MSI and MSI-X capability presence | `Fact`, `Fact` | config capability list | 65 | MSI-X table and PBA BAR indicator and offsets | inside `MsixFacts` | MSI-X capability | 66 | IOMMU / SMMU grouping | `Fact` | `iommu_group` sysfs | 67 | NUMA association | `Fact` | `numa_node` sysfs | 68 | Firmware / ACPI relationship | `Fact<&'static str>` | `firmware_node` sysfs | 69 | Known safe PMC observation values | `Fact` | UEFI handoff only, see the register ledger | 70 | Provenance for every observation | `Source`, collection method | always recorded | 71 72 BAR size deserves a note. A PCI BAR size is normally found by writing all ones 73 and reading the mask back. That is a configuration-space write and lies outside 74 the read-only characterization boundary. The profile therefore reports a size 75 only when a source supplies one (the Linux kernel already sized the BAR and 76 exposes it in the `resource` file) or when a synthetic fixture supplies a probe 77 result to the pure `memory_bar_size` decoder. It is never produced by baking a 78 default. 79 80 ## Native contract match 81 82 `profile::match_gb10` validates a decoded endpoint header against the GB10 83 contract using device properties only: 84 85 - vendor `0x10de`, device `0x2e12`; 86 - memory decoding enabled; 87 - BAR0 present, memory (not IO), programmed, and 64-bit. 88 89 It returns the exact rejection reason otherwise 90 (`NotNvidia`, `WrongDevice`, `MemoryDecodeDisabled`, `Bar0Missing`, 91 `Bar0NotMemory`, `Bar0Unprogrammed`, `Bar0Not64Bit`). No bus, device, or 92 function number is assumed, so a relocated GB10 matches exactly as the observed 93 one does. `Gb10Bar::from_header` applies the same contract to the legacy 94 register values the boot handoff already reads. 95 96 ## Read-only Linux collector 97 98 ``` 99 bash scripts/gb10_profile.sh [--json PATH] [--report PATH] [--allow-sudo] [--generated-at S] 100 ``` 101 102 The collector only reads. It never writes configuration space, changes a PCI 103 command bit, resizes a BAR, resets a device, unbinds or rebinds a driver, writes 104 MMIO, or opens `/dev/mem`. 105 106 - Default: unprivileged. It reads sysfs attributes, `/proc/cmdline`, and the 107 first 64 bytes of configuration space, which excludes the capability list. 108 - `--allow-sudo` or `GB10_PROFILE_ALLOW_SUDO=1`: performs two specific, 109 strictly read-only privileged reads through `sudo -n`: the 256-byte 110 configuration space (for the capability list) and the ACPI table copies 111 (for presence, size, and SHA-256). This privilege is required because the 112 kernel exposes only 64 config bytes to unprivileged readers and marks the 113 ACPI table copies root-only. Each field records whether this was used. 114 - `--generated-at` fixes the timestamp. Without it the timestamp is omitted so 115 repeated runs on unchanged hardware are byte-identical. 116 117 Output is a deterministic structured profile (JSON) and a human report. It 118 records only the GB10 device, its PCIe topology, IOMMU grouping, and the 119 firmware tables relevant to reaching it. It does not collect secrets or 120 unrelated machine data. 121 122 An example committed run on Machine 1 is 123 `evidence/gb10_linux_profile_2026-09-25.json`, summarized in 124 [`evidence/gb10_linux_readonly_2026-09-25.md`](../evidence/gb10_linux_readonly_2026-09-25.md). 125 126 ## What this is not 127 128 The Linux collector observes facts through Linux. Those facts are Linux 129 observations, not native AIENOS proofs. The current UEFI discovery path 130 observes a subset (identity, BAR0, and two PMC registers); those are UEFI 131 observations. Nothing here claims GSP ownership, GPU initialization, command 132 submission, GPU DMA readiness, native Blackwell execution, or native inference.