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 / native / omega / platform / README.md
| 1 | # Spark platform readback and control ownership |
| 2 | |
| 3 | Dated observation: 2026-10-28. Aienux base: `659ddd2d7e3e140cb9bf942c3171cbd9cf3d092e`. |
| 4 | This is an offline resource reader and host qualification, not a physical driver |
| 5 | or control qualification. Every fan, power, clock and thermal-policy write is |
| 6 | **NOT_RUN**. No AML method was executed by this investigation. No register was |
| 7 | mapped/read directly, and no existing service was stopped or changed. |
| 8 | |
| 9 | ## Evidence and method |
| 10 | |
| 11 | Read-only copies were taken using `sudo -n cat /sys/firmware/acpi/tables/DSDT` |
| 12 | and the same command for SSDT1 through SSDT5. Each copied binary was disassembled |
| 13 | individually with `iasl -d TABLE.aml` (ACPICA 20230628). The earlier `iasl -da` |
| 14 | combined invocation failed on duplicate declarations; it is INVALID setup, not |
| 15 | an AML or hardware failure. The individual disassemblies succeeded. AML remains |
| 16 | data: neither `_TMP`, `_CPC`, `_INI` nor any other method was invoked. |
| 17 | |
| 18 | The external receipt bundle is `handoffs/spark-five-20261028/QualPlatform` on |
| 19 | the qualification machine. It includes command metadata, stdout, stderr, binary |
| 20 | tables, disassemblies, original distro source archives and the source descriptor, |
| 21 | compiler snapshot, host programs, results and a SHA256 manifest. The raw table |
| 22 | copies are not a new firmware authority. Re-discover resources after firmware |
| 23 | changes; this reader is explicitly tied to the captured board profile. |
| 24 | |
| 25 | DSDT SHA256: `2871cbcb8992f7bd3915d6f19e7cfab577e068dcad58b6f00317a9f2d4e1b28e`. |
| 26 | `cppc-fixture.json` records the independent disassembled descriptors, including |
| 27 | all control fields so the qualification can verify the reader excludes them. |
| 28 | |
| 29 | ## AML dependency map |
| 30 | |
| 31 | DSDT lines 16136-16280 declare seven thermal zones. Each `_TMP` calls serialized |
| 32 | `RREG(address)`. `RREG` declares a four-byte `SystemMemory` OperationRegion, |
| 33 | `DWordAcc`, `NoLock`, `Preserve`, and returns its 32-bit DAT0 field. `_CRT` returns |
| 34 | TCRT `0x0EC4`. `_PSL` is empty. There are no `_ACn`, `_ALn`, `_PSV`, fan or PWM |
| 35 | relationships in these captured tables. |
| 36 | |
| 37 | | Zone / reader index | `_TMP` backing address | Exposed meaning | |
| 38 | |---|---|---| |
| 39 | | TSOC / 0 | `0x1C238818` | firmware-named SoC zone | |
| 40 | | TS0E / 1 | `0x1C238820` | firmware-named zone; physical placement UNKNOWN | |
| 41 | | TS0P / 2 | `0x1C238824` | firmware-named zone; physical placement UNKNOWN | |
| 42 | | TS1E / 3 | `0x1C238828` | firmware-named zone; physical placement UNKNOWN | |
| 43 | | TS1P / 4 | `0x1C23882C` | firmware-named zone; physical placement UNKNOWN | |
| 44 | | TGPU / 5 | `0x1C238830` | firmware-named GPU zone; not assumed identical to NVML | |
| 45 | | TUNC / 6 | `0x1C238834` | firmware-named uncore zone | |
| 46 | |
| 47 | The firmware value has ACPI temperature units (tenths kelvin). The reader retains |
| 48 | the raw word; a critical shutdown threshold is not a fan or power control limit. |
| 49 | Linux's observed sysfs critical value is 104800 millidegrees Celsius. The |
| 50 | conversion convention must match the actual ACPI thermal driver, not an invented |
| 51 | ambient calibration. |
| 52 | |
| 53 | DSDT lines 1073-6585 contain twenty revision-3, 23-entry `_CPC` packages, ordered |
| 54 | CLU0.CPU0..CPU9 then CLU1.CPU0..CPU9. Entries are `SystemMemory`, 32 bits, |
| 55 | bit offset 0, DWORD access, except reference/delivered counters: `FFixedHW`, |
| 56 | 64 bits, addresses 1/0 respectively, with unspecified access size. These FFH |
| 57 | addresses are abstract register selectors, **not physical addresses**. They |
| 58 | must never be dereferenced as SystemMemory. The first capability address is |
| 59 | `0x051CC404`, with per-CPU stride `0xE8`; independent fixture parity checks every |
| 60 | selected descriptor, not just the stride's endpoints. |
| 61 | |
| 62 | Linux `cppc_regs` indexes (package indexes omit the first two integers): |
| 63 | |
| 64 | * Reader exposes 0..4: highest, nominal, lowest-nonlinear, lowest, guaranteed |
| 65 | performance; 10: counter-wrap time; 11/12: reference/delivered counters; |
| 66 | 13: performance-limited; 18: reference performance; 19/20: lowest/nominal MHz. |
| 67 | * Reader refuses 5..9 and 14..17: desired/min/max performance, tolerance/window, |
| 68 | enable/autonomous/activity-window/energy preference. These are not a safe |
| 69 | control API merely because AML provides addresses. |
| 70 | |
| 71 | SSDT2 declares CP0..CP19 SystemMemory regions at each highest-performance |
| 72 | address, with 24-bit fields. `_INI` calls INIT, which writes firmware-provided |
| 73 | values into those fields. This is an offline observation, not a command to replay |
| 74 | INIT or to write a supposedly read-only capability. Firmware changes and |
| 75 | concurrent firmware updates remain possible; a bundle of reads is not an atomic |
| 76 | snapshot. No performance/rate is calculated from unsynchronized CPU counters. |
| 77 | |
| 78 | Other OperationRegions: DSDT debug SystemIO 0x80/0x90; GNVS/ANVS firmware memory; |
| 79 | USB-related EN0/EN1 SystemMemory; generic RTRG SystemMemory read helper; FFA0 |
| 80 | fixed-hardware transport associated with ARM FF-A notifications; SSDT4 GPU |
| 81 | PCI_Config PEGR; SSDT5 TPM fixed-hardware transport. None is evidence of a fan, |
| 82 | EC, SCMI or PCC thermal-control channel. No `EmbeddedControl`, `PNP0C09`, |
| 83 | `PNP0C0B`, SCMI, PCC, `_FST`, `_FPS`, `_FSL`, fan or PWM declaration matched |
| 84 | DSDT/SSDT1..5. The table inventory has no PCCT. Negative table searches do not |
| 85 | prove the board lacks a private controller. |
| 86 | |
| 87 | ## Ownership and limits |
| 88 | |
| 89 | R means an observed standard read interface; W means only an interface exists, |
| 90 | not that a write is safe or authorized. UNKNOWN is never zero or a guessed limit. |
| 91 | |
| 92 | | Resource | Controller / transport | Firmware owner | Read / write | Safe limits source | |
| 93 | |---|---|---|---|---| |
| 94 | | Seven ACPI temperatures | Linux acpi_thermal/acpitz; AML RREG -> SystemMemory | MTKINC AML describes shared registers; producer/physical sensor controller UNKNOWN | sysfs R observed; native READ actions host-exercised only; W not exposed | `_CRT` is shutdown policy only; control envelope UNKNOWN | |
| 95 | | NVMe composite/sensor temperatures | Linux NVMe hwmon -> NVMe SMART log, PCI `0004:01:00.0` | Samsung controller firmware | sysfs R observed; no temperature W implemented | SMART critical threshold observed 84850 mC; sensor min/max sentinel values are invalid, not limits | |
| 96 | | Wi-Fi temperature | mt7925 hwmon -> driver MCU thermal query, PCI `0009:01:00.0` | MediaTek MCU firmware | sysfs R observed; no W implemented | safe-control envelope UNKNOWN | |
| 97 | | GPU temperature/power/clocks | nvidia-smi -> NVML -> NVIDIA driver; GPU `000f:01:00.0` | NVIDIA firmware stack; exact physical policy owner not established by query | standard R exercised; generic vendor W commands exist, board support/limits UNKNOWN | current/min/max/default GPU and module power limits N/A; Supported Clocks N/A | |
| 98 | | CPU capability/clock policy | cppc_cpufreq -> ACPI CPPC SystemMemory; FFH counters separately | MTKINC/ANGUSCPU AML and platform firmware; underlying DVFS implementation UNKNOWN | policy sysfs R observed; OS policy W exists but not qualified; reader excludes control fields | AML performance values and Linux policy bounds are not vendor electrical/thermal limits | |
| 99 | | CPU cooling_device0..19 | Linux Processor cooling -> CPU frequency QoS | OS governor acts on firmware-backed CPU policy | state R; W intentionally not attempted | max_state=3 is policy index, not fan speed or safe clock envelope | |
| 100 | | cooling_device20..25 | Linux pcie_cooling -> PCIe bandwidth controller on root ports | PCIe link hardware/firmware, controlled by OS | sysfs R; W not attempted; cd25 current state invalid | max_state=4 is link-speed state count, not temperature/fan setting | |
| 101 | | Chassis fan, PWM, tachometer | no exposed hwmon PWM/fan or bound ACPI fan/EC/SCMI found | UNKNOWN; do not infer NVIDIA GSP, CPU firmware or board EC ownership | no discovered qualified native R/W interface | vendor board-controller protocol, ownership and fail-safe envelope UNKNOWN | |
| 102 | | Board/module power cap | powercap/power_supply/devfreq expose no usable channel in scout inventory | UNKNOWN beyond NVIDIA query path | no qualified W | UNKNOWN; marketing TDP/PSU rating is not a writable envelope | |
| 103 | |
| 104 | ### NVIDIA query actually exercised |
| 105 | |
| 106 | ``` |
| 107 | nvidia-smi -i 000f:01:00.0 -q -d TEMPERATURE,POWER,CLOCK,PERFORMANCE,SUPPORTED_CLOCKS |
| 108 | ``` |
| 109 | |
| 110 | Exit 0, driver 580.173.02. At that sample: GPU 40 C; P8; average 4.64 W, |
| 111 | instantaneous 4.69 W; graphics/SM 208 MHz; video 598 MHz; memory N/A. Maximum |
| 112 | reported graphics/SM/video clock 3003 MHz and application/default graphics |
| 113 | 2418 MHz are descriptive telemetry, not a validated allowed lock range. |
| 114 | Supported Clocks and all requested/default/min/max/current GPU/module power |
| 115 | limits are **UNKNOWN (N/A)**. The current SW Power Cap event was Not Active; |
| 116 | a historical nonzero cumulative counter does not say a cap is active now. |
| 117 | |
| 118 | Vendor source: https://docs.nvidia.com/deploy/nvidia-smi/index.html . It defines |
| 119 | N/A as unsupported data and requires `--power-limit` values between reported |
| 120 | Min/Max Power Limit. It documents generic clock lock/reset commands, but generic |
| 121 | command availability and a maximum-clock report do not establish this board's |
| 122 | supported clock/control envelope or recovery semantics. |
| 123 | |
| 124 | ## cooling_device25 kernel defect |
| 125 | |
| 126 | The reported `cur_state=-231` and root-port current-link-speed Unknown are ground |
| 127 | truth, not a reason to try a cooling-state write. This is a PCIe cooling device, |
| 128 | not a negative fan speed. Exact distro source package: |
| 129 | `linux-nvidia-7.0 7.0.0-1019.19~24.04.2`, published at |
| 130 | https://ports.ubuntu.com/pool/main/l/linux-nvidia-7.0/ . The original tarball and |
| 131 | Debian diff hashes were checked against that version's `.dsc`; neither |
| 132 | `drivers/thermal/pcie_cooling.c` nor `drivers/thermal/thermal_sysfs.c` is patched |
| 133 | by that diff. The reproduced reference file SHA256 is |
| 134 | `fff34da417c7f8cdb642a8b8ac20b7a5d1010392a2a7b8662178078abd1824c9`. |
| 135 | |
| 136 | `get_cur_level` subtracts `(cur_bus_speed - PCIE_SPEED_2_5GT)` from max_state |
| 137 | without validating cur_bus_speed. At this source pin, the enum base is 0x14, |
| 138 | and PCI_SPEED_UNKNOWN is 0xff. With max_state=4 the result underflows unsigned |
| 139 | long; thermal_sysfs.c prints that word with `%ld`, exposing -231. This does NOT |
| 140 | establish why the port has unknown link speed. Do not mask it by returning a |
| 141 | fabricated state 0 or by interpreting -231 as a valid operating point. |
| 142 | |
| 143 | `pcie-cooling-proposal.patch` proposes rejecting unknown/non-PCIe/unsupported |
| 144 | speeds and speeds above the registered maximum with `-EAGAIN`; output remains |
| 145 | untouched on error. It also rejects an invalid maximum speed with `-EINVAL` |
| 146 | during state-range discovery. Each speed is sampled once with READ_ONCE. |
| 147 | This is a source-level proposal only: no kernel/module build, installation, |
| 148 | reload or deployment was performed. No write callback is changed. A later kernel |
| 149 | integrator must run kernel build/thermal review and topology/resume tests before |
| 150 | shipping; signed sysfs formatting alone would conceal rather than fix the bug. |
| 151 | |
| 152 | `kernel-repro.sh` builds the exact original get_* functions with small C |
| 153 | reference structs, applies the actual proposed patch in a disposable directory, |
| 154 | checks all enum speeds and boundaries, and requires red/green controls in both |
| 155 | directions. This host oracle does not execute a PCIe transaction. |
| 156 | |
| 157 | ## Seeded reader contract and acceptance |
| 158 | |
| 159 | `readback.om` follows the explicit action/acknowledgement separation used by |
| 160 | Aienux #465's protocol.om, rather than introducing a host AML interpreter. |
| 161 | `plstart(kind, unit, field, sequence)` emits a single bounded READ descriptor in |
| 162 | `Pl`: pending, sequence, space, address, bits, raw, valid, last-sequence. Kinds |
| 163 | are 0 thermal and 1 CPPC. `plack(sequence, space, address, bits, raw, ok)` consumes |
| 164 | it. A successful ACK sets raw and valid; a mismatch, I/O failure, replay or |
| 165 | out-of-width raw value cannot publish data. Sequences must increase and be |
| 166 | nonzero. A pending request cannot be replaced. One single-threaded executor is |
| 167 | required; this is not a cross-core or firmware lock. No command-write action |
| 168 | exists, and there is no physical executor or mapping capability in this module. |
| 169 | The acknowledged transport boundary is real: fixtures exercise the reader, not |
| 170 | the physical register path. Native sensor reads and FFH reads remain NOT_RUN. |
| 171 | Transport mapping/permissions and board-documentation checks are prerequisites |
| 172 | for any future physical integration, not bypassed by a passing host fixture. |
| 173 | |
| 174 | Host-only acceptance, after writers have finished: |
| 175 | |
| 176 | ``` |
| 177 | sh native/omega/platform/gate.sh /absolute/pinned/omc EXPECTED_SHA256 /absolute/receipts/readback |
| 178 | sh native/omega/platform/kernel-repro.sh /absolute/receipts/kernel-repro |
| 179 | ``` |
| 180 | |
| 181 | Qualification compiler source `1fe5976d398646b17acabbf6d9dfae96b017e439`, committed |
| 182 | `seed/out/omc` SHA256 |
| 183 | `d6290c7663c2b4bafb59eb3fdf812476e977f4c144def71095c6248ef9b96b84`. |
| 184 | This does not change Aienux's omega.lock runtime-vendor pin. Conductor/oracle |
| 185 | programs use POSIX sh, awk, cc and patch only for verification; production |
| 186 | behavior is seeded Omega. Compiler failure does not count as a killed mutant. |
| 187 | The two conductors replaced the original Python ones (`gate.py`, |
| 188 | `kernel-repro.py`) under the repository's no-Python guard; on the same inputs |
| 189 | they write byte-identical generated programs, binaries, outputs and |
| 190 | `results.json` (the fixture reader is stricter: hex values must be written |
| 191 | `0x...`, strings may not contain escapes, duplicate keys are refused, and all |
| 192 | five fields are required on all 21 registers of every CPU). |
| 193 | |
| 194 | Observed acceptance: both commands exited 0. The readback gate passed all 247 |
| 195 | descriptor reads (twenty CPUs times twelve selected descriptors, plus seven |
| 196 | thermal zones), its boundary suite, and six compiled/runnable mutants: |
| 197 | stale ACK exit 6, wrong address 12, writable selector 26, wide raw word 18, |
| 198 | thermal address 5, CPPC stride 2. The original C reproducer exited 0 and printed |
| 199 | `cur_state=-231 unsigned=18446744073709551385`; the patched reproducer exited 3 |
| 200 | (expected negative control), patched boundary suite exited 0, and the original |
| 201 | code failed that boundary suite with exit 4. Kernel compilation/deployment and |
| 202 | physical native-register readback remain NOT_RUN. |
| 203 | |
| 204 | The first host attempt exposed a test-oracle defect: writable-field rejection |
| 205 | was selected by the reader's own `ploff`, allowing a writable-selector mutant |
| 206 | to survive. The boundary oracle now independently enumerates the excluded |
| 207 | index ranges, and that same runnable mutant is rejected. The first C harness |
| 208 | compile also refused an unused static function under `-Werror`; its reproducer |
| 209 | now checks the maximum-state function too. Both failed attempts are retained |
| 210 | in receipts, not counted as passing controls. |
| 211 | |
| 212 | ## Exact authorization procedure and control disposition |
| 213 | |
| 214 | **No fan/power/clock control currently meets the vendor-documented, board-specific |
| 215 | safe-limits requirement. Consequently no validated executable control-write, |
| 216 | readback-and-revert procedure exists for this machine. All control writes are |
| 217 | NOT_RUN, and none should be authorized from this document.** This is a measured |
| 218 | refusal, not permission to experiment with generic nvidia-smi options or sysfs. |
| 219 | |
| 220 | The currently executable procedure is read-only: |
| 221 | |
| 222 | 1. Keep the resident model/service and its GPU reservation untouched. Do not |
| 223 | reboot, unload drivers, evaluate AML or open `/dev/mem`. |
| 224 | 2. Run exactly the NVIDIA query above; save stdout/stderr and exit status. |
| 225 | Read the existing thermal/hwmon/cpufreq sysfs attributes only. A negative |
| 226 | PCIe cooling state is invalid data, not a control target. |
| 227 | 3. Preserve N/A as UNKNOWN. With these captured results, stop before any write. |
| 228 | No revert is necessary because nothing was modified. |
| 229 | 4. A future control authorization must name the exact controller/firmware |
| 230 | revision, vendor protocol and board-supported limit source, exact old/requested |
| 231 | values and units, original autonomous/manual mode, exact write operation, |
| 232 | independent readback plus tolerance/settling source, and a documented inverse |
| 233 | that restores both value and mode. Generic `--reset-gpu-clocks` restores a |
| 234 | default, not necessarily the previous lock, so is not automatically a revert. |
| 235 | If any of these are UNKNOWN, authorization remains blocked. This document |
| 236 | deliberately supplies no guessed numbers or unsafe write command. |
| 237 | 5. Any kernel-fix boot or native MMIO reader integration is a separate attended |
| 238 | authorization. The existing AIENOSRECOV stick (serial 5D0344B4, PARTUUID |
| 239 | f227357c-1e80-4fd0-a55e-2efbef1dd25c, firmware Boot0002 as observed today) is |
| 240 | recovery-only and must remain read-only. Its 2026-09-25 attended recovery |
| 241 | proof is historical, not a reboot performed today. Any candidate image needs |
| 242 | a separate blank medium and the boot lane's exact procedure. No service |
| 243 | stop/restore or recovery action is needed for the host acceptance above. |
| 244 | |
| 245 | ## Arithmetic evidence |
| 246 | |
| 247 | WolframLanguageEvaluator: |
| 248 | `FromDigits["EC4",16] -> 3780`; `(3780-2732)*100 -> 104800` mC; |
| 249 | `4-(255-20) -> -231`; `Mod[4-(255-20),2^64] -> 18446744073709551385`. |
| 250 | Address conversion and CPPC stride/offset derivations are preserved with the |
| 251 | same evaluator query/results in the external receipt bundle. These are MODELED |
| 252 | arithmetic checks, not additional temperature or register measurements. |