Skip to content

os/v3/puppy: the image ships amdxdna with the default TDR timeout, so a long NPU chat resets the device mid-answer #1019

Closed

Description

@bong-water-water-bong

c22 board, 4 Nov 2026, deterministic (TOS3-C23-NOTES / TC22-NPU-TDR):

fresh backend, temperature 0, /no_think, long-essay prompt, via Lemonade :13305
  max_tokens 400 -> 429 total positions: 200, 0 TDR
  max_tokens 480 -> 509 total positions: 200, 0 TDR
  max_tokens 600 -> crosses 512: `npu runtime: invalid call (code 614): state 8, run 0 of 28`
                    + `aie2_tdr_recover_all: Array stopped dispatching, power-cycling NPU`

Both board chat failures that day (12:56, 13:13 AST) failed ~7 s into a thinking-on reply, i.e. at the same
position count.

Root cause (pi-hrx-fabric, 4 Nov 14:0x, measured with the c22 stick's own binary, kernels, model, firmware and
module):
a watchdog-interval difference, not a payload or firmware fault. The appliance shipped no modprobe
override at all, so tdr_timeout_ms was the module default 2000 ms. The detector needs two intervals with no
aie2_tdr_signal (~4 s at 2000 ms, ~30 s at 15000 ms), and the board's failing chat took ~4 s longer for the same
629 positions than the identical stack does on the box (12.4 s vs 8.1 s). On the box at 15000 ms that stack answers
429 / 509 / 629 / 1029 positions with 0 TDRs. So the stick simply lacked what strixhalo has.

Two things are missing from the image, and neither is visible in the source tree:

  1. No kmod config for amdxdna. /etc/modprobe.d/ in the packed c22 puppy SFS carries 1bit-quiet.conf,
    alsa-base.conf, apm.conf, ath9k.conf, puppy.conf, radeon-dpm.conf — nothing for the NPU, so the module
    loads with the driver default for tdr_timeout_ms (the box's own /sys/module/amdxdna/parameters/tdr_timeout_ms
    reads 15000 because strixhalo has /etc/modprobe.d/amdxdna-tdr.conf; the stick does not). The driver tore down a
    device that was about to answer.
  2. No row that crosses the boundary. 1bit-release-check's NPU rows are one short question (chat-npu), a
    512-token turn plus a short follow-up (chat-npu-followup) and a reload+streaming turn (chat-npu-stream); none
    of them asks for the 400/600/1000 ladder the board failed at, so a wedged image could carry a green release check.

Fix (see the PR): ship options amdxdna tdr_timeout_ms=15000, assert it in the packed image and refuse a
shadowing modprobe.d copy (kmod merges them and a later options line wins), load the module in vm-check and read
the value the kernel actually took (U5 npu tdr), and add a chat-npu-ladder row to os/mini/release-check.sh that
asks 400/600/1000 with a fresh backend and fails on any new TDR line.

Stated as a limit rather than implied: #1017 shows the same ladder answering 661 positions clean on this box's
fleet boot with the same binary, kernels, module and firmware, so "512 is a design limit of the dx route" is not
supported — this ships the mitigation the orchestrator ordered and the row that will say on the board whether it
holds, not a proven root cause.

Activity

  1. added 2 commits that reference this issue on Nov 4, 2026
    9b6eeed
    3deb020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions