aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / docs / GB10_HARDWARE_QUALIFICATION.md
| 1 | # GB10 hardware qualification procedure (prepared, not executed) |
| 2 | |
| 3 | This procedure prepares the eventual attended, read-only GB10 characterization |
| 4 | on Machine 1. It is not to be executed as part of this characterization phase. |
| 5 | It exists so the operator run, when authorized, collects only approved |
| 6 | read-only facts and returns the machine to Linux unchanged. |
| 7 | |
| 8 | Governing: issue [#36](https://github.com/aien-dev/aienux/issues/36), |
| 9 | [NATIVE_BOOT_ONE_TIME.md](NATIVE_BOOT_ONE_TIME.md), |
| 10 | [HARDWARE_TEST_RIG.md](HARDWARE_TEST_RIG.md), |
| 11 | [GB10_PLATFORM_TOPOLOGY.md](GB10_PLATFORM_TOPOLOGY.md). |
| 12 | |
| 13 | ## Scope |
| 14 | |
| 15 | Read-only characterization only: |
| 16 | |
| 17 | - `scripts/gb10_profile.sh` run against the running Linux system; |
| 18 | - the existing `aienos-handoff` pre-exit report, if and when a separate native |
| 19 | boot milestone authorizes a boot, which this procedure does not; |
| 20 | - collection of the pre-run and post-run Linux state listed below. |
| 21 | |
| 22 | This procedure does not initialize the GPU, contact GSP, submit a command, |
| 23 | allocate GPU memory, execute a kernel, perform inference, write PCI |
| 24 | configuration space, change a command bit, resize a BAR, reset the GPU, perform |
| 25 | FLR, unbind or rebind the NVIDIA driver, change power state, write MMIO, access |
| 26 | `/dev/mem`, load firmware, create GPU channels, map GPU memory, or change the |
| 27 | SMMU configuration. |
| 28 | |
| 29 | ## Preconditions |
| 30 | |
| 31 | 1. The operator approves the run. It runs under |
| 32 | `aien-proof hold --resource machine-1`. |
| 33 | 2. Secure Boot is OFF for development (owner decision, 2026-10-01); its state is recorded, not required. TPM state is untouched. |
| 34 | 3. Linux storage is untouched. The procedure writes only to a temporary |
| 35 | directory and to the evidence output paths the operator names. |
| 36 | 4. BootOrder is untouched. No boot entry is created, removed, or reordered. |
| 37 | 5. The checkout is clean and maps to one commit. The run records that commit. |
| 38 | |
| 39 | ## Steps |
| 40 | |
| 41 | 1. Record the pre-run state: |
| 42 | |
| 43 | ```bash |
| 44 | cd <checkout> |
| 45 | git rev-parse HEAD |
| 46 | git status --porcelain |
| 47 | cat /proc/sys/kernel/osrelease |
| 48 | cat /proc/cmdline |
| 49 | ``` |
| 50 | |
| 51 | 2. Collect the read-only GB10 profile. Both invocations are read-only; the |
| 52 | second uses the documented `sudo -n` reads for configuration space above 64 |
| 53 | bytes and the ACPI table copies. |
| 54 | |
| 55 | ```bash |
| 56 | bash scripts/gb10_profile.sh \ |
| 57 | --json evidence/gb10_linux_profile_<date>.json \ |
| 58 | --report evidence/gb10_linux_report_<date>.txt |
| 59 | |
| 60 | bash scripts/gb10_profile.sh --allow-sudo \ |
| 61 | --generated-at "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ |
| 62 | --json evidence/gb10_linux_profile_full_<date>.json \ |
| 63 | --report evidence/gb10_linux_report_full_<date>.txt |
| 64 | ``` |
| 65 | |
| 66 | 3. Verify the structured output parses and that the expected device is present: |
| 67 | |
| 68 | ```bash |
| 69 | jq -e '.schema == "aienos.gb10.profile.v1"' evidence/gb10_linux_profile_full_<date>.json |
| 70 | jq -e '.gb10_device_count >= 1' evidence/gb10_linux_profile_full_<date>.json |
| 71 | ``` |
| 72 | |
| 73 | 4. Record the image or tool digest. If the existing handoff image is involved |
| 74 | in a separately authorized native boot, record the image SHA-256 and the |
| 75 | commit, and compare them with `\EFI\AIENOS\STAGED.TXT` exactly as |
| 76 | [NATIVE_BOOT_ONE_TIME.md](NATIVE_BOOT_ONE_TIME.md) specifies. |
| 77 | |
| 78 | 5. Record the post-run state, identical to step 1, and confirm it is unchanged. |
| 79 | |
| 80 | 6. Return normally. The machine stays in Linux. Nothing reboots it. |
| 81 | |
| 82 | ## Evidence to record |
| 83 | |
| 84 | | Evidence | Source | |
| 85 | | --- | --- | |
| 86 | | Exact commit | `git rev-parse HEAD` before and after | |
| 87 | | Working tree clean | `git status --porcelain` empty | |
| 88 | | Kernel and command line | `/proc/sys/kernel/osrelease`, `/proc/cmdline` | |
| 89 | | GB10 identity and location | structured profile `gb10_devices[].vendor_id`, `.device_id`, `.location` | |
| 90 | | BAR layout | structured profile `gb10_devices[].bars` | |
| 91 | | PCIe capability and link | structured profile `gb10_devices[].pcie`, `current_link_speed` | |
| 92 | | MSI / MSI-X | structured profile `gb10_devices[].msi`, `.msix` | |
| 93 | | IOMMU grouping | structured profile `gb10_devices[].iommu_group` | |
| 94 | | ACPI table hashes | structured profile `acpi_tables` | |
| 95 | | MCFG segment map | structured profile `mcfg_segments` | |
| 96 | | Privilege used | structured profile `collector.sudo_used` | |
| 97 | | Pre and post Linux state | the two state captures | |
| 98 | |
| 99 | The full `aien-proof hold` output is the ledger event, as with every Machine 1 |
| 100 | hardware run. |
| 101 | |
| 102 | ## Facts that are out of scope and marked NOT QUALIFIED |
| 103 | |
| 104 | Anything that would require a write, reset, driver unbind, arbitrary MMIO read, |
| 105 | or trust mutation is marked: |
| 106 | |
| 107 | `NOT QUALIFIED - REQUIRES LATER DEVICE-OWNERSHIP MILESTONE` |
| 108 | |
| 109 | This includes, without exception: |
| 110 | |
| 111 | - the PMC `BOOT_0` and `BOOT_42` values read natively by AIENOS (only the UEFI |
| 112 | handoff path may read them, and only in a separately authorized native boot); |
| 113 | - any BAR MMIO read outside the established safe set; |
| 114 | - any GPU reset, FLR, or power state change; |
| 115 | - any NVIDIA driver unbind or rebind; |
| 116 | - any PCI configuration write, command bit change, or BAR resize; |
| 117 | - any GSP contact, firmware load, GPU channel, or GPU memory mapping. |
| 118 | |
| 119 | The procedure does not work around that boundary. It records the boundary as |
| 120 | the answer. |