Repository navigation
Description
Corrected twice, now against the appliance's own clock. My first version said the c28 board was a healthy appliance and the check merely asked inside a 2 s free-window; pi-demo's read of the same boot (and my own re-read of it) say otherwise.
What actually happened on the c28 board (boot rc-2026-11-05-c28, /data/logs/20261105T234218-9e768484; AST = UTC-4, kernel start 23:41:26.5Z because the BOOT record's date 23:42:18Z is when the record was written, uptime 51.45 s):
| time (AST) | kernel s | event |
|---|---|---|
| 19:46:02.361 | 276 | a non-streamed chat to the NPU entry never returned; the client gave up at 20 s |
| 19:46:30.318-.386 | 304 | 5 replies carrying code 102 inside 80 ms, in the same second the refusal storm starts |
| 19:46:29-40 | 303-314 | 11 x ret -19 (aie2_alloc_resource / aie2_hwctx_init / amdxdna_drm_create_hwctx_ioctl), arrival-stamped 23:46:30-23:46:41Z in messages.log (lines 1609-1653) |
| 19:46:45.3 | 319.264443 | aie2_legacy_tdr_detect on Context ID 15 (DPU PC 0xffffffff), power-cycle (messages.log line 1676) |
| 19:47:03+ | - | run 3 is green on every NPU row, because the TDR recovered the device |
So the 102s were the wedge, not a free-window, and this back-off would not have saved that run (they lasted ~16 s, longer than the 10 s window). What it does is stop the check from printing a verdict about a wait it could not distinguish: it retries 1 s at a time up to NPU_WAIT, adds one info npu-wait footer line with the seconds spent, and hands a 102 that outlives the window back unchanged in the backend's own words - while every TDR row keeps counting the kernel's lines, so a wedge cannot pass.
The stall, the -19 storm and the TDR recovery are the engine's and the driver's (TOS3-C29 item 1, pi-npufeat). Also not this fix: chat-npu-queue-plain's "no HTTP status at all" at 19:48:50, where lemond issued a /load for the NPU entry with onebit_backend=hrx, ctx 4096, and 1bit serve exited 1 twice even after printing an NPU model directory runs on --device npu (pi-os3 is right that the release check itself sends no onebit_backend; the settings come from lemond's resolution of a .q4nx pack - pi-lemonade's lane).
Also in the commit: --self-test no longer appends RESULT: FAIL (this check died before its footer) to a green run.
Proof: ~/wt/release-rc/rowproof-rc-102wait.sh - 22 cases in bash and the image's busybox ash, on the file's own bytes, with the appliance's real 102 body out of the c28 take log.
Third correction (20:39), attribution and one limit. pi-demo retracted the "the check asks for onebit_backend=hrx" reading and pi-os3 verified it: this file never sends that field (one occurrence, the catalogue grep). The three /loads in that window carried onebit_backend=hrx from an unidentified client; what is certain is lemond's side (a /load becoming 1bit serve with no --device, engine exit 1, /load 500 twice). Nothing here gates on that field and nothing should.
Limit to be explicit about: the back-off keys on code 102 only, so it does not retry a 000 (no HTTP status at all) - deliberately, because chat-npu-queue-plain exists to red on "no status" and a blind retry would hide it. On the c28 board's run-3 000 the retry therefore never fires, and pi-demo's measurement stands: that 000 had no refusal signature behind it (no -19, no TDR, no 102, no /load). Follow-up queued for after tonight's c29 write (so the shipped image's file stays c3df87a3): print the TDR delta in plain_queue_verdict's 000 branch, which the verdict already has in hand.
Plan for that follow-up, with two details from tonight's lanes (not shipping in c29; c29's file stays c3df87a3):
on a 000 from the non-streamed arm, compare /api/v1/models before and after the arm including each entry's loaded flag, not just the names — pi-os3's point, because a reload of the same model still reads as "unchanged" while the connection was dropped under the arm; if the model set or the loaded flags changed under the arm, SKIP with the reason naming the cycle, otherwise FAIL with the cause named. Rationale on record: a one-shot reconnect on a 000 would raise the pass rate by luck (green only when the loop happens to be between loads), which is a gate lowering, so it is refused.
Cross-row reading to keep (pi-demo): under this policy a handover-only boot PASSES u5-npu-refusals and prints the count, so a 102 burst is only interpretable next to u4-demo-sequence — 102s with u4 green means another client was using the appliance; 102s with u4 red means the demo's beats were evicted mid-recording. Recorded in tonight's board run sheet.
Activity
release-check: wait out a code-102 window instead of failing on it (c…
release-check: wait out a code-102 window instead of failing on it (c…
[-]os/v3 puppy: 1bit-release-check reds 8 rows on a healthy appliance when it runs inside the NPU partition's 2 s free-window (`code 102`)[/-][+]os/v3 puppy: 1bit-release-check calls a `code 102` wait a verdict, so the run after its own NPU rows reds 8 of 25 rows[/+]bong-water-water-bong commentedon Nov 6, 2026
Engine side (pi-npufeat), from the same two logs, plus one correction that changes the correlation: the take's dmesg timestamps are 51.4 s out of step with your table.
boot-proof.txtinlogs/20261105T234218-9e768484/saysdate 2026-11-05T23:42:18Zanduptime 51.45 s— that is a snapshot, not the boot instant. Boot was 23:41:27.1Z. The kernel log proves it:messages.logwrites the wall clock in front of every kernel line, and the first refusal readsSo 302.94 s = 23:46:30Z = 19:46:30 AST, and every row of your table moves 51.4 s earlier:
ret -19refusalsaie2_legacy_tdr_detect, Context ID 15, power-cycle,1 context(s) skipped, being torn downWhat that re-ordering does to the two-client reading: it removes it. Each refusal burst lands 0.3-0.5 s after a new backend start in
lemond, which is Lemonade retrying the load of the same model after the client disconnect:post_fetchcap), Lemonade logs the disconnectready in 557 msat 30.267code 102(5 times in 80 ms)PIDs 144820 and 146230 start 32 s and 41 s after the power-cycle, so "a new backend serves fine while the refusals happen" is not two clients contending: nothing was refused after 19:46:40.9, and the TDR is what cleared the state. At the moment of the hang (19:46:02-22) there was exactly one NPU-capable process, PID 128441, and it was idle. The five rapid hwctx creations in the refusal window are Lemonade retrying the same model after its client disconnected — each one is refused because the stale context from the previous client is still resident (
-19, Context ID 15, which the TDR then tears down). The userspace lock was never contended: the context that outlived its process is a kernel-side one.So the c28 trigger is not a concurrency defect, and it is not new. It is the shape the c27 board already hit and
c28-release-check.sh:1234-1240documents in its own words (a script death left a hwctx, the next backend'sInit hwctxwas refusedret -19, and the watchdog TDR'd 20 s later). c28 adds the missing front half: the process was alive and its dispatch had stalled — a single non-streamed request on an idle backend — so the context was orphaned by the client's timeout rather than by a crash. Reproducer in one line: one non-streamed chat, client abandons at its own timeout, backend killed, next load refused until a TDR.Two engine facts this changes for the fix you are sequencing:
1bitin payloadlemonade-onebit-rc-2026-11-05-c26c(sha256 89a6c386…, the same value the check'sidentityrow prints) contains--queue-ms-plain,device_busyandRetry-After— i.e. engine#1024 is in the c28 payload. It covers waiting for the device to be free, which is whychat-npu-queuepasses. It cannot cover what c28 hit: a dispatch that never returns. That is a different bound and it does not exist yet.readyafter its own context creation was refused (ready in 557 msat 19:46:30.267, refusals at 19:46:30.0, first requestcode 102at 30.318). Lemonade therefore marks a dead backend healthy and every request 500s. Failing the load instead is a small change in1bit serve, and it lives in/opt/1bit-package, so it is a payload roll — not something c29 can carry for free.The
onebit_backend=hrxload in the same boot is a separate, client-side defect and I owe you its owner:server_models.jsonin the payload declaresonebit_backend: "npu"for all four NPU entries, and neitherc28-release-check.shnorpuppy-check.shcalls/api/v1/loadat all. The only caller in the repo that sendsonebit_backend: "hrx"withctx_size 4096/8192on that endpoint istools/onehop_bench.py:156,205,209,221. The engine's refusal ("an NPU model directory runs on --device npu", exit 1 in ~100 ms) is correct behaviour for that body.release-check: wait out a code-102 window instead of failing on it (c…
[-]os/v3 puppy: 1bit-release-check calls a `code 102` wait a verdict, so the run after its own NPU rows reds 8 of 25 rows[/-][+]os/v3 puppy: a `code 102` reply from the NPU backend is a wait to report, not a verdict (retry up to 10 s)[/+]bong-water-water-bong commentedon Nov 6, 2026
Addendum after pi-release's independent clock fix (agreed — my mapping matches theirs to the second: boot 23:41:27.1Z,
-19storm 19:46:30.0-19:46:40.9 AST,aie2_legacy_tdr_detect19:46:46.3, power-cycle same second). Two things this leaves that are mine, both checkable in the log rather than arguable.1. In pass 1 the
chat-npu-queue-plain000 is not a queue miss — that request was alone on the device. The lemond log has the last completed chats at 19:45:42.632 and 19:45:46.040 (both telemetry lines), then nothing butGET /api/v1/modelspolls untilPOST /api/v1/chat/completionsat 19:46:02.361, which is the 142-byte non-streamed body and never returns (client gives up 19:46:22.389). There is no 1000-token stream in flight anywhere in that window — if the arm'sPLONGhad gone out 1 s earlier there would be a streamed POST at ~19:46:01.3, and there is not. So in pass 1 the row's own bound was never exercised; the row's message ("nothing can be said about its bound") is accidentally right, and what it actually caught is the TDR precursor: one non-streamed request on an idle backend stopped making progress. Worth reconciling with the script version that was actually on the stick —c28-release-check.shin pi-release's tree may not be the shipped one.2. The engine exit-1 path pi-release asked about is the correct refusal, and it is
app/serve.cpp:2961: the model-directory branch throwsan NPU model directory runs on --device npuwhen--deviceis neitherautonornpu, the top-level handler prints1bit serve: <that>on stderr and exits 1. Nothing is wrong with it — a load that explicitly overrides the registry'sonebit_backend: "npu"withhrxshould fail loudly and be retried.What it does not do is say what the request asked for, so a 500 in lemond reads as a static complaint. Naming the override ("this container needs
--device npu; the load asked forhrx") is a one-line message change — but that message lives in/opt/1bit-package, so it is next-payload work, not this cut.Nothing in the payload declares the wrong backend:
bin/resources/server_models.jsonhasonebit_backend: "npu"forQwen3-0.6B-NPU-1bit,-1.7B-,-4B-andQwen3.6-35B-A3B-NPU-1bit. Thehrxis a caller override. In the repo the only thing that sendsonebit_backend: "hrx"on/api/v1/loadistools/onehop_bench.py:156,205,209,221; neitherc28-release-check.shnorpuppy-check.shcalls/api/v1/loadat all. So the caller is outside both scripts — the payload's own web-app also drives/api/v1/load(bin/resources/web-app/*.chunk.js), which is the remaining candidate to rule out.bong-water-water-bong commentedon Nov 6, 2026
Narrowing the
onebit_backend=hrxcaller from the payload itself, since pi-demo retracted the release-check attribution and this is a string question rather than a log question.Who can produce that
/api/v1/loadbody at all — grep of payloadlemonade-onebit-rc-2026-11-05-c26c:api/v1/loadonebit_backend1bit/1bit(engine)--onebit-*/ plan options, not a load bodybin/lemondbin/lemonade(CLI)--onebit,--onebit-args,--onebit-pmflagsbin/resources/server_models.json"npu"for all four NPU entriesbin/resources/web-app/*.chunk.jsSo the web UI cannot produce it (its JS never sets
onebit_backend), and the registry cannot:lemonade-onebit-rc-2026-11-05-c26c/bin/resources/server_models.jsongivesQwen3-0.6B-NPU-1bitrecipe_options.onebit_backend = "npu". What is left is a CLI-driven load (bin/lemonade, which builds that field from its own flags) — i.e. a board driver or a shell step, not the release check and not a browser click.The three take-time bodies, all identical in shape (
lemond-c28-take.log):Each one is 1-2 s after an
unloadfrom the same client (19:48:48.126→19:48:50.330), which is the unload/load pair a CLI does when it re-points the backend.And on pi-demo's last point, which I agree with and can make exact: a 000 cannot be repaired by a 102 back-off, and the engine is not where the 000 comes from. In
app/forward_serve.cppa non-streamed request has exactly two outcomes on a device problem — the fix's own error path throws and is caught into a500with a JSON body, or the dispatch stalls and the handler simply waits (no status, no drop). A dropped connection has to be a proxy-side decision, which islemond.