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
No Branch/Tag specified
master
claude/public-release-v8
claude/pi-lora-device
claude/pi-lora-epyc-check
claude/pi-lora-plumbing
perf/export-cap-12288
claude/pd-kv-admission
claude/ship-cdr8g
claude/ship-col3-cdr8g
codex/public-release
codex/pp10k
codex/mando-kernels
opus/router-delta-margin
opus/rtx-b8-32k
claude/router-ttdown-fastpath
claude/license-apache2
codex/mtp-w1
docs/longctx-pp
codex/k8b4-speed
codex/kvarn2-study
codex/sglang-port-study
codex/inc393-offload-assert
codex/x16-bench
codex/mtp-cpu
codex/mtp-accept-train
opus/rtx-gpu0diag-rec
opus/rtx-sample-sparse
opus/rtx-prof32k-rec
opus/rtx-prof32k
opus/rtx-b8-prof
codex/k8b4-concurrent
opus/rtx-decode-lane
opus/rtx-w4a8-park
opus/rtx-ar-q8
codex/modelopt-scan
opus/pd-master-consolidation
codex/pd-recipe
opus/rtx-k8b4-connector
opus/pd-branch-archive
codex/pd-docs-fix
codex/pd-prod-snapshot
opus/rtx-kv4
opus/pd-connector-lows
history/hermes-review-uplift
eval-sglang-torchtpu
pp32k-w3c-upstream
pp32k-prefill
upstream-scan-20261109
plugin-283-slot-keep
docs/history-pd-delta
opus/pd-delta-export
opus/pd-stack-to-master
pp32k-ethdisp
opus/pd-router-template
docs/pd-path-breakdown
skill/pd-enterprise-bench
opus/pd-arena-freelist
opus/pd-adaptive
opus/rtx-decode-night
opus/rtx-dynk-fix
opus/rtx-night-ar
opus/rtx-night-attn
opus/pd-export-followup
opus/rtx-night-topk
docs/history
opus/pd-export-arm-master
opus/cmb-crash
opus/pd-draft-tune
opus/tt-interleave
opus/pd-adaptive-v2
opus/rtx-embed-host
opus/pd-adaptive-sim
opus/pd-adaptive-router
opus/pd-cutover
opus/pd-hyperqwen
opus/pd-reprefill
opus/pd
public/arm-flatten
public/upstream-inventory
opus/pd-handoff-opt
opus/lsa-eval
fix/tt-serving-hold-guard
opus/pd-sim-levers
opus/mtp-host-row-isolate
opus/mando2222-cp7
opus/upstream-scan-1104
opus/host-sample-why
opus/cold-prefix-s10
opus/cold-prefix-s10-pack
opus/pd-r3
scout/upstream-20261103
opus/rtx-drafter
opus/b8d-measure
docs/status-refresh-20261102
opus/b8d-verify-attn-splitkv
opus/b8d-sparse-verify-sampling
opus/b8d-ar-asym-x8
opus/b8d-draft-head-quant
opus/b8d-prob-draft-topk
opus/b8d-marlin-m32-mma
opus/rtx-opt
opus/traffic-bench
opus/pd-r2
opus/pd-e2e
opus/pd-export
opus/pd-router
opus/pd-connector
opus/pd-rtx-serve
opus/gdn-id-pool
opus/kv-1m
opus/prefix-rounds
opus/prod-spec-image-id
opus/blend-publish
opus/cold-pp
opus/dashboard-bench
opus/pd-rtx
opus/night-window
opus/prod-edge
opus/probe-hugepages
opus/so-vsplit
opus/fused-decode
opus/fused-decode-vsplit
opus/bfp-autoround
opus/blend-b09d16
opus/blend-gptq-table
opus/kv-host-tier
opus/serve-arm
opus/ttx-ab-suite-refuse
opus/kv-host-tier-history
opus/bfp-quant-docs
opus/s12-prefix
opus/kv-host-tier-staging
opus/cfx-llm0
opus/s12-sdlofi
opus/optrace-addon
opus/tmc-premise
opus/s12-budget
ship/s12
opus/s11-next
ship/s11
opus/verify-rest-2
docs/s10-greedy
docs/optrace-fcb-pf32
opus/pf32
ship/s10
opus/verify-rest
opus/dcx
x280-foundation
docs/crashcourse
opus/sdpa32k
docs/stale-fix
opus/dcx-hcap
x280-program-doc
ship/s9
opus/draftcut
ship/s7-pp3
docs/port-skills
opus/ssparity
probe/drafter-t1
opus/verify64
fix/gate-boot-identity
plan/tg100
ship/s7
screen/batch4
sim/fabric-link-counters
opus/s7cand
opus/rs-bank-ship
readme/s6-ss-numbers
free/t-ethtxq
opus/specsample-s6
opus/dualtrace
sim/kernel-overlay-fix
opus/fusedsampler
opus/rs-bank
opus/devaccept
anatomy/rs-line
fix/abpad-cache-key
free/k-swiglu
opus/sscost
free/k-gdnpre
free/u-matmul
launch/opus-specsample
free/u-ccl
free/c-audit
free/s-cost
free/u-models
free/c-sparse
serve/sampling-defaults
free/w-rsnorm
free/f-tail
ship/s6
launch/s-sample4
free/k-glue
bench/acc-curve
opus/top2-branch
screen/acc-levers3
screen/ss-capture
free/s-rowfall
free/a-oracle2
free/d-top2
free/c-sparse-rev
free/s-penalty
opus/specsample
rv4/m-specsample3
free/m-specsample3
free/s-sample4
review/t-proxy2
free/t-proxy2
free/t-served
free/l-kvbytes
free/m-specsample2
free/t-ops
free/l-verifykv
free/m-specsample
free/a-kdyn
fix/pphost-probe-mml
free/w-swiglu4
free/s-prefix4
free/m-creative
free/w-b8dec
free/w-gdnscan
free/t-proxy
free/b-bucket
free/m-multidraft
free/a-tree
free/s-sample3
free/w-swiglu3
docs/goal-recommended-sampling
free/f-sdpa2
ship/cap
b-bucket-tools
review/b-bucket
free/s-prefix3
free/d-gdn
free/s-prefix2
free/s-sample2
free/p-host
free/d-enq
feat/s-prefix-agentic
ship/s5
free/s-specsample
free/a-sink
free/a-accctx2
screen/acc-levers2
free/f-swiglu
bench/agentic-s4
free/f-draft
screen/acc-levers
free/f-qkvz
free/f-dmlp
free/a-window
free/f-gdnprep
free/f-glue
free/a-oracle
free/a-survey
screen/a-accctx
free/a-accctx
free/f-sdpa
docs/utilization
pp/rsfold
pp/idle
tooling/stream-accept
ship/gum2-s4
pp/agmm-t9
pp/gdn-s3cmb
pp/agmm-fwo
ship/s4
pp/agmm
pp/s3prof
ship/rs4
ship-s3-narrow
tools/jit-check-kernel
pp/gdn-combo
ship/s3
pp/glue3
pp/gdn-scan
free/w2eff
pp/gdn
free/agmm2
free/dsdpa
pp/glue2
pp/glue
ttx-claim-unique
pp/warm
pp/gdn-sdpa
free/vrows
pp/host2
pp/host
ar-prefix-hit-log
feat/card-queue-service
dev/prefetch-reopen
k-sweep-s
lookup-swap-k3
docs/s2-ledger-9309
ci-slot-reclaim
ship-s2-narrow
research/verify-rows-gt32
handoff/claude-20261017
dev/ship-stack-2
lc0-agent-corpus-stats
ci/card-gate-armsel
dev/draft-path
dev/bkda-fix
dev/codex-kernels
dev/decode-next
ship-s-narrow
dev/prefill-hostgap
dev/ship-stack
dev/agmm-eff
dev/so-chain
ar-bf8-out8
lever-studies-20261013
ar-bf8-serve
control-dfr
grill/metal-60316-gdn-prefill-waves
grill/metal-60840-vllm-spec-serve
ship-dfr
screen-201-joint
dspark-serve
land-195-drisc-0042
agmm-swiglu-pack
worktree-agent-aceb187bf909a2834
decode-mr-span-direct
gdn-so-fuse-serve
probe-59622-onecard
ship-e-gpgob
gates-e-gpgob
ci-fingerprint
ttx-heal-within-run
levers-nogo-closeout-20261009
tooling-picker-armderive
tg-toks
agent-harness
ci-fp-base
lc0-bench-token-ids
confirm-cpbaol-gpool
screen-hec-joint
control-joint-b8k3c48
grill/metal-58817-llk-8bit-stream
grill/metal-59507-dram-bank-grid
grill/metal-59622-dram-read-split
grill/metal-59695-sdpa-gqa-flags
grill/metal-59957-spec-batch
grill/metal-59965-gdn-scan-fp32
lookup-swap-k3-base
combo-mx-screen
joint-w2t-b8k3c48
muse-mtp-chunked
muse-decode-profile
muse-harness3
muse-state-bfp8
muse-state-bfp8-study
muse-commit-defer
fix/picker-accept-defining
records-197-close
lever/prefill-unlocks-u2-u3-u6-u7
verify-depth-gt4
lever/u2-norm2d-v2
gdn-producer-pool
prefill-kernel-8k
cpb-lmhead-screen
reeval-decode-gdn-attn-mtp
drisc-prefetch-prio
fp8-fidelity-deepdive
reeval/prefill-20261006
drisc-prefetch-pf13
lever-reeval-decode-weights
odo-on-dx
decode-bundle
kx-compute-fuse
gdn-verify-fused
conv-fold
kx-compute-splitread
drisc-prefetch-lever
kx-matmul
kx-matmul-outdirect
drisc-prefetch
decode-research
ci-tg-toks
kv-update-fold
sdpa-dec-lift
baseline/retarget-cph32
lever/agmm-grid9-cph32
lever/attnqkv-11x6-bf4
lever/sdpa-dec-cph-dualnoc
lever/gdn-scan-mcast
lever/gdn-fused-maxbh
lever/sdpa-dec-kchunk-dualnoc
lever/lmlofi-loo
lever/kda2-loo
lever/kda2-lmlofi-loo
lever/agmm-grid9-chunk2304
ci-serve-fix
ci-sweep-faster
ci/agmm-2x2
ci-token-prefix
ci-pr-driven
gdn-prefill-lift
gateup-on-gdc-cpk
resident-epoch-fix
kv-devinit
serving-throughput
gdn-fused-decode
spec-cycle
opmark-c177
resident-host
boot-speed
gateup-mr
prefill-prof
ship-c175-gdc-cpk
lottolabs-repro
lotto-forensics
decode-mr
mtp-c157
dram-attach
upstream-154
mtp-csplit
queue-guard
mtp-so1-cplit
dram-persist
serve-b16
incr-gcroots
resident-dv
mtp-draft-vocab
mtp-so-t0
arm-switch
queue-stepid-fix
p1-levers
tracy-image
op-datasheets
upstream-watch
op-anatomy
skill-prefill-bringup
ttx-gates-correctness
skill-bh-arch
ttx-ops-tools
mtp-gdn-state-traffic
mtp-device-accept
mtp-conv-multi
gdn-vsplit
cm-g9
agmm-grid
verify-ablate
mtp-warm
prefill-cloud
mtp-stack
gdn-multitoken
dspark-device
mtp-async
mtpb-dn
mtp-state-slot
k8v4-mtp
sdpa-spec-fold
pfprof
fabric-ring
ttx-merged
ttx-gates
kv-k8v4-dn
ttx-safety
mmrs-probe
agmm-silu
prefetch-dn
tailtrace-dn
normbf8
prefill-agmm-abso
worktree-agent-a5e29df1933a6076c
sdpa-dec-v-noc0
worktree-agent-aff7f4014dd906d8b
worktree-agent-a015e99a3392d569c
c105-smallops
agmm-in0-lowp
prefill-combo
worktree-agent-a4c964697339cbea0
tp1-prod-port
resident-rearm
decode-sa1
ttx-gc-sudo
prefill-rs-cfg
wb-gaps
prefill-bundle-h
mtp-batch-fix
ttx-fast-fail
host-leak-investigation
kernel-workbench
ttx-quickwins
kernel-workbench-research
decode-split-probe
mtp-batch
sdpa-mcast-q128
decode-mr-lmhead
prefill-kernels
dram-sharded-mr
decode-levers-2
qb2-scout
decode-levers
prefill-deepdive
prefill-devsplit
sim/prevalidate
port/issue-50-bucket-trace
research/lowlevel-levers
integrate-all
perf-loop-c1
g2-arms-registry
ttx-slot-stale-reclaim
bfp4-overlay
deploy/g2-prefix-0019
mtp-thinkingcap
agy/issue-39
agy/issue-36
kv-k8v4
agy/issue-51
agy/issue-64
fix-dead-assumptions
decode-campaign-53-55
fix/71-gdn-gate-fp32-prod
thinkingcap-baseline
tt-quant
bfp-quant
ttx
agy/issue-49
agy/issue-47
dspark-thinkingcap
repo-skills
harness-overhaul
agy/issue-50
agy/issue-45
agy/issue-38
agy/issue-23
dspark-acceptance-rate
thatch/lane2-serve-gotchas
agent/claude-auth/goal-4-nvfp4-single-card
agent/claude-auth/ttsim-scout
archive/vscode-toolkit-flake
archive/tt-tooling-scout
archive/tt-model-publish
archive/thatch/lane1-fir-drift
archive/serving-throughput
archive/serving-cleared-arm
archive/prefill-optimization-notes
archive/mtp-scout
archive/mtp-dflash2-ttsim
archive/harvest-whitehole-notes
archive/fix-serving-paths
archive/fix-readiness-race
archive/fix-probe-sigpipe
archive/fix-probe-card-sabotage
archive/fix-inspect-empty-stdout
archive/fix-http-code-format
archive/docs/agents-md-retire-claude-md
archive/autoresearch/dspark-drafter-sep07
archive/agent/fable/warm-tensor-cache
archive/agent/fable/external-repo-runbook
archive/agent/fable/cxx-fork-build
archive/agent/claude-auth/two-card-external-report
archive/agent/claude-auth/silicon-validation-findings
archive/agent/claude-auth/prod-27b-serving
archive/agent/claude-auth/ornith-moe
archive/agent/claude-auth/on-box-iteration
archive/agent/claude-auth/mesh-ready
archive/agent/claude-auth/inventory-pre-reboot
archive/agent/claude-auth/goal-vllm-serving
archive/agent/claude-auth/goal-2-3
archive/agent/claude-auth/first-bringup
Labels
Clear labels
cards:go
Force a card run on this PR (consumed by CI; re-add to force again)
hermes-approved
Approved by Hermes (bot). Not a human approval.
human-approved
Approved by @donach for T2-path changes. Required by .forgejo/workflows/ci.yml approve_gate.
human-approved
Approved by the human reviewer — merge gate
iter
0
X280 program stage
iter
1
X280 program stage
iter
2
X280 program stage
iter
3
X280 program stage
prio:high
Still a large B=4/B=8 wall or tokens/cycle lever
prio:low
Parked, already lost, or bookkeeping
prio:med
Real but smaller, or needs a gate
priority/high
Owner-flagged; queue agent picks these first
state
blocked
X280 program workflow state
state
doing
X280 program workflow state
state
done
X280 program workflow state
state
review
X280 program workflow state
state
todo
X280 program workflow state
x280
SiFive X280 (L2CPU) on-card control plane
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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.
Blocks
#304 X280-1: device-resident sampler — temperature/top-k/top-p/penalties/grammars without the host
bitpartner/tt-stack
#305 X280-2: on-card speculative control loop — kill the MTP V→host→C round trip
bitpartner/tt-stack
#306 X280-3: prefill sequencer — kill the 73–87 ms/request host gap
bitpartner/tt-stack
#307 X280-6: on-card detokenizer and stop-string matching
bitpartner/tt-stack
Reference
bitpartner/tt-stack#303
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 -ron 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:
tt_metal/api/tt-metalium/hal_types.hpp:15—HalProgrammableCoreType { TENSIX, ACTIVE_ETH, IDLE_ETH, DRAM, DISPATCH }tt_metal/soc_descriptors/blackhole_140_arch.yaml:103-107— the whole x=8 column isrouter_onlytt_metal/distributed/d2h_socket.cpp:227-229— "L2CPU has no MeshBuffer-backed config and no fast-dispatch path"tests/tt_metal/distributed/test_hd_sockets.cpp:463-467— upstream's own L2CPU test stops before writing LIM*x280*/*l2cpu*firmware, linker script or toolchain file in the treeThe 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:
VLEN=512,DLEN=256, LMUL up to 8 (4096-bit software vectors)rv64gcv,vlenb==64ISA/BlackholeA0/L2CPUTile/README.md,Caches.md0x0800_0000–0x081F_FFFF(2 MiB)L2CPUTile/MemoryMap.mdL2CPUTile/MemoryMap.md,TLBWindows.mdL2CPUTile/Caches.mdtt-bh-linux/clock.py; telemetryL2CPUCLK0..3tt-smi -r) or an RNMI park-and-seize schemeL2CPUTile/README.md,RNMIs.mdblackhole_implementation.hpp:165; tt-metal issue #31942The 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
riscv64cross-compiler with RVV 1.0 (-march=rv64gcv_zicsr_zifencei -mabi=lp64d,-mrvv-vector-bits=zvl), packaged innix/, no builds on cfx-llm2.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.tools/x280/): host-side write of the image into LIM, one reset release, health handshake, and admesg-style log ring. Paths:cluster.write_core(already in the pin for L2CPU targets, PR #52017) or a direct TLB write.patches/tt-metal/delta addingL2CPUtoHalProgrammableCoreTypewith 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.bench/runs/x280-bringup-<UTC>.jsonlwith 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.
bench/runs/reprofile-dfr-decode-20261015.jsonl). 20 µs is 100× headroom and already generous.tt-smi -rK0.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):
<FLAG> engagedbanner wired;scripts/verify-arm-banners.shandttx lintclean. For firmware: reproducible build hash, size within LIM budget.bench/runs/*.jsonl.ttxarm 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.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).scripts/check-cited-records.py).X280-specific additions to the ladder:
6. Work breakdown
nix/,hello_rvvin QEMU/Spike,-marchproven to emitvsetvli/vfmaccdocs/X280.md+bench/runs/x280-bringup-<UTC>.jsonl+ LEVERS/STATUS rowsEstimate: 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
noc_semaphore_incfrom 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.vlewith large LMUL and explicit prefetch, or bulk DMA by the tile's DMA engine, not pointer chasing.tt-card-slotskill,MemAvailable≥ 4 GB before any boot, gracefuldocker stop -t 300, neverdocker rm -f.HalProgrammableCoreTypeis re-checked on every pin bump (docs/REFERENCES.md:121-123). If upstream addsL2CPU, we drop our shim and use theirs.8. Anti-goals
tt-bh-linuxdeclares it cannot run concurrently with the AI stack (same reset/TLB resources). We are writing a service firmware, not porting an OS.9. Open questions
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.ISA/BlackholeA0/L2CPUTile/{README,Caches,MemoryMap,TLBWindows,RNMIs}.mdatea0aed9.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 0x08000000Rungs, all required:
rv64gcv_zvl512bfirmware, run on QEMUvirtatvlen=512,elen=64, prints byte-identical output to a scalar build of the same C sources;vsetvli9,vle32.v4,vmax.vv1,vmacc.vv1,vredsum2,vfmacc.vv1,vfredosum1 are in the emitted LIM image — the compiler emitted vector code, the loop did not degrade to scalar;0x0800_0000(8 KiB, with the mailbox page reserved at0x081F_F000andlim.ldasserting ≥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
device[63:56]|command[55:48]|payload[47:0], command 1 = write. The pk-era(1<<56)|chform is silently dropped — no error, no output.tohosthandshake. The host thread polls and clears it; a burst ofputc()loses all but the last write.mstatus.VS. With VS=Off the firstvsetvliraises an illegal instruction; a Linux guest never sees this because the kernel does it. Themtvectrap reporter found it on the first QEMU run.Simulator choice, recorded
Spike cannot be the gate: the nixpkgs build has no
--varchany more and--isa=RV64GCVleaves the V unit disabled (every vector instruction traps withmcause=2). QEMU 11 with-cpu rv64,v=true,vlen=512,elen=64is the gate; the stock nixpkgs qemu aborts at startup on an SDL3 module load, sonix/x280.nixbuilds it withminimal = 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).Card session 2026-10-23: host side of P1 unblocked, P2 not
Record:
bench/runs/x280-l2cpu-recon-20261023.jsonl(branchx280-foundation, PR #312). No perf number — nothing ran, so nothing was timed.Mesh slot held by owner
x280, dev containerttx-mesh-g2-tp2-demowith no model loaded, tt-umd nanobind from the pinned image. Probes intools/x280/probe/, loader intools/x280/host/boot.py, image intools/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
(8,3) (8,9) (8,5) (8,7),l2cpu_harvesting_mask=0ENABLED_L2CPU=15(all four),AICLK1350 MHz — K0.2 satisfied at idle0x0800_00000x0800_0000..0x081D_FFFFL2CPU_RESET=0xf, bits 4..7 clear)A real bug this caught
x280.handlim.ldput the firmware mailbox at0x081F_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, andCCACHE0_WAYENABLEreads 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 to0x081D_F000,LIM_SIZEto0x001E0000, andlim.ldnow asserts the image stays below0x081CF000. Thex280-fw-staticgate also asserts the P2a image links at0x0800_0000, is under 64 KiB, and that its first instruction iscsrr s0, mhartid.P2: the release is silent, and the obvious explanations are gone
Executed exactly as
tt-bh-linux'sboot.py/clock.pydo it:0xFFFF_F7FE_FFF1_0000(read back0x08000000through both the passthrough and the external-peripheral windows);cntl1 0x00800102,cntl5 0x0f0f0f0f, read back);L2CPU_RESETbit 4 set —0xf -> 0x1f, read back0x1f;0x00400102/0x01010101.The second attempt ran after
ttx slot reset(a fulltt-smi -ron 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 anmtvec, 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_0400reads status0x0000/ suppress-ifetch0x0000before release and status0x00ff/ suppress-ifetch0xffffafter — reproducibly, on a fresh card. Writes to clear those four hart bits do not stick (16-bit write0xfff0reads back0xffff; 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:
0x4000_3000_0000) withCCACHE0_WAYENABLE=0xf, not from LIM;#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.
Three more release attempts: no hart ever fetches
Record:
bench/runs/x280-l2cpu-release-attempts-20261023.jsonl(branchx280-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_0100as 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:371definesTT_POWER_FLAG_L2CPU_ENABLEas "1=Enable L2CPU, 0=Clock Gate L2CPU", and the driver ORs flags across open file descriptors and drops a closed fd's contribution. A bareTTDevice.create()+init_tt_device()never callsset_power_state— onlyLocalChip::start_deviceand topology discovery do — so a umd-level tool holds no L2CPU claim at all.boot.pynow issuesTENSTORRENT_IOCTL_SET_POWER_STATE(0xFA0F, flagsMRISC_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_RESETbit 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-linuxreaches them through tt-kmd's L2CPU debug descriptor, and itsDEBUGGING.mdtreats "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 settingCCACHE0_WAYENABLE=0xfrather 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 theirL2CPU_RESETbits set and 216 B of our image at0x0800_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 anytt-smi -rrestores them to the fresh state (L2CPU_RESET=0xf, vectors0xd0000000).#304/#305/#306 remain blocked: they assume a hart that fetches, and LIM is 1,875 KiB rather than 2 MiB.
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.Third card session: CSR sweep + partial Phase 2.
CSR readability in RNMI context (NMIE=0):
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.