…serving paths, priced
engine#698's target 4 asks for the audit "so the owner can see what is left"; it existed only in a lane
state file, which is not where an agent looks next. This page is that audit plus the status of the four
targets, and it carries the one rule the two dma-buf issues turned up (address the exporter's mapping; an
mmap of the import through amdxdna invalidates it and the next submit EFAULTs).
Every number is one this lane measured on Strix Halo and each names its source: the file route at
28.8/61.8/198.5 ms (27B hybrid) and 8.2/68.3/242.9 ms (30B-A3B) against 0.048-0.258 ms for the shared
region, the NPU runtime's A stage 50 ms and readback 9 ms inside a 1 330 ms token, the lm head 180 ms, and
the 604 MB/token GDN sweep that no memory recipe removes. Two conclusions are written as decisions: the
host-side copies are ~1.5 % of that token, so target 2's honest ceiling is a few percent and the lever is
the M=128 pad and the launch count; and row 6 is host arithmetic, not a copy.
No code changes. Refs #698 (target 4), and it is where #812's and #753's preconditions now live engine-side.
Target 4 of engine#698 asks for the audit "so the owner can see what is left". It existed only in
~/briefs/TZEROCOPY-STATE.md— a lane's state file, not where the next agent looks. This PR puts it in the tree:docs/zero-copy.md, the map, the four targets' status, and the audit table with a reason per row. Refs #698(targets 2 and 3 are still open — see the comment on the issue).
What the page carries
Target 1 (shipped, opt-in
ONEBIT_KV_SHARE=1), priced against the route it replaces:256 cells in 0.048 ms, 768 in 0.107, 2 048 in 0.25 — cells bookkeeping, not bytes. Greedy text identical to
--device hrxon every arm was the gate; no tolerance is involved.The audit (
docs/zero-copy.md, "The audit"): ten rows, each with bytes/token, ms/token and why it stays.The two conclusions are written as decisions rather than leftovers:
ceiling is a few percent. The lever that pays is the 128-row pad (the shipping container registers 0
kernel roles at M=16) and the 368 launches — NPU-runtime work, not a transport fix.
row) is the biggest single cost and no memory recipe removes it: it is arithmetic, and only moving the
recurrence into a kernel changes the number.
The one rule the dma-buf issues turned up, so it is not rediscovered: sharing works both ways
(29.3 GB/s through the shared mapping against 14.0 GB/s copy-then-read; capture in 0.044 ms, import 0.206 ms),
NPU execution on an imported range is byte-identical when the packet addresses the exporter's mapping, and
it fails
Populate ranges failed, ret -14when the address comes from mmap of the import through amdxdna,because that invalidates the mapping and the client-wide population step then refaults it through HMM.
Notes
README.mdgains the one-line index entry,docs/hybrid.mdpoints at the price page next to theroute it describes, and
docs/zero-copy.mdis new with the full Apache notice (tools/copyright.py --checkclean). No code, so no build or device gate applies; every relative link and every quoted repo path in the new
page was checked to resolve.
says so in the status table.
trees, and the page says that rather than linking into them.