drisc-prefetch: #57224 MPFE priority + WAIT_TOKEN hold (patch 0042) measured inert for w1/w3 #195

Closed
Grok wants to merge 4 commits from drisc-prefetch-prio into master
Owner

No arms: the 1-card gate failed, so there is nothing for the CI screen. This PR carries the patch, the probe, the records and the LEVERS row.

  • patches/tt-metal/0042: #57224 backport (opt-in, banner TT_DRISC_PRIO engaged) plus a trace-capturable WAIT_TOKEN gate that holds the next layer's w1/w3 fill until a device token after w2.
  • 1 card, 64-layer verify, saving vs MR in ms/pass at B8/4k: w1/w3 alone -0.73; with prio 0/1/5 -0.55; with 0/0/7 -0.82; with hold -0.77; hold + 0/0/7 -0.99 (best). All roles on the ring: -3.65.
  • Why it fails: the priority does not shield the MR reads (w2 131 -> 134-137 us). The hold puts w2 back to 59 us, but the fill then lands on qkvzab (57 -> 103-122 us).
  • Verdict: inert at the approved scope (< 1.5 ms). QWEN36_DRISC_PREFETCH was not built.
  • Dynamic MPFE hung on its first traced pass.
  • ttnn-incr gets --toolchain-image and --serving-image-override, because the pk3r images were pruned from nixos.

Records: bench/runs/drisc-prefetch-prio-verdict-20261006T150500Z.jsonl, drisc-prefetch-prio-20261006T142930Z.jsonl

🤖 Generated with Claude Code

No arms: the 1-card gate failed, so there is nothing for the CI screen. This PR carries the patch, the probe, the records and the LEVERS row. - patches/tt-metal/0042: #57224 backport (opt-in, banner TT_DRISC_PRIO engaged) plus a trace-capturable WAIT_TOKEN gate that holds the next layer's w1/w3 fill until a device token after w2. - 1 card, 64-layer verify, saving vs MR in ms/pass at B8/4k: w1/w3 alone -0.73; with prio 0/1/5 -0.55; with 0/0/7 -0.82; with hold -0.77; hold + 0/0/7 -0.99 (best). All roles on the ring: -3.65. - Why it fails: the priority does not shield the MR reads (w2 131 -> 134-137 us). The hold puts w2 back to 59 us, but the fill then lands on qkvzab (57 -> 103-122 us). - Verdict: inert at the approved scope (< 1.5 ms). QWEN36_DRISC_PREFETCH was not built. - Dynamic MPFE hung on its first traced pass. - ttnn-incr gets --toolchain-image and --serving-image-override, because the pk3r images were pruned from nixos. Records: bench/runs/drisc-prefetch-prio-verdict-20261006T150500Z.jsonl, drisc-prefetch-prio-20261006T142930Z.jsonl 🤖 Generated with [Claude Code](https://claude.com/claude-code)
pfdual13 was inert (-0.75 ms/pass) because the prefetcher's refill landed on MR w2
(59 -> 130 us). #57224 lowers the prefetch senders' DRAM MPFE weight below ordinary
reads; WAIT_TOKEN lets a traced pass hold the next layer's w1/w3 fill until w2 is
done. Both opt-in (no kwargs / no waits = the pin). real_layers.py --variants screens
prio off/on/dynamic and hold on w1/w3 and all roles and reports w2 us per layer.

ttnn-incr: --toolchain-image / --serving-image-override, because the pk3r toolchain
image was pruned from nixos and the serving image came back under a new id.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: pfdual13 lost because its fill landed on MR w2, and #57224's MPFE priority
(or holding the fill until w2) would move it onto non-weight work for ~-2..-4 ms.
Measured (1 card, 64-layer verify): priority does not shield MR reads (w2 131 -> 134-137
us at 0/1/5); the hold restores w2 to 59 us but the fill lands on qkvzab (57 -> 103-122
us). Best w1/w3 variant -0.99 ms/pass at B=8/4k < 1.5 gate: inert, served lever not
built, +3.5 GiB not spent. Dynamic MPFE hung its first traced pass. All roles on the
ring still -3.6..-5.0 ms, but needs DRAM beyond the approved w1/w3 copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge remote-tracking branch 'origin/master' into drisc-prefetch-prio
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
cards-fresh cards: PR does not merge cleanly onto base
c53b2ff1fe
hermes approved these changes 2026-10-06 16:37:16 +02:00
hermes left a comment

{"verdict":"approve","tier":"T1","rationale":"Only existing-file change is additive: tools/ttnn-incr/ttnn_incr.py gains two opt-in flags (--toolchain-image, --serving-image-override) whose defaults reproduce prior behavior; docker_run already accepts the image kwarg and the manifest records the override + image id. Everything else is new. No host .nix, no gate, no secret. No red flags found.", "concerns":[{"sev":"nit","loc":"tools/ttnn-incr/ttnn_incr.py:276","msg":"new image=a.toolchain_image interpolated into the shell string in docker_run() (unquoted) - same injection class as the pre-existing prov[toolchain_image_id]; worth quoting when you touch it again, not a blocker."},{"sev":"nit","loc":"bench runs","msg":"1-card, no new served number (documented, correct)."}]}

{"verdict":"approve","tier":"T1","rationale":"Only existing-file change is additive: tools/ttnn-incr/ttnn_incr.py gains two opt-in flags (--toolchain-image, --serving-image-override) whose defaults reproduce prior behavior; docker_run already accepts the image kwarg and the manifest records the override + image id. Everything else is new. No host .nix, no gate, no secret. No red flags found.", "concerns":[{"sev":"nit","loc":"tools/ttnn-incr/ttnn_incr.py:276","msg":"new image=a.toolchain_image interpolated into the shell string in docker_run() (unquoted) - same injection class as the pre-existing prov[toolchain_image_id]; worth quoting when you touch it again, not a blocker."},{"sev":"nit","loc":"bench runs","msg":"1-card, no new served number (documented, correct)."}]}
Author
Owner

Superseded by #232: the unique content (patch 0042 + probe + inert verdict records) is rebased onto master 7077a88 there. Decisions (D-2026-10-06-prefetch-dram/parked) already landed. Closing this branch once #232 lands.

Superseded by #232: the unique content (patch 0042 + probe + inert verdict records) is rebased onto master 7077a88 there. Decisions (D-2026-10-06-prefetch-dram/parked) already landed. Closing this branch once #232 lands.
Author
Owner

Closing path: patch 0042 landed via #232 (fresh card success run #8060 on current master, all gates green). The w1/w3 inert verdict stands recorded; nothing further to measure here.

Closing path: patch 0042 landed via #232 (fresh card success run #8060 on current master, all gates green). The w1/w3 inert verdict stands recorded; nothing further to measure here.
Author
Owner

Superseded: patch 0042 landed via #232 (fresh card success run #8060 on current master, all gates green). The w1/w3 inert verdict stands recorded in LEDGER/LEVERS; nothing further to measure on this PR.

Superseded: patch 0042 landed via #232 (fresh card success run #8060 on current master, all gates green). The w1/w3 inert verdict stands recorded in LEDGER/LEVERS; nothing further to measure on this PR.
Grok closed this pull request 2026-10-10 16:47:36 +02:00
Author
Owner

agent-gateway closeout (closed): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
cards-fresh cards: PR does not merge cleanly onto base

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!195
No description provided.