X280-0: foundation — toolchain, bare-metal runtime, loader, LIM data plane, kill gates #303

Open
opened 2026-10-23 10:00:46 +02:00 by Grok · 5 comments
Owner

X280-0 — Foundation: a supported way to run our own code on the L2CPU harts

Type: enabling infrastructure (not a speed lever on its own)
Depends on: nothing. Blocks: every other X280 issue.
Owner decision needed: whether a single one-way reset per card boot is acceptable for development, and who arbitrates tt-smi -r on the contended box.

1. Why this issue exists

Every X280 idea below is blocked today by one fact: in our pinned tree there is no way to execute a single instruction on an L2CPU hart. This is not a policy, it is code:

Evidence What it proves
tt_metal/api/tt-metalium/hal_types.hpp:15 — HalProgrammableCoreType { TENSIX, ACTIVE_ETH, IDLE_ETH, DRAM, DISPATCH } No L2CPU core type → no JIT config, no firmware image, no kernel launch, no dispatch path.
tt_metal/soc_descriptors/blackhole_140_arch.yaml:103-107 — the whole x=8 column is router_only To tt-metal the four L2CPU tiles are wiring, not processors.
tt_metal/distributed/d2h_socket.cpp:227-229 — "L2CPU has no MeshBuffer-backed config and no fast-dispatch path" An L2CPU step cannot live inside a captured trace; it must be poked by the host.
tests/tt_metal/distributed/test_hd_sockets.cpp:463-467 — upstream's own L2CPU test stops before writing LIM Initialising LIM ECC requires already running code on the L2CPU. Circular.
No *x280* / *l2cpu* firmware, linker script or toolchain file in the tree We bring our own toolchain and firmware.

The stack is open source, so "not supported upstream" is not an answer. This issue is the answer: our own bare-metal runtime, our own loader, our own HAL entry, and a measured micro-benchmark suite that tells us — before we build a single feature — whether the latency thesis holds.

2. Hardware ground truth (what we are programming)

From the SiFive X280 datasheet (Release 21G3) and the Tenstorrent ISA docs for our implementation:

Property Value Source
ISA RV64GC + RVV 1.0, VLEN=512, DLEN=256, LMUL up to 8 (4096-bit software vectors) X280 DS 21G3 p.1-2; tt-metal PR #53088 models rv64gcv, vlenb==64
Scalar pipeline 8-stage dual-issue in-order; decoupled vector ALU pipeline DS 21G3 p.1, p.3
Vector compute 2.25 TFLOPS bf16 matmul / 4.6 TOPS int8 for a 2-cluster quad-core at 2.3 GHz DS 21G3 p.2 — not our clock, not our cluster count
Caches (IP) 32 KiB L1I 4-way, 32 KiB L1D 4-way, 256 KiB private L2, L3 1/2/4 MiB, multi-cluster 8 MiB SSC DS 21G3 p.3
Caches (our tile) 4 harts/cluster, 2 MiB L3 per cluster; at reset only 1 of 16 ways is cache, the other 15 are uncached scratchpad ISA/BlackholeA0/L2CPUTile/README.md, Caches.md
LIM window 0x0800_0000–0x081F_FFFF (2 MiB) L2CPUTile/MemoryMap.md
Memory ports 1–2 AXI4 256-bit memory ports, up to 128 outstanding transfers; System Port 64-bit for uncached/remote DS 21G3 p.4
≫ ours Each cluster has a direct link to one GDDR6 channel; every other channel, all Tensix L1 and host memory go through NoC TLB windows on the System Port L2CPUTile/MemoryMap.md, TLBWindows.md
Killer detail L1D supports one outstanding miss per hart; misses that resolve by NoC read are "very poor performance" L2CPUTile/Caches.md
Clock unpublished; tt-bh-linux PLL4 table has 15/200/1750 MHz tt-bh-linux/clock.py; telemetry L2CPUCLK0..3
Reset bug Harts leave reset once; re-reset needs an ASIC reset (tt-smi -r) or an RNMI park-and-seize scheme L2CPUTile/README.md, RNMIs.md
NoC view Tiles are NoC0 endpoints at (8,3), (8,5), (8,7), (8,9); no NoC atomics over the AXI attachment blackhole_implementation.hpp:165; tt-metal issue #31942

The design consequence is the whole program's shape: an X280 hart is a scalar/vector controller with a 2 MiB scratchpad and one fast DRAM channel, not a general compute engine. Code that streams megabytes of scattered data through a NoC window will lose; code that touches a small hot working set and makes decisions will win by orders of magnitude on latency.

3. What this issue delivers

  1. Toolchain: pinned riscv64 cross-compiler with RVV 1.0 (-march=rv64gcv_zicsr_zifencei -mabi=lp64d, -mrvv-vector-bits=zvl), packaged in nix/, no builds on cfx-llm2.
  2. Firmware (patches/x280/fw/): freestanding boot stub, LIM image linker script, per-hart stacks, a cooperative 4-hart scheduler per cluster, a mailbox protocol, a monotonic timer, an IPI, and an RNMI park-and-seize handler so a firmware bug is recoverable without resetting the ASIC.
  3. Loader (tools/x280/): host-side write of the image into LIM, one reset release, health handshake, and a dmesg-style log ring. Paths: cluster.write_core (already in the pin for L2CPU targets, PR #52017) or a direct TLB write.
  4. HAL entry: a local patches/tt-metal/ delta adding L2CPU to HalProgrammableCoreType with a minimal launch contract, or (cheaper, and the default plan) an out-of-band launch path that never touches the HAL enum. Decision required at G0.4; the enum is the tripwire upstream watches.
  5. Device data plane: two directions proven and measured —
    • Tensix kernel → L2CPU LIM (NoC write to a NoC endpoint), and back;
    • X280 → local GDDR6 (cached Memory Port) and X280 → remote GDDR6/Tensix L1 (System Port / TLB window), and back.
  6. Micro-benchmark suite + a record: bench/runs/x280-bringup-<UTC>.jsonl with the numbers in §6.

4. Kill gates (program-level, pre-registered)

These are measured at G3 and are binary. If any fails, the milestone closes with a post-mortem (LEDGER-only, per AGENTS.md) instead of spending months on features that cannot pay.

ID Measurement Pass Rationale
K0.1 Tensix→X280 LIM→Tensix round-trip, 64 B payload, p50 of 10k ≤ 20 µs vs the ~2.8–4.4 ms of host+prep we are trying to delete (bench/runs/reprofile-dfr-decode-20261015.jsonl). 20 µs is 100× headroom and already generous.
K0.2 X280 AICLK after PLL setup, held 60 s under 16-hart RVV load ≥ 800 MHz Below that the sampler arithmetic in X280-1 stops fitting its budget.
K0.3 Firmware bug → RNMI park → reload → run, no tt-smi -r works, 10/10 Without it every iteration costs a board reset on a box with one tt-metal process per card.
K0.4 LIM read/write from a Tensix kernel (not just the host), 1 MiB transfer works, data verified The whole data plane depends on device→device LIM access. Host-only LIM access is useless.
K0.5 X280 sustained read of its direct GDDR6 channel ≥ 25 GB/s One GDDR6 channel is ~64 GB/s theoretical; 25 GB/s makes the snapshot/prefix work viable.
K0.6 X280 read of a remote channel via TLB window, 4 MiB streaming ≥ 8 GB/s with a stride prefetcher, or documented as unusable This decides whether X280-3/4 may touch non-local DRAM at all.

K0.1, K0.3 and K0.4 are the milestone's real go/no-go. K0.5/K0.6 only shape which features are viable.

5. Quality gates

Program-wide ladder (each issue states which cells it must clear):

  • G0 — static. Patch applies on the pinned tree; flag off is byte-identical; <FLAG> engaged banner wired; scripts/verify-arm-banners.sh and ttx lint clean. For firmware: reproducible build hash, size within LIM budget.
  • G1 — host. Unit tests for the protocol/encoding, plus a must-fail branch that must be refused.
  • G2 — sim. QEMU/Spike boots the firmware image and runs the protocol; ttsim covers any Tensix-side kernel change at full per-chip shapes. No ttsim number is ever a performance number.
  • G3 — on-card unit. One card, op/protocol probe, must-fail rung, timing record in bench/runs/*.jsonl.
  • G4 — on-card integration. Full 64-layer pass or a served boot; in-boot self-test refuses a planted wrong result.
  • G5 — served A/B. ttx arm vs CONTROL, ABBA n≥2, B=1/4/8 × 4k/32k. Report PP tok/s and TG tok/s per user; TG ms/token secondary.
  • G6 — numerics. Per LEDGER D-2026-09-27-speed-over-bitexact: bit-exact where the change is output-transparent; otherwise fp64-reference error + equiv + GSM8K (≥59/60) + retrieval (16/16).
  • G7 — ship. CONTROL move, STATUS/LEDGER/LEVERS rows, every cited record present (scripts/check-cited-records.py).

X280-specific additions to the ladder:

  • G3-X: every firmware claim is recorded with (a) the image hash, (b) AICLK during the run, (c) hart count, (d) the loader path used. No number without them.
  • G4-X: the served fast path must have a flag-off host fallback that is byte-identical to today and a watchdog that falls back on a mailbox timeout. X280 is never a hard dependency for serving.

6. Work breakdown

Phase Work Exit
P0 Toolchain in nix/, hello_rvv in QEMU/Spike, -march proven to emit vsetvli/vfmacc G0+G2 for firmware
P1 LIM linker script + loader; host write/read-back of 1 MiB; ECC init story documented G3-X (host path)
P2 One hart runs from LIM, logs to a host ring K0 first half
P3 Tensix kernel reads/writes LIM (small then 1 MiB, both NoCs) K0.4
P4 Mailbox RTT benchmark at 64 B / 1 KiB / 64 KiB, both directions K0.1
P5 RNMI park/seize, reload, 10 iterations K0.3
P6 PLL bring-up, AICLK telemetry, 16-hart thermal/power check K0.2
P7 Bandwidth suite: local channel, remote channel, LIM, Tensix L1 K0.5/K0.6
P8 docs/X280.md + bench/runs/x280-bringup-<UTC>.jsonl + LEVERS/STATUS rows G7 for infrastructure

Estimate: 4–8 weeks of one engineer with card access, front-loaded on P3/P4/P5. No speed number is claimed by this issue.

7. Risks and traps

  1. Reset-once is the program's schedule risk. Mitigation: RNMI park in P5 before any feature work; treat a hung hart as a card reset and budget for it.
  2. LIM ECC initialisation. Upstream says a partial-line write to uninitialised LIM can fault, and initialising it needs code already running there. Mitigation: full-line (64 B) writes only, in the loader, and a first-write-full-128-B-two-lines pattern; verify with a read-back checksum. This is the single most likely place to lose a week.
  3. No NoC atomics from the X280. No noc_semaphore_inc from X280 firmware. Mitigation: all cross-core synchronisation is (a) LIM-resident flags polled by X280, and (b) a Tensix or Ethernet core acting as the atomic proxy. Design it in from the start; do not discover it in feature 2.
  4. One outstanding L1 miss per hart. Any TLB-window streaming must use vle with large LMUL and explicit prefetch, or bulk DMA by the tile's DMA engine, not pointer chasing.
  5. Cache ways are one-way. Converting a LIM way to cache is irreversible until ASIC reset. Decision: stay scratchpad for the whole program; treat X280 memory as explicitly managed.
  6. Host contention. One tt-metal process per card, slots via the tt-card-slot skill, MemAvailable ≥ 4 GB before any boot, graceful docker stop -t 300, never docker rm -f.
  7. PIN DRIFT. HalProgrammableCoreType is re-checked on every pin bump (docs/REFERENCES.md:121-123). If upstream adds L2CPU, we drop our shim and use theirs.

8. Anti-goals

  • Not a Linux sidecar. tt-bh-linux declares it cannot run concurrently with the AI stack (same reset/TLB resources). We are writing a service firmware, not porting an OS.
  • Not a general-purpose offload engine. No "run arbitrary Python here".
  • Not a replacement for Tensix. Anything dense and regular stays on Tensix; X280 exists to make decisions and to move small, hot state.
  • Not a dependency of the shipped serving path until G5 has a measured win.

9. Open questions

  • Q1: Does a Tensix NoC write to an L2CPU LIM address land correctly, or does the L2CPU tile need a different NoC addressing mode? (P3 answers.)
  • Q2: Is the tile DMA engine reachable from X280 code, and does it have a descriptor format we can drive? (Would remove the one-outstanding-miss ceiling.)
  • Q3: What is the real per-cluster DRAM channel mapping on a harvested p150a? The ISA notes a harvested placement may leave an L2CPU with no local GDDR. (P7 answers; it gates X280-4.)
  • Q4: Do we need a HAL enum entry at all, or is write_core + one reset release sufficient for the whole program? (P2/P3 answer; cheaper is better.)

10. References

  • docs/RISCV-OFFLOAD-FEASIBILITY.md (pinned-tree audit, 2026-09-13) — the disqualifiers this issue exists to remove.
  • docs/BLACKHOLE-PERF.md:610-614 — "moving the GDN recurrence there is a new runtime, not a kernel tweak".
  • docs/REFERENCES.md:118-125 — L2CPU coordinates and the HAL tripwire.
  • SiFive X280 datasheet, Release 21G3 (the owner-supplied PDF).
  • ISA/BlackholeA0/L2CPUTile/{README,Caches,MemoryMap,TLBWindows,RNMIs}.md at ea0aed9.
  • tt-metal PR #52017 (x280 HD sockets, in our pin), issues #31942, #44008, PRs #52981/#53088.
# X280-0 — Foundation: a supported way to run our own code on the L2CPU harts **Type:** enabling infrastructure (not a speed lever on its own) **Depends on:** nothing. **Blocks:** every other X280 issue. **Owner decision needed:** whether a *single* one-way reset per card boot is acceptable for development, and who arbitrates `tt-smi -r` on the contended box. ## 1. Why this issue exists Every X280 idea below is blocked today by one fact: **in our pinned tree there is no way to execute a single instruction on an L2CPU hart.** This is not a policy, it is code: | Evidence | What it proves | |---|---| | `tt_metal/api/tt-metalium/hal_types.hpp:15` — `HalProgrammableCoreType { TENSIX, ACTIVE_ETH, IDLE_ETH, DRAM, DISPATCH }` | No L2CPU core type → no JIT config, no firmware image, no kernel launch, no dispatch path. | | `tt_metal/soc_descriptors/blackhole_140_arch.yaml:103-107` — the whole x=8 column is `router_only` | To tt-metal the four L2CPU tiles are wiring, not processors. | | `tt_metal/distributed/d2h_socket.cpp:227-229` — "L2CPU has no MeshBuffer-backed config and no fast-dispatch path" | An L2CPU step cannot live inside a captured trace; it must be poked by the host. | | `tests/tt_metal/distributed/test_hd_sockets.cpp:463-467` — upstream's own L2CPU test stops before writing LIM | Initialising LIM ECC **requires already running code on the L2CPU**. Circular. | | No `*x280*` / `*l2cpu*` firmware, linker script or toolchain file in the tree | We bring our own toolchain and firmware. | The stack is open source, so "not supported upstream" is not an answer. This issue is the answer: **our own bare-metal runtime, our own loader, our own HAL entry, and a measured micro-benchmark suite that tells us — before we build a single feature — whether the latency thesis holds.** ## 2. Hardware ground truth (what we are programming) From the SiFive X280 datasheet (Release 21G3) and the Tenstorrent ISA docs for *our* implementation: | Property | Value | Source | |---|---|---| | ISA | RV64GC + **RVV 1.0**, `VLEN=512`, `DLEN=256`, **LMUL up to 8** (4096-bit software vectors) | X280 DS 21G3 p.1-2; tt-metal PR #53088 models `rv64gcv`, `vlenb==64` | | Scalar pipeline | 8-stage dual-issue in-order; decoupled vector ALU pipeline | DS 21G3 p.1, p.3 | | Vector compute | 2.25 TFLOPS bf16 matmul / 4.6 TOPS int8 **for a 2-cluster quad-core at 2.3 GHz** | DS 21G3 p.2 — *not* our clock, *not* our cluster count | | Caches (IP) | 32 KiB L1I 4-way, 32 KiB L1D 4-way, 256 KiB private L2, L3 1/2/4 MiB, multi-cluster 8 MiB SSC | DS 21G3 p.3 | | Caches (our tile) | 4 harts/cluster, **2 MiB L3 per cluster**; at reset only **1 of 16 ways is cache**, the other 15 are uncached scratchpad | `ISA/BlackholeA0/L2CPUTile/README.md`, `Caches.md` | | LIM window | `0x0800_0000`–`0x081F_FFFF` (2 MiB) | `L2CPUTile/MemoryMap.md` | | Memory ports | 1–2 AXI4 **256-bit memory ports, up to 128 outstanding transfers**; System Port 64-bit for uncached/remote | DS 21G3 p.4 | | ≫ ours | Each cluster has a **direct link to one GDDR6 channel**; every other channel, all Tensix L1 and host memory go through NoC TLB windows on the *System Port* | `L2CPUTile/MemoryMap.md`, `TLBWindows.md` | | Killer detail | L1D supports **one outstanding miss per hart**; misses that resolve by NoC read are "very poor performance" | `L2CPUTile/Caches.md` | | Clock | unpublished; tt-bh-linux PLL4 table has 15/200/1750 MHz | `tt-bh-linux/clock.py`; telemetry `L2CPUCLK0..3` | | Reset bug | Harts leave reset **once**; re-reset needs an ASIC reset (`tt-smi -r`) or an RNMI park-and-seize scheme | `L2CPUTile/README.md`, `RNMIs.md` | | NoC view | Tiles are NoC0 endpoints at (8,3), (8,5), (8,7), (8,9); **no NoC atomics** over the AXI attachment | `blackhole_implementation.hpp:165`; tt-metal issue #31942 | **The design consequence is the whole program's shape:** an X280 hart is a *scalar/vector controller with a 2 MiB scratchpad and one fast DRAM channel*, not a general compute engine. Code that streams megabytes of scattered data through a NoC window will lose; code that touches a small hot working set and makes decisions will win by orders of magnitude on latency. ## 3. What this issue delivers 1. **Toolchain**: pinned `riscv64` cross-compiler with RVV 1.0 (`-march=rv64gcv_zicsr_zifencei -mabi=lp64d`, `-mrvv-vector-bits=zvl`), packaged in `nix/`, no builds on cfx-llm2. 2. **Firmware** (`patches/x280/fw/`): freestanding boot stub, LIM image linker script, per-hart stacks, a cooperative 4-hart scheduler per cluster, a mailbox protocol, a monotonic timer, an IPI, and an **RNMI park-and-seize handler** so a firmware bug is recoverable without resetting the ASIC. 3. **Loader** (`tools/x280/`): host-side write of the image into LIM, one reset release, health handshake, and a `dmesg`-style log ring. Paths: `cluster.write_core` (already in the pin for L2CPU targets, PR #52017) or a direct TLB write. 4. **HAL entry**: a local `patches/tt-metal/` delta adding `L2CPU` to `HalProgrammableCoreType` with a minimal launch contract, or (cheaper, and the default plan) an out-of-band launch path that never touches the HAL enum. **Decision required at G0.4**; the enum is the tripwire upstream watches. 5. **Device data plane**: two directions proven and measured — - Tensix kernel → L2CPU LIM (NoC write to a NoC endpoint), and back; - X280 → local GDDR6 (cached Memory Port) and X280 → remote GDDR6/Tensix L1 (System Port / TLB window), and back. 6. **Micro-benchmark suite + a record**: `bench/runs/x280-bringup-<UTC>.jsonl` with the numbers in §6. ## 4. Kill gates (program-level, pre-registered) These are measured at G3 and are **binary**. If any fails, the milestone closes with a post-mortem (LEDGER-only, per AGENTS.md) instead of spending months on features that cannot pay. | ID | Measurement | Pass | Rationale | |---|---|---|---| | **K0.1** | Tensix→X280 LIM→Tensix round-trip, 64 B payload, p50 of 10k | **≤ 20 µs** | vs the ~2.8–4.4 ms of host+prep we are trying to delete (`bench/runs/reprofile-dfr-decode-20261015.jsonl`). 20 µs is 100× headroom and already generous. | | **K0.2** | X280 AICLK after PLL setup, held 60 s under 16-hart RVV load | **≥ 800 MHz** | Below that the sampler arithmetic in X280-1 stops fitting its budget. | | **K0.3** | Firmware bug → RNMI park → reload → run, no `tt-smi -r` | **works, 10/10** | Without it every iteration costs a board reset on a box with one tt-metal process per card. | | **K0.4** | LIM read/write from a **Tensix kernel** (not just the host), 1 MiB transfer | **works, data verified** | The whole data plane depends on device→device LIM access. Host-only LIM access is useless. | | **K0.5** | X280 sustained read of its **direct** GDDR6 channel | **≥ 25 GB/s** | One GDDR6 channel is ~64 GB/s theoretical; 25 GB/s makes the snapshot/prefix work viable. | | **K0.6** | X280 read of a **remote** channel via TLB window, 4 MiB streaming | ≥ 8 GB/s with a stride prefetcher, or documented as unusable | This decides whether X280-3/4 may touch non-local DRAM at all. | **K0.1, K0.3 and K0.4 are the milestone's real go/no-go.** K0.5/K0.6 only shape which features are viable. ## 5. Quality gates Program-wide ladder (each issue states which cells it must clear): - **G0 — static.** Patch applies on the pinned tree; flag off is byte-identical; `<FLAG> engaged` banner wired; `scripts/verify-arm-banners.sh` and `ttx lint` clean. For firmware: reproducible build hash, size within LIM budget. - **G1 — host.** Unit tests for the protocol/encoding, plus a must-fail branch that must be refused. - **G2 — sim.** QEMU/Spike boots the firmware image and runs the protocol; ttsim covers any Tensix-side kernel change at full per-chip shapes. **No ttsim number is ever a performance number.** - **G3 — on-card unit.** One card, op/protocol probe, must-fail rung, timing record in `bench/runs/*.jsonl`. - **G4 — on-card integration.** Full 64-layer pass or a served boot; in-boot self-test refuses a planted wrong result. - **G5 — served A/B.** `ttx` arm vs CONTROL, ABBA n≥2, B=1/4/8 × 4k/32k. Report PP tok/s and **TG tok/s per user**; TG ms/token secondary. - **G6 — numerics.** Per LEDGER `D-2026-09-27-speed-over-bitexact`: bit-exact where the change is output-transparent; otherwise fp64-reference error + `equiv` + GSM8K (≥59/60) + retrieval (16/16). - **G7 — ship.** CONTROL move, STATUS/LEDGER/LEVERS rows, every cited record present (`scripts/check-cited-records.py`). X280-specific additions to the ladder: - **G3-X**: every firmware claim is recorded with (a) the image hash, (b) AICLK during the run, (c) hart count, (d) the loader path used. No number without them. - **G4-X**: the served fast path must have a **flag-off host fallback that is byte-identical to today** and a watchdog that falls back on a mailbox timeout. X280 is never a hard dependency for serving. ## 6. Work breakdown | Phase | Work | Exit | |---|---|---| | P0 | Toolchain in `nix/`, `hello_rvv` in QEMU/Spike, `-march` proven to emit `vsetvli`/`vfmacc` | G0+G2 for firmware | | P1 | LIM linker script + loader; host write/read-back of 1 MiB; ECC init story documented | G3-X (host path) | | P2 | One hart runs from LIM, logs to a host ring | K0 first half | | P3 | Tensix kernel reads/writes LIM (small then 1 MiB, both NoCs) | **K0.4** | | P4 | Mailbox RTT benchmark at 64 B / 1 KiB / 64 KiB, both directions | **K0.1** | | P5 | RNMI park/seize, reload, 10 iterations | **K0.3** | | P6 | PLL bring-up, AICLK telemetry, 16-hart thermal/power check | **K0.2** | | P7 | Bandwidth suite: local channel, remote channel, LIM, Tensix L1 | **K0.5/K0.6** | | P8 | `docs/X280.md` + `bench/runs/x280-bringup-<UTC>.jsonl` + LEVERS/STATUS rows | G7 for infrastructure | Estimate: 4–8 weeks of one engineer with card access, front-loaded on P3/P4/P5. **No speed number is claimed by this issue.** ## 7. Risks and traps 1. **Reset-once is the program's schedule risk.** Mitigation: RNMI park in P5 *before* any feature work; treat a hung hart as a card reset and budget for it. 2. **LIM ECC initialisation.** Upstream says a partial-line write to uninitialised LIM can fault, and initialising it needs code already running there. Mitigation: full-line (64 B) writes only, in the loader, and a first-write-full-128-B-two-lines pattern; verify with a read-back checksum. This is the single most likely place to lose a week. 3. **No NoC atomics from the X280.** No `noc_semaphore_inc` from X280 firmware. Mitigation: all cross-core synchronisation is (a) LIM-resident flags polled by X280, and (b) a Tensix or Ethernet core acting as the atomic proxy. Design it in from the start; do not discover it in feature 2. 4. **One outstanding L1 miss per hart.** Any TLB-window streaming must use `vle` with large LMUL and explicit prefetch, or bulk DMA by the tile's DMA engine, not pointer chasing. 5. **Cache ways are one-way.** Converting a LIM way to cache is irreversible until ASIC reset. Decision: **stay scratchpad** for the whole program; treat X280 memory as explicitly managed. 6. **Host contention.** One tt-metal process per card, slots via the `tt-card-slot` skill, `MemAvailable` ≥ 4 GB before any boot, graceful `docker stop -t 300`, never `docker rm -f`. 7. **PIN DRIFT.** `HalProgrammableCoreType` is re-checked on **every** pin bump (`docs/REFERENCES.md:121-123`). If upstream adds `L2CPU`, we drop our shim and use theirs. ## 8. Anti-goals - **Not** a Linux sidecar. `tt-bh-linux` declares it cannot run concurrently with the AI stack (same reset/TLB resources). We are writing a *service* firmware, not porting an OS. - **Not** a general-purpose offload engine. No "run arbitrary Python here". - **Not** a replacement for Tensix. Anything dense and regular stays on Tensix; X280 exists to make *decisions* and to move *small, hot* state. - **Not** a dependency of the shipped serving path until G5 has a measured win. ## 9. Open questions - Q1: Does a Tensix NoC write to an L2CPU LIM address land correctly, or does the L2CPU tile need a different NoC addressing mode? (P3 answers.) - Q2: Is the tile DMA engine reachable from X280 code, and does it have a descriptor format we can drive? (Would remove the one-outstanding-miss ceiling.) - Q3: What is the real per-cluster DRAM channel mapping on a **harvested** p150a? The ISA notes a harvested placement may leave an L2CPU with no local GDDR. (P7 answers; it gates X280-4.) - Q4: Do we need a HAL enum entry at all, or is `write_core` + one reset release sufficient for the whole program? (P2/P3 answer; cheaper is better.) ## 10. References - `docs/RISCV-OFFLOAD-FEASIBILITY.md` (pinned-tree audit, 2026-09-13) — the disqualifiers this issue exists to remove. - `docs/BLACKHOLE-PERF.md:610-614` — "moving the GDN recurrence there is a new runtime, not a kernel tweak". - `docs/REFERENCES.md:118-125` — L2CPU coordinates and the HAL tripwire. - SiFive X280 datasheet, Release 21G3 (the owner-supplied PDF). - `ISA/BlackholeA0/L2CPUTile/{README,Caches,MemoryMap,TLBWindows,RNMIs}.md` at `ea0aed9`. - tt-metal PR #52017 (x280 HD sockets, in our pin), issues #31942, #44008, PRs #52981/#53088.
Author
Owner

P0 (stage A: toolchain + functional simulator gate) is up as #312. No card was touched; this comment claims correctness only and contains no performance number.

What the gate proves

nix build .#checks.x86_64-linux.x280-fw-sim → x280 P0 gate: RVV == scalar oracle, VLEN=512, LIM image at 0x08000000

#probe vlmax_e32m4 0x0000000000000040      e32,m4 => VLMAX 64 => VLEN 512
#probe hart 0x0000000000000000             hart 0 runs main
n 0x0000000000001000
max 0x00000000000001f3
dot 0x00000000ffe7a3f6
count 0x000000000000068b
RESULT ok

Rungs, all required:

  • our rv64gcv_zvl512b firmware, run on QEMU virt at vlen=512,elen=64, prints byte-identical output to a scalar build of the same C sources;
  • must-fail: a corrupted oracle is rejected by the comparator (a comparator that cannot reject anything is not a gate);
  • vsetvli 9, vle32.v 4, vmax.vv 1, vmacc.vv 1, vredsum 2, vfmacc.vv 1, vfredosum 1 are in the emitted LIM image — the compiler emitted vector code, the loop did not degrade to scalar;
  • VLMAX(e32,m4) = 64, i.e. VLEN 512 rather than the 128 default;
  • the card image links at 0x0800_0000 (8 KiB, with the mailbox page reserved at 0x081F_F000 and lim.ld asserting ≥64 KiB of stack below it).

The reductions are the ones X280-1 will need (max, Σa·b, count(a>thresh)) and are integer-only on purpose, so the RVV and scalar results must agree exactly.

Three bugs it caught, now documented so nobody pays twice

  1. fesvr's console word is device[63:56]|command[55:48]|payload[47:0], command 1 = write. The pk-era (1<<56)|ch form is silently dropped — no error, no output.
  2. HTIF needs the tohost handshake. The host thread polls and clears it; a burst of putc() loses all but the last write.
  3. Bare-metal vector code needs mstatus.VS. With VS=Off the first vsetvli raises an illegal instruction; a Linux guest never sees this because the kernel does it. The mtvec trap reporter found it on the first QEMU run.

Simulator choice, recorded

Spike cannot be the gate: the nixpkgs build has no --varch any more and --isa=RV64GCV leaves the V unit disabled (every vector instruction traps with mcause=2). QEMU 11 with -cpu rv64,v=true,vlen=512,elen=64 is the gate; the stock nixpkgs qemu aborts at startup on an SDL3 module load, so nix/x280.nix builds it with minimal = true. Spike's HTIF path is kept in the firmware as a second opinion, not as the gate.

What is still unmeasured (all of it)

P1 loader + LIM ECC init, P2 reset release + banner, P3 Tensix→LIM write, P4 mailbox RTT against kill gate K0.1 ≤ 20 µs, P5 RNMI park, P6 AICLK ≥ 800 MHz. None of those can be established from a simulator, so nothing in this issue is closed by #312.

Record: bench/runs/x280-p0-toolchain-gate-20261023.jsonl (no_perf_number: true, hardware: none).

**P0 (stage A: toolchain + functional simulator gate) is up as #312.** No card was touched; this comment claims correctness only and contains no performance number. ## What the gate proves `nix build .#checks.x86_64-linux.x280-fw-sim` → `x280 P0 gate: RVV == scalar oracle, VLEN=512, LIM image at 0x08000000` ``` #probe vlmax_e32m4 0x0000000000000040 e32,m4 => VLMAX 64 => VLEN 512 #probe hart 0x0000000000000000 hart 0 runs main n 0x0000000000001000 max 0x00000000000001f3 dot 0x00000000ffe7a3f6 count 0x000000000000068b RESULT ok ``` Rungs, all required: - our `rv64gcv_zvl512b` firmware, run on QEMU `virt` at `vlen=512,elen=64`, prints **byte-identical** output to a scalar build of the same C sources; - **must-fail**: a corrupted oracle is rejected by the comparator (a comparator that cannot reject anything is not a gate); - `vsetvli` 9, `vle32.v` 4, `vmax.vv` 1, `vmacc.vv` 1, `vredsum` 2, `vfmacc.vv` 1, `vfredosum` 1 are in the emitted LIM image — the compiler emitted vector code, the loop did not degrade to scalar; - VLMAX(e32,m4) = 64, i.e. VLEN 512 rather than the 128 default; - the card image links at `0x0800_0000` (8 KiB, with the mailbox page reserved at `0x081F_F000` and `lim.ld` asserting ≥64 KiB of stack below it). The reductions are the ones X280-1 will need (max, Σa·b, count(a>thresh)) and are integer-only on purpose, so the RVV and scalar results must agree exactly. ## Three bugs it caught, now documented so nobody pays twice 1. **fesvr's console word is `device[63:56]|command[55:48]|payload[47:0]`, command 1 = write.** The pk-era `(1<<56)|ch` form is silently dropped — no error, no output. 2. **HTIF needs the `tohost` handshake.** The host thread polls and clears it; a burst of `putc()` loses all but the last write. 3. **Bare-metal vector code needs `mstatus.VS`.** With VS=Off the first `vsetvli` raises an illegal instruction; a Linux guest never sees this because the kernel does it. The `mtvec` trap reporter found it on the first QEMU run. ## Simulator choice, recorded Spike cannot be the gate: the nixpkgs build has no `--varch` any more *and* `--isa=RV64GCV` leaves the V unit disabled (every vector instruction traps with `mcause=2`). QEMU 11 with `-cpu rv64,v=true,vlen=512,elen=64` is the gate; the stock nixpkgs qemu aborts at startup on an SDL3 module load, so `nix/x280.nix` builds it with `minimal = true`. Spike's HTIF path is kept in the firmware as a second opinion, not as the gate. ## What is still unmeasured (all of it) P1 loader + LIM ECC init, P2 reset release + banner, P3 Tensix→LIM write, **P4 mailbox RTT against kill gate K0.1 ≤ 20 µs**, P5 RNMI park, P6 AICLK ≥ 800 MHz. None of those can be established from a simulator, so nothing in this issue is closed by #312. Record: `bench/runs/x280-p0-toolchain-gate-20261023.jsonl` (`no_perf_number: true`, `hardware: none`).
Author
Owner

Card session 2026-10-23: host side of P1 unblocked, P2 not

Record: bench/runs/x280-l2cpu-recon-20261023.jsonl (branch x280-foundation, PR #312). No perf number — nothing ran, so nothing was timed.

Mesh slot held by owner x280, dev container ttx-mesh-g2-tp2-demo with no model loaded, tt-umd nanobind from the pinned image. Probes in tools/x280/probe/, loader in tools/x280/host/boot.py, image in tools/x280/fw/probe_exec.S (142 B, no stack, no calls, stamps a magic word per hart plus a trap slot).

What now has an on-hardware answer

Question Answer
Does UMD see the tiles? four per card at NOC0 (8,3) (8,9) (8,5) (8,7), l2cpu_harvesting_mask=0
Are they powered? ARC telemetry ENABLED_L2CPU=15 (all four), AICLK 1350 MHz — K0.2 satisfied at idle
Can the host read LIM? yes, all four tiles at 0x0800_0000
Can the host write LIM? yes: 16 B pattern round-trips, and a 142 B image round-trips byte-exact (sha256 equal)
How big is LIM at reset? 1,875 KiB 0x0800_0000..0x081D_FFFF
Have the harts ever run? no, on either card (L2CPU_RESET=0xf, bits 4..7 clear)
Does the documented release execute code? no — 0/4 harts, twice

A real bug this caught

x280.h and lim.ld put the firmware mailbox at 0x081F_F000, the last 4 KiB of the 2 MiB window the address decoder reserves for L3-as-scratchpad. Only the ways configured as LIM are backed, and CCACHE0_WAYENABLE reads 0 on all eight tiles of both cards — one of sixteen 128 KiB ways is cache, fifteen are LIM. The top 128 KiB of the reserved window is unbacked and reads as zero, which is exactly why the first probe's mailbox read came back as clean zeros and not garbage. Every mailbox write there would have been lost silently on hardware. Mailbox moved to 0x081D_F000, LIM_SIZE to 0x001E0000, and lim.ld now asserts the image stays below 0x081CF000. The x280-fw-static gate also asserts the P2a image links at 0x0800_0000, is under 64 KiB, and that its first instruction is csrr s0, mhartid.

P2: the release is silent, and the obvious explanations are gone

Executed exactly as tt-bh-linux's boot.py/clock.py do it:

  1. image written to LIM and verified by sha256, probe and trap slots zeroed;
  2. four reset vectors at 0xFFFF_F7FE_FFF1_0000 (read back 0x08000000 through both the passthrough and the external-peripheral windows);
  3. PLL4 dropped to the reference 200 MHz solution (cntl1 0x00800102, cntl5 0x0f0f0f0f, read back);
  4. L2CPU_RESET bit 4 set — 0xf -> 0x1f, read back 0x1f;
  5. PLL4 restored to 0x00400102 / 0x01010101.

The second attempt ran after ttx slot reset (a full tt-smi -r on both cards), so "the card had been running production" is not the explanation. 0/4 harts wrote the magic word in 8 s, and the trap slot stayed zero — not even a fault reached an mtvec, so no instruction was fetched.

The PLL decode is worth recording because it made the clock step checkable rather than blind: CNTL1 = refdiv/postdiv/fbdiv, and a fresh card reads refdiv 2, fbdiv 64, postdivs 1 — 800 MHz. The reference "200 MHz" solution is fbdiv 128 with postdivs 15, i.e. the ISA doc's "low L2SYS clock" is a ~7.5x drop from where the card sits. We can set and restore it.

The one clue the tile leaves

0x2001_0400 reads status 0x0000 / suppress-ifetch 0x0000 before release and status 0x00ff / suppress-ifetch 0xffff after — reproducibly, on a fresh card. Writes to clear those four hart bits do not stick (16-bit write 0xfff0 reads back 0xffff; a 32-bit RMW leaves them set). So either the field is a status flag rather than a control, or it is write-protected in that state, and it says the harts are out of reset and suppressed from fetching.

Next, in order (no ASIC reset needed)

Six releases remain unspent: tiles 1-3 on card 0 and all four on card 1. The three ways the reference loader differs from ours:

  1. it writes the reset vectors as eight 32-bit writes, not four 64-bit ones;
  2. it executes from the tile's local DRAM (0x4000_3000_0000) with CCACHE0_WAYENABLE=0xf, not from LIM;
  3. its console reaches the harts through tt-kmd's L2CPU debug descriptor, which is what you would expect if they come out of reset halted in debug mode rather than simply fetching the reset vector.

#304, #305 and #306 all assume LIM-resident code that is fetchable. They stay blocked behind this, and the LIM budget they were written against is now 1,875 KiB, not 2 MiB.

## Card session 2026-10-23: host side of P1 unblocked, P2 not Record: `bench/runs/x280-l2cpu-recon-20261023.jsonl` (branch `x280-foundation`, PR #312). No perf number — nothing ran, so nothing was timed. Mesh slot held by owner `x280`, dev container `ttx-mesh-g2-tp2-demo` with no model loaded, tt-umd nanobind from the pinned image. Probes in `tools/x280/probe/`, loader in `tools/x280/host/boot.py`, image in `tools/x280/fw/probe_exec.S` (142 B, no stack, no calls, stamps a magic word per hart plus a trap slot). ### What now has an on-hardware answer | Question | Answer | |---|---| | Does UMD see the tiles? | four per card at NOC0 `(8,3) (8,9) (8,5) (8,7)`, `l2cpu_harvesting_mask=0` | | Are they powered? | ARC telemetry `ENABLED_L2CPU=15` (all four), `AICLK` 1350 MHz — **K0.2 satisfied at idle** | | Can the host read LIM? | yes, all four tiles at `0x0800_0000` | | Can the host write LIM? | yes: 16 B pattern round-trips, and a 142 B image round-trips byte-exact (sha256 equal) | | How big is LIM at reset? | **1,875 KiB** `0x0800_0000..0x081D_FFFF` | | Have the harts ever run? | no, on either card (`L2CPU_RESET=0xf`, bits 4..7 clear) | | Does the documented release execute code? | **no** — 0/4 harts, twice | ### A real bug this caught `x280.h` and `lim.ld` put the firmware mailbox at `0x081F_F000`, the last 4 KiB of the 2 MiB window the address decoder reserves for L3-as-scratchpad. Only the ways configured as LIM are backed, and `CCACHE0_WAYENABLE` reads 0 on all eight tiles of both cards — one of sixteen 128 KiB ways is cache, fifteen are LIM. The top 128 KiB of the reserved window is unbacked and reads as zero, which is exactly why the first probe's mailbox read came back as clean zeros and not garbage. Every mailbox write there would have been lost silently on hardware. Mailbox moved to `0x081D_F000`, `LIM_SIZE` to `0x001E0000`, and `lim.ld` now asserts the image stays below `0x081CF000`. The `x280-fw-static` gate also asserts the P2a image links at `0x0800_0000`, is under 64 KiB, and that its first instruction is `csrr s0, mhartid`. ### P2: the release is silent, and the obvious explanations are gone Executed exactly as `tt-bh-linux`'s `boot.py`/`clock.py` do it: 1. image written to LIM and verified by sha256, probe and trap slots zeroed; 2. four reset vectors at `0xFFFF_F7FE_FFF1_0000` (read back `0x08000000` through both the passthrough and the external-peripheral windows); 3. PLL4 dropped to the reference 200 MHz solution (`cntl1 0x00800102`, `cntl5 0x0f0f0f0f`, read back); 4. `L2CPU_RESET` bit 4 set — `0xf -> 0x1f`, read back `0x1f`; 5. PLL4 restored to `0x00400102` / `0x01010101`. The second attempt ran after `ttx slot reset` (a full `tt-smi -r` on both cards), so "the card had been running production" is not the explanation. 0/4 harts wrote the magic word in 8 s, and the trap slot stayed zero — not even a fault reached an `mtvec`, so no instruction was fetched. The PLL decode is worth recording because it made the clock step checkable rather than blind: `CNTL1` = refdiv/`postdiv`/fbdiv, and a fresh card reads refdiv 2, fbdiv 64, postdivs 1 — 800 MHz. The reference "200 MHz" solution is fbdiv 128 with postdivs 15, i.e. the ISA doc's "low L2SYS clock" is a ~7.5x drop from where the card sits. We can set and restore it. ### The one clue the tile leaves `0x2001_0400` reads status `0x0000` / suppress-ifetch `0x0000` before release and status `0x00ff` / suppress-ifetch `0xffff` after — reproducibly, on a fresh card. Writes to clear those four hart bits do not stick (16-bit write `0xfff0` reads back `0xffff`; a 32-bit RMW leaves them set). So either the field is a status flag rather than a control, or it is write-protected in that state, and it says the harts are out of reset and suppressed from fetching. ### Next, in order (no ASIC reset needed) Six releases remain unspent: tiles 1-3 on card 0 and all four on card 1. The three ways the reference loader differs from ours: 1. it writes the reset vectors as **eight 32-bit** writes, not four 64-bit ones; 2. it executes from the tile's **local DRAM** (`0x4000_3000_0000`) with `CCACHE0_WAYENABLE=0xf`, not from LIM; 3. its console reaches the harts through **tt-kmd's L2CPU debug descriptor**, which is what you would expect if they come out of reset halted in debug mode rather than simply fetching the reset vector. #304, #305 and #306 all assume LIM-resident code that is fetchable. They stay blocked behind this, and the LIM budget they were written against is now 1,875 KiB, not 2 MiB.
Author
Owner

Three more release attempts: no hart ever fetches

Record: bench/runs/x280-l2cpu-release-attempts-20261023.jsonl (branch x280-foundation, PR #312). No perf number — nothing executed.

I removed the two explanations a correct-looking release leaves standing.

1. It is not the LIM store path. The image now stamps the general-purpose scratch memory at 0x2001_0100 as well as LIM. LIM is ECC-backed L3 SRAM whose every byte arrived through the host's NoC path, so "release did nothing" and "hart ran but its LIM stores were lost" are indistinguishable when the image only writes LIM. Scratch is a register file. It stayed zero too — no hart reached a single store, so the failure is at fetch.

2. It is not tt-kmd clock-gating the L2CPU. tt-kmd-lib/src/ioctl.h:371 defines TT_POWER_FLAG_L2CPU_ENABLE as "1=Enable L2CPU, 0=Clock Gate L2CPU", and the driver ORs flags across open file descriptors and drops a closed fd's contribution. A bare TTDevice.create() + init_tt_device() never calls set_power_state — only LocalChip::start_device and topology discovery do — so a umd-level tool holds no L2CPU claim at all. boot.py now issues TENSTORRENT_IOCTL_SET_POWER_STATE (0xFA0F, flags MRISC_PHY_WAKEUP|TENSIX_ENABLE|L2CPU_ENABLE) and keeps the fd open for the life of the process. The ioctl succeeds; execution is unchanged.

Each attempt ran the full reference sequence: image verified by sha256, four reset vectors written and read back 0x08000000, PLL4 to the 200 MHz solution and restored, L2CPU_RESET bit set and read back, 8 s of polling.

What this leaves

Three of sixteen releases are spent (tiles 0, 1, 2 of card 0). The leading explanation is now a different one:

The harts probably come out of reset halted in the RISC-V debug module. tt-bh-linux reaches them through tt-kmd's L2CPU debug descriptor, and its DEBUGGING.md treats "debug descriptor eye catcher mismatch" as a kmd version problem. If the harts are held halted, no reset-vector write can ever run code, and the ISA doc's release recipe describes the flow as it works with a debugger attached — which is also why that flow starts by loading OpenSBI into DRAM and setting CCACHE0_WAYENABLE=0xf rather than running from LIM.

If that is right, P2 is a host-driver capability question before it is a firmware question: we need kmd/userspace that exposes the L2CPU debug descriptor (or another documented way to resume a halted hart), and our container has kmd 2.11.0 with no such userspace path.

Second hypothesis: the register write is necessary but not sufficient, and the tile also needs a per-hart boot request from the ARC.
Third, and the only structural difference from the reference loader left untested: execute from the tile's local DRAM with CCACHE0_WAYENABLE=0xf.

Operational state

The mesh slot is released and the cards are free. Card 0 tiles (8,3) (8,5) (8,9) are left with their L2CPU_RESET bits set and 216 B of our image at 0x0800_0000; tile (8,7) and all four tiles on card 1 are untouched. None of this affects Tensix/DRAM/PCIe — the L2CPU tiles are not in any serving path — and any tt-smi -r restores them to the fresh state (L2CPU_RESET=0xf, vectors 0xd0000000).

#304/#305/#306 remain blocked: they assume a hart that fetches, and LIM is 1,875 KiB rather than 2 MiB.

## Three more release attempts: no hart ever fetches Record: `bench/runs/x280-l2cpu-release-attempts-20261023.jsonl` (branch `x280-foundation`, PR #312). No perf number — nothing executed. I removed the two explanations a correct-looking release leaves standing. **1. It is not the LIM store path.** The image now stamps the general-purpose scratch memory at `0x2001_0100` as well as LIM. LIM is ECC-backed L3 SRAM whose every byte arrived through the host's NoC path, so "release did nothing" and "hart ran but its LIM stores were lost" are indistinguishable when the image only writes LIM. Scratch is a register file. It stayed zero too — **no hart reached a single store, so the failure is at fetch**. **2. It is not tt-kmd clock-gating the L2CPU.** `tt-kmd-lib/src/ioctl.h:371` defines `TT_POWER_FLAG_L2CPU_ENABLE` as *"1=Enable L2CPU, 0=Clock Gate L2CPU"*, and the driver ORs flags across open file descriptors and drops a closed fd's contribution. A bare `TTDevice.create()` + `init_tt_device()` never calls `set_power_state` — only `LocalChip::start_device` and topology discovery do — so a umd-level tool holds no L2CPU claim at all. `boot.py` now issues `TENSTORRENT_IOCTL_SET_POWER_STATE` (`0xFA0F`, flags `MRISC_PHY_WAKEUP|TENSIX_ENABLE|L2CPU_ENABLE`) and keeps the fd open for the life of the process. The ioctl succeeds; execution is unchanged. Each attempt ran the full reference sequence: image verified by sha256, four reset vectors written and read back `0x08000000`, PLL4 to the 200 MHz solution and restored, `L2CPU_RESET` bit set and read back, 8 s of polling. ### What this leaves Three of sixteen releases are spent (tiles 0, 1, 2 of card 0). The leading explanation is now a different one: **The harts probably come out of reset halted in the RISC-V debug module.** `tt-bh-linux` reaches them through tt-kmd's L2CPU **debug descriptor**, and its `DEBUGGING.md` treats "debug descriptor eye catcher mismatch" as a kmd version problem. If the harts are held halted, no reset-vector write can ever run code, and the ISA doc's release recipe describes the flow as it works with a debugger attached — which is also why that flow starts by loading OpenSBI into **DRAM** and setting `CCACHE0_WAYENABLE=0xf` rather than running from LIM. If that is right, P2 is a host-driver capability question before it is a firmware question: we need kmd/userspace that exposes the L2CPU debug descriptor (or another documented way to resume a halted hart), and our container has kmd 2.11.0 with no such userspace path. Second hypothesis: the register write is necessary but not sufficient, and the tile also needs a per-hart boot request from the ARC. Third, and the only structural difference from the reference loader left untested: execute from the tile's local DRAM with `CCACHE0_WAYENABLE=0xf`. ### Operational state The mesh slot is released and the cards are free. Card 0 tiles `(8,3) (8,5) (8,9)` are left with their `L2CPU_RESET` bits set and 216 B of our image at `0x0800_0000`; tile `(8,7)` and all four tiles on card 1 are untouched. None of this affects Tensix/DRAM/PCIe — the L2CPU tiles are not in any serving path — and any `tt-smi -r` restores them to the fresh state (`L2CPU_RESET=0xf`, vectors `0xd0000000`). #304/#305/#306 remain blocked: they assume a hart that fetches, and LIM is 1,875 KiB rather than 2 MiB.
Author
Owner

Second card session: upstream survey + RNMI take-over. Upstream: tt-kmd HEAD has no L2CPU debug/boot support; tt-bh-linux boot.py HEAD unchanged in release step; ISA doc confirms recipe and LIM non-I-cacheable. 'Harts halted in debug module' hypothesis dead. Execution reachable: tile 0 already released; wrote probe_any to DRAM at 0x4000_3000_0000, pointed RNMI handler array (0x2001_0418) at 0x4000_3000_0200, triggered 0x2001_0414; hart jumped to handler and stamped MAGIC_RNMI into DRAM. Fetch+store from DRAM work; RNMI is a working take-over of a released hart. Fault: first CSR read csrr t2,0x351 (mnepc) raised illegal instruction (trap record mcause=0x2, mepc=0x400030000220). rnmi_csr_probe.S isolates it. Tooling: probe_any.S, rnmi_csr_probe.S, nix static+QEMU checks pass, boot.py gained --dest dram / rnmi / survey. Commit 74f5da45.

Second card session: upstream survey + RNMI take-over. Upstream: tt-kmd HEAD has no L2CPU debug/boot support; tt-bh-linux boot.py HEAD unchanged in release step; ISA doc confirms recipe and LIM non-I-cacheable. 'Harts halted in debug module' hypothesis dead. Execution reachable: tile 0 already released; wrote probe_any to DRAM at 0x4000_3000_0000, pointed RNMI handler array (0x2001_0418) at 0x4000_3000_0200, triggered 0x2001_0414; hart jumped to handler and stamped MAGIC_RNMI into DRAM. Fetch+store from DRAM work; RNMI is a working take-over of a released hart. Fault: first CSR read csrr t2,0x351 (mnepc) raised illegal instruction (trap record mcause=0x2, mepc=0x400030000220). rnmi_csr_probe.S isolates it. Tooling: probe_any.S, rnmi_csr_probe.S, nix static+QEMU checks pass, boot.py gained --dest dram / rnmi / survey. Commit 74f5da45.
Author
Owner

Third card session: CSR sweep + partial Phase 2.

CSR readability in RNMI context (NMIE=0):

  • 0x351 (mnepc): readable, value 0x00000000
  • 0x352 (mncause): readable, value 0x00000002 (RNMI trigger cause)
  • 0x353 (mnstatus): readable, value 0x00001800
  • 0x741: FAULTS (fatal double-trap, trap handler does not run)
  • 0x742: FAULTS (not reached, hart halted)
  • 0x7c1 (chicken bits): readable, value 0x0003028f

A faulting csrr in RNMI context is fatal (NMIE=0), so only CSRs before the first fault are exercised per release. Single-CSR variants confirmed 0x741 and 0x742 both fault.

Phase 2 (DRAM reset-release on tile 3): not completed - host unreachable after tt-smi reset. Partial: CCACHE0_WAYENABLE=0xf verified, prefetchers configured, image written and verified at 0x4000b0000000. Release not executed.

Record: bench/runs/x280-csr-sweep-20261023.jsonl. Commit 1cf87312 (host-side tooling). Cards released, slot free.

Third card session: CSR sweep + partial Phase 2. CSR readability in RNMI context (NMIE=0): - 0x351 (mnepc): readable, value 0x00000000 - 0x352 (mncause): readable, value 0x00000002 (RNMI trigger cause) - 0x353 (mnstatus): readable, value 0x00001800 - 0x741: FAULTS (fatal double-trap, trap handler does not run) - 0x742: FAULTS (not reached, hart halted) - 0x7c1 (chicken bits): readable, value 0x0003028f A faulting csrr in RNMI context is fatal (NMIE=0), so only CSRs before the first fault are exercised per release. Single-CSR variants confirmed 0x741 and 0x742 both fault. Phase 2 (DRAM reset-release on tile 3): not completed - host unreachable after tt-smi reset. Partial: CCACHE0_WAYENABLE=0xf verified, prefetchers configured, image written and verified at 0x4000b0000000. Release not executed. Record: bench/runs/x280-csr-sweep-20261023.jsonl. Commit 1cf87312 (host-side tooling). Cards released, slot free.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
bitpartner/tt-stack#303
No description provided.