Commit Graph
60 Commits
Author SHA1 Message Date
Anees Iqbal f754939907 🔇 Move the library's per-event info lines to debug
No line at info may fire per present, frame, ring message or other
per-event path. Measured on development: an arm64 macOS 27.0.1 boot
logged 1326 lines, 867 of them the display's change of IOSurface at
WindowServer's presents and 396 library lookups; an x86 macOS 26.7.2 boot
on the 780M logged 3248, 1296 and 349.

- The display's change between IOSurfaces, each library lookup, each
  shared event named or made from another process's, and each queue made
  unshared are debug lines, the first, second and last under targets of
  their own that the lane gate's and check-boot's runs name at debug:
  reims_vgpu::graphics::shown (msi-drag.py times composites by it),
  ::library (msi-boot.sh's launch gaps) and ::queues (its count). The
  display's change between the scanout and a surface stays at info.
- reims-vgpu-graphics' lines of a reset and a context's close, which
  reims-vgpu's own repeat with what they let go of, are debug; its line of
  completion records handed over, once a second, is info the first time.
- The surface order's and the IOSurface views' summaries come at most
  once a minute, not at every 4096th command buffer or 256th
  SURFACE_PAGES; check-boot.sh reads the caches' count up to a minute old.
- A long wait's end, a CPU wait's end or its cut at a reset, and a
  newLibraryWithData: of bytes Metal refuses too are debug; the CPU wait's
  lines lose the runs of spaces their strings held.
- A fold at the views' budget, and the video arms' first picture of each
  way, frame of each outcome and reason of each fallback, are info once
  per process (their kind), not once per session.
2026-11-11 03:44:57 -08:00
Anees Iqbal 7e264b6dbd 🔥 Hold GPUs through potluck alone and remove gpu-locks.sh
Every build, test, boot and copy on the shared machines has run as a
potluck job since 11-05, and the job's lease is the lock: --gpu holds a
GPU, --exclusive gives a timing run the whole machine. gpu-locks.sh and
metal2vulkan's maclock took lock files potluck never sees, so a run under
them could still share a GPU with a potluck job.

AGENTS.md, the boot section of docs/qemu.md, the video checks, the cost
benches' docs and the oracle README now name potluck's lease. The
conformance scripts take no lock of their own, and lane-gate runs its
tests under its job's lease. A build holds no GPU: it builds in a job
without --gpu, and the tests run in the same workspace holding one.
2026-11-10 23:17:59 -08:00
Anees Iqbal 76a7ad4d7b ⬆️ Take Graft 0.1.0, its first public release
Graft 0.1.0 (commit bb884fe, release zip sha256 2bea380e) is Graft's first
public release: bundle id ai.aneesiqbal.graft, serving only
ai.aneesiqbal.ReimsGraphics and ai.aneesiqbal.RgfxGate, with a C++17 SDK tool,
graft-kext, that consumer.mk builds from source with Xcode's clang++ in place
of the Python SDK. Its zip, copied by its own tools/vendor.py with the record
of all 156 files, puts Graft's source tree, the two kexts and the SDK in
guest/graft; the kexts sit at guest/graft/Graft.kext and Graft-arm64e.kext,
with no built/ any more, so the set's staging, its Graft check and the lane
gate read them there. The only binaries are the two kexts. AGENTS.md now says
guest/graft is Graft's release as vendor.py copies it.

RgfxGate depends on ai.aneesiqbal.graft 0.1.0, Graft's compatible version.
Graft hands an arm64e route's original back as a void * holds a function
pointer, discriminator 0, so RgfxGate keeps each AMFI original in a void * and
converts it to its mpo type at the call, which re-signs it; a typed variable
written through a void ** would authenticate with the type's discriminator and
fault. The static_asserts on the wrappers' discriminators stay. Graft's kernel
side refuses by name where it could have panicked, among them an arm64e AMFI
slot not signed with its operation's discriminator and a donor table that
differs from the live vtable.

set-check checks the prelinked collection with graft-kext check-prelinked,
which takes prelink.py's arguments and exit codes. Graft reports a bound
consumer as "bound: imports and vtables committed;" and either waiting for the
device or "activation gate open on the device nub"; the lane gate's graft-bind
passes only on the open gate, since only then does IOKit start ReimsGraphics.
Graft's own id moves in stage-config.py and docs/qemu.md, check-boot marks a
panic report naming ai.aneesiqbal as ours, and msi-appload posts its
measurement notification under the new prefix.

The prebuilt sets are rebuilt from these sources in their own commit.
2026-11-10 00:35:01 -08:00
Anees Iqbal a656ba31d1 ⬆️ Take Graft 1.0.0 from its release tag
Graft 1.0.0 is its first release. It reorganizes the repository: the built
kext moves from dist/ to built/, and the header, start glue and build rules
move under sdk/. It also binds an absent weak import to the pointer
gOSKextUnresolved holds, and verifies an imports-only provider through an
anchor class, which kextvers needs for macOS 11 and 12.

Point the guest build, the OpenCore link check, the lane gate and the
design doc at the new paths, and rebuild guest/prebuilt from them.
2026-11-08 05:15:44 -08:00
Anees Iqbal f96803deac 🎨 Gate and patch images with the Graft set
lane-gate built the old loader and its shims for each candidate ReimsGraphics
from a separate builder, and its guest check read the loader's log; neither
exists with the set on Graft. The gate now ships the set as guest/'s build
stages it (Graft, ReimsGraphics, RgfxGate), its image carries exactly those
three, and graft-bind reads GraftClient.com.steelbrain.ReimsGraphics from the
registry root. msi-image.sh refuses a base image that still lists another kext,
such as Lilu or the old loader, which `reims-ctl update-opencore` makes again.
The Mac's kext check runs guest/'s set-check in place of the shim link check.

opencore-add-kexts.sh gives added kexts no kernel range, as the set has none,
and takes an image with no Kernel > Add entries, which reims-util now makes
for a VM on another device.
2026-11-08 02:58:39 -08:00
Anees Iqbal fd591f5039 🎨 Fold reims-vgpu-core into reims-vgpu-vulkan as its core module
The Vulkan crate is the library's only platform since the Metal platform
went, and every crate that links core links the Vulkan crate too, so core
needs no crate of its own. Its files move unchanged under
reims_vgpu_vulkan::core (crate::core in the Vulkan crate), the module the
video crate's layout already uses; its #[macro_export] macros stay at the
crate's root, so reims_vgpu_core::metal_check! is reims_vgpu_vulkan's now.
core's lint set is the module's inner attributes, as it was the crate's.
Nothing the guest or the host observes changes, and reims_vgpu.h is the
same. Core's log lines name reims_vgpu_vulkan::core:: as their target in
place of reims_vgpu_core::, so reims-ctl's example filter says so.

The testkit feature is the Vulkan crate's, reims-vgpu-vulkan/testkit, and
the crate's integration tests turn it on through a dev-dependency on the
crate itself, as core's dependents turned core's on. core's tests keep
their paths below core:: in the Vulkan crate's unit tests, and cargo xtask
check's x86_64-apple-darwin leg runs those alone: -p reims-vgpu-vulkan
--lib -E 'test(/^core::/)'. The tests that run themselves again in a child
name themselves below core:: too (a child given a name that matches no
test runs nothing and passes), and the memory map's tests take the lines
of the targets below reims_vgpu_vulkan::core::memory.

The macOS test that declares _exit now declares it safe, as the testkit
does: rustc's clashing_extern_declarations compares the declarations
within one crate.
2026-11-08 01:55:07 -08:00
Anees Iqbal 6fb33ecd27 🎨 Rename the reims-graphics crate to reims-vgpu-graphics
The crate that holds the reims-graphics device's wire and transport now
carries the library's prefix, as reims-vgpu-video does: its directory is
crates/reims-vgpu-graphics, its package reims-vgpu-graphics, and its Rust
path and log target reims_vgpu_graphics. The guest's, the option ROM's and
Ambrosia's Makefiles include the wire header from the new directory, and the
prebuilt records name it there.

Nothing changes for the guest or the host. The device keeps its name
(reims-graphics, QEMU's reims-graphics-pci, PCI 1234:5247), and the wire
header keeps its file name and RGFX_ symbols. The C API header is unchanged,
and the prebuilt kexts and option ROM are byte-identical; only the records'
paths and source hashes move. A log filter names the crate's lines by its
new target (REIMS_VGPU_LOG=info,reims_vgpu_graphics=trace), a diagnostic.
2026-11-08 01:37:50 -08:00
Anees Iqbal d6babcba0f 🆕 Let a round or a gate's correctness boot share the lane host
A boot that times nothing need not hold the whole host. probe-batch.sh's
--shared and lane-gate.sh's --shared-boot dispatch the job with the 5080
alone (no --exclusive), so other jobs' builds can run beside it once its
run.sh's 180 s wait for them ends. The bench boot keeps the whole host.
2026-11-05 22:01:23 -08:00
Anees Iqbal 9e839ce3da 🔊 Say where a gate job's results came back from
The gate's run log now says, for each result it brings back, whether it came
from the job's --keep or, the job having brought none, from the workspace by
potluck cp. Car 13's run is the first to use --keep, and its log shows which.
2026-11-05 22:01:23 -08:00
Anees Iqbal 71748501ec 🎨 Bring jobs' results back with potluck's --keep
potluck 0.1.1's --keep copies a job's files back when it ends, in place of
the potluck cp from its held workspace afterwards. The gate's build job keeps
lg-out/steps and lg-out/msi-build.txt, each boot keeps lg-out/MODE, and
pl-job.sh keeps results/. Where a job brought back none (one that ended
without its keep), each falls back to potluck cp from the workspace, which
the gate holds for its boots anyway.
2026-11-05 22:01:23 -08:00
Anees Iqbal 3a62c707ff 🆕 Let a boot-only pass add post probes to a built run
Car 12's build had to start before its post probes were ready. A --boot-only
pass given --post-probes now adds them to the run's ship commit as a child
commit, and the boot moves the kept workspace to it with potluck's --advance,
keeping the build's output.
2026-11-05 22:01:22 -08:00
Anees Iqbal 45617fed85 🆕 Carry the metal2vulkan pin to the lane host for its build
Pin 13's metal2vulkan commit is not on the public repository yet, so cargo on
the lane host could not fetch it. The gate now carries the pin from the local
checkout to potluck's mirror there, and the build fetches it into cargo's git
databases before it builds. The mirror is only read.
2026-11-05 22:01:22 -08:00
Anees Iqbal 037fc84fed 🆕 Run a gate's own probes last in its correctness boot
Car 12's capacity checks need the app load's desktop and must not cost a
boot of their own. --post-probes DIR ships DIR with the build and runs its
probes after everything the correctness boot measures and checks, as a probe
round runs them, growing the hold by their budgets. The report lists each as
INFO; their fatal lines count in the boot's.
2026-11-05 22:01:21 -08:00
Anees Iqbal 39b9238223 🎨 Give the lane gate's potluck jobs limits near their own time
potluck reserves an exclusive job's start at the latest limit among the jobs
running on its machine, and lets jobs that end by their own limit start ahead
of it: a 2 h build limit held msi's reservation hours out. The host build gets
30 minutes (it took 533 s cold), the correctness boot 40, the bench 30, and a
round its hold and 12 minutes (40 more with --after).
2026-11-05 22:01:20 -08:00
Anees Iqbal bde86bf277 🆕 Build a gate run now and boot it later, back to back with another
ring0-audit's clean pair needs both tips built before either boots, then the two
boots back to back with nothing between them. --keep-workspace keeps a run's
potluck workspace, worktree and branch when it ends (a run built with --skip
boot), --boot-only runs a resumed run's correctness boot alone in it, taking no
lock as a bench leg does, so two runs' boots can be queued seconds apart, and
--priority sets the jobs' priority.
2026-11-05 22:01:20 -08:00
Anees Iqbal 88a486432c 🆕 Run the lane gate's host build and boots as potluck jobs
The owner retired direct ssh tests and deployment and the lane host's legacy
locks (turnstile, gpu-urgent, build-quiet, host-quiet, the GPU flocks): potluck's
lease is the lock now. The gate makes a throwaway commit per run, whose parent is
the candidate and whose lg/ holds its host scripts and what the Mac built (the
guest payload, the loader's kexts, RgfxGate, the bundle, a git bundle of the
vendor/qemu commits the host lacks). From it the host build, the image and
publishing are one job on msi with no GPU (msi-job.sh build), and each boot a
job in that workspace holding the 5080 and the whole host (--exclusive).

msi-launch.sh replaces rgk-boot2.sh's locks with potluck's: before QEMU starts
it waits for running builds (HOST_QUIET or HOST_NOT_QUIET, as before) and for
the CPU package to cool below 80 C, so the measured boots keep their quiet host
and cool-down. The loader builds on the Mac alone (mac-loader.sh). The Mac's
checks, which took the Mac's GPU lock, do not run as jobs yet: the gate needs
--skip mac.
2026-11-05 22:01:20 -08:00
Anees Iqbal 1ac1967976 🆕 Record the host CPU's heat in each lane boot and mark throttled rows
msi's CPU package throttles for seconds at a time under builds (2.7 h in 2 days,
103 C), which moves CPU-bound numbers. Each boot now samples the package's
temperature and the throttle counters once a second (thermal.txt), records
them with uptime beside the free memory at QEMU's start and what they grew by
at the end (host.txt), and the report marks a timing row whose phase, drag or
bench case saw the package throttle as throttled, not compared, and leaves it
out of a baseline's median.
2026-11-05 21:59:30 -08:00
Anees Iqbal 2ef20e6c4c 🐛 Bench at host log info, with the work counts on request
The bench boot logged the runtime's work counts each second since 85fac10ad,
and their logger costs what it rates: car 9's draws.10k ran at 0.80M draws a
second with it and 2.54M without it, on the same build. The bench's host log
is info again; --bench-host-log info,reims_vgpu::work=debug asks for the
counts, as a control.
2026-11-05 21:59:30 -08:00
Anees Iqbal b393bb4967 🆕 Set the gate's bench boot's host log filter
The bench's host log carries the runtime's work counts, whose logger thread
reads them each second; car 8's library had no such thread, so a car 8
control cannot tell whether it costs car 9's draws.10k. --bench-host-log info
benches a tip without it. A run with another filter is a control and is never
recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal 0c9cc5cc05 🆕 Run a command at the gate's bench boot's QEMU start
draws-regress samples QEMU's graphics threads during the bench's draws.10k:
--qemu-hook passes probe-batch.sh's hook ({PID}, {DIR}) to the bench boot,
whose guest.log has the bench's '# start CASE' lines as they come. A run
with a hook is a control and is never recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal f40e026efc 🐛 Judge each landed car's bench against the car before it
A car's landing gate runs without the Mac's checks, so it is incomplete, and
--record moved baselines/LAST only for a run that passed: LAST stayed at
15c73f2b5b48 through cars 7 to 9, and car 9's bench was judged against a
baseline from before car 7, which hid its draws.10k fall against car 8.
--landed records the run and, once its bench leg has run, makes it LAST
whatever the verdict; its own baseline is the car that landed before it.
2026-11-05 21:59:30 -08:00
Anees Iqbal 284e0dfd51 🐛 Gate the bench's numbers on bench.m's hash alone
The bench's metrics were tied to one hash of the sweep's sources and bench.m
together, though bench.m builds alone. Car 9 changed only sweep_ca.m, so its
draws.10k fall of 61.7% against car 8 went ungated as 'its tool changed since
the baseline'. tools.txt now records bench.m's own hash, and a run recorded
before it falls back to the combined one.
2026-11-05 21:59:29 -08:00
Anees Iqbal 820aad948c 🆕 Let a gate run end its guest run with a command of its own
boot-flicker's proof needs the guest's log of the textures the fixed bundle
refuses, read at the end of the boot. --final-cmd CMD runs CMD in the guest at
the end of the correctness boot's final phase, its output kept in guest.log's
"GATE final-cmd:" lines.
2026-11-05 21:59:29 -08:00
Anees Iqbal 4a734e2f3f 🆕 Rate the host's work counts over the bench's drags and WebGL
The runtime's shadow path (shadowed textures, copies and texels each way,
merges planned, fetched and kept, keeps) is to be measured per WindowServer
command buffer and per display update. The bench's host log now enables
reims_vgpu::work at debug, whose lines (one a second: the runtime's counts
as deltas, and each guest context's command buffers and render encoders)
host-events.log keeps; each drag line carries its window's ends; and
report.py sums the lines whose second lies in the plain drag, the glass drag
and the WebGL phase, WindowServer being context 1.
2026-11-05 21:59:28 -08:00
Anees Iqbal 9e90c852e6 🆕 Publish a fix's tip for probes without making it the lane's
A fix's proof boots an image built from its sha (RgfxGate trusts only its
embedded bundle), but publishing it as the lane's tip would move every probe
round onto it. --probe-tip publishes its image and host build as --publish
does, always, and leaves published-last as it was; probe-batch.sh --tip runs
its round.
2026-11-05 21:59:28 -08:00
Anees Iqbal 8367b3a346 🐛 Fail the cargo step when nextest wrote no results
Car 8's gate stopped its cargo run while it waited for the Mac's GPU, and the
report still showed step.cargo and cargo.tests as PASS, cargo.tests with an
empty line, because errexit does not reach inside a step's function. The step
now fails when nextest wrote no junit.xml, and the item fails when the run
left no summary.
2026-11-05 21:59:28 -08:00
Anees Iqbal 79bb65af35 🆕 Keep the live resize's size samples
Car 7's resize reached 1707 x 1023 points, the window grown to the screen's
right and bottom edges, which the pointer's path never reaches. The guest's
samples now go to drag-resize-track.txt, which the gate fetches, so the next
such run can say when the size jumped.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1eb1dd450a 🐛 Read the kext's lines from the kernel's ring, not the log store
Car 7's capture kept an empty kext log, and the texture-create stall check
counted from the same place. The kext writes with IOLog, which reaches only
the kernel's 128 KiB ring and no log stream, and a busy desktop rolls that
ring over in a minute or two. From the desktop on, the correctness boot and
a captured boot now take the ring's Rgfx, RGFX and ReimsGraphics lines
every 5 s (kring.raw, then once each in kernel-rgfx.log). A bench boot
takes them only at the desktop and at its end. The guest's boot time and
clock against the host's put each line's uptime on the host's clock. The
stall check and the capture's scanout-mode check read those lines, and the
stall item says from which uptime they reach. Tested on car 7's running
guest: 26 lines from 272 s of uptime, its earlier ones gone.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1b360de0d9 🆕 Note the kwin reaper beside each boot's display state
kwin held closed windows' buffers on msi until its scale effect was
reloaded, which a user service (kwin-reaper) now does every 5 s while no
output is on. Read without it, a boot's VRAM numbers mislead. host.display
now says whether the reaper is active at the boot's start and end, and
kwin-reaper.txt keeps its log lines from the boot's span. The item gives
their count and the GPU memory after the last reload.
2026-11-05 21:59:27 -08:00
Anees Iqbal ecb1729889 🆕 Run rgk-ctx-slots' app load in the gate's correctness boot
The context-cap lift and the work after it are meant to hold a desktop of
about 75 processes, which only a busy desktop shows. After its
measurements, the correctness boot now runs rgk-ctx-slots' app load
(HOG=0) on its own guest: every app in the guest, then 7 WebGL and WebGPU
pages in Safari from the guest's localhost, with the guest's default
route deleted first. msi-appload.sh follows appload.sh's steps on a copy
of its tools taken at each ship, and writes analyze-load.py's summary
beside appload.txt. The report's bar: no region or context refusal from
the kext, no crash report in the apps phase, no fatal line. It also
records WindowServer's blocks and MiB against its 160 MiB reserve. The
load runs where the hold has about 6 minutes left. --no-appload leaves it
out, and --appload-info WHY reports a miss of the bar as INFO, for a
baseline taken before the bar holds.
2026-11-05 21:59:27 -08:00
Anees Iqbal b51db36f66 🆕 Count the guest's texture-create stalls and note the host's display
A stall where a texture's previous block is still cached and its release
unanswered ("its previous block is cached still, its release unanswered:
it is not cached") costs about 2 s, and is a likely cause of the boot's
flicker. Each gate and bench boot reads the guest's log of them
(senderImagePath CONTAINS "ReimsGraphics"), times each hit against the
desktop's coming up on the host's clock (kext-stalls.txt, also in the
boot capture), and guest.block-cache-stalls fails on a hit in the 60 s
after the desktop came up. The capture's kext log takes the same
predicate.

The host's display state may move the drags' numbers, so each boot also
records the lid and kwin's outputs (kscreen-doctor) at its start and end,
in host.display.
2026-11-05 21:59:27 -08:00
Anees Iqbal 4aaf9faf40 🆕 Capture what a gate boot's display showed as it booted
A boot's progress bar flickered between older and newer frames past the
kext's handoff, and a Dock icon showed another app's icon until the boot
settled. QEMU's screendump of reims-graphics-pci is empty, so with
--capture-boot the correctness boot keeps, on the lane host:
- the guest's scanout before WindowServer's IOSurfaces take the display,
  its middle third of rows read from QEMU's memory every 100 ms (the
  allocations RAM block's host address from HMP's info ramblock, then
  /proc/PID/mem as root), each frame that differs zstd-compressed, with
  host times;
- the guest's own screenshots (Command-Shift-3 over QMP) once a second
  from the host's first present until 60 s after the desktop is up, with
  the guest's file times and its clock's offset;
- the kext's log lines of the boot, whose scanout line checks the mode the
  reader assumed.
The boot also fetches xid.txt, which report.py's host.no-xid reads.
2026-11-05 21:59:27 -08:00
Anees Iqbal a1299c3348 🆕 Fail a boot on an Xid from its own QEMU, and log probes' presents
The NVIDIA driver logs its GPU errors as the kernel's NVRM Xid lines: an
Xid 109 (CTX SWITCH TIMEOUT) from a QEMU on the lane host showed only in
dmesg. msi-xid.sh reads them over a span with each one's number, pid and
process. msi-boot.sh records the boot's in xid.txt, and report.py's
host.no-xid fails a boot on one from its own QEMU and names the other
processes'. That covers gate, bench and probe boots, and each probe also
gets its own span's lines.

Probe boots log reims_graphics at trace: the display's PRESENT_SURFACE
lines, its only trace site, so a probe's host.log slice counts composites
(about 23 lines a second at 120 Hz). Gate and bench boots stay at info.
2026-11-05 21:59:27 -08:00
Anees Iqbal 3f563d9752 🆕 Run oracle_icb's checked cases as the gate's icb phase
The guest's ICB paths (ICB_SLOTS among them, bit 17) had no check in the
gate: nothing in the sweep encodes an indirect command buffer. The gate now
builds oracle_icb with its metallib into the guest's payload where the tree
has it, and the correctness boot's icb phase runs its render, compute,
ranges, reset, gpu and timing cases. Each case is an item that fails where a
result is not what Metal draws or dispatches, where the barriered dispatches
came out wrong, or where its child died or exited nonzero; the timing case's
CPU encode costs at 1024 and 16384 commands and its execute time are metrics.
2026-11-05 21:59:27 -08:00
Anees Iqbal 2cad8b4829 🆕 Count a tip's new host paths in the gate's correctness boot
A tip that adds a path the guest takes is checked by the host's records of
it: QEMU's log gives the queues made unshared, the SUBMIT_ROOM records
posted (at debug, reims_graphics::room, which --host-log turns on for the
correctness boot) and the ICB_SLOTS messages whose runs were not all carried
out. They are the boot's host metrics, and guest.features names the bits the
kext took by number.
2026-11-05 21:59:27 -08:00
Anees Iqbal a2b4697743 🆕 Check named decode streams again within the same boot
hevc-main10-720p-closed matched 54 of 90 frames on 553660eb3 after passing
on every earlier gate, and one boot cannot tell an intermittent mismatch from
a steady one. decode-repeat.txt in the gate's home ("SET STREAM N" a line)
now goes into the guest's payload, and the decode phases check each named
stream N times more, as STREAM.r2, STREAM.r3 and so on. A later run without
the repeats misses nothing its baseline had.
2026-11-05 21:59:27 -08:00
Anees Iqbal aa51387659 🆕 Let the gate's correctness boot take a given tag
The lane host's gpu-urgent file lets a named boot pass the turnstile ahead
of the exclusive waiters. A tip that other agents' boots wait on is gated
under the tag the coordinator put there: --boot-tag TAG names the
correctness boot's (default gate-RUNID-boot).
2026-11-05 21:59:27 -08:00
Anees Iqbal d5d9fff905 🆕 Judge the bench's GPU cases by the core clock, per repetition
msi's 5080 holds its core at 1.2 to 1.5 GHz under its power cap, 2 s into
some starts and about 10 s into sustained load, for up to 12 s, and the frame
cases follow the core clock rather than the P-state: the 12 s warm-up put the
frame cases inside that window. The bench phase now runs without it, prints
each frame case's repetitions (-v), and the host samples the clocks every
100 ms. reps.py keeps a GPU-bound number only from time the core ran at
2500 MHz or more throughout: a frame case's from its qualifying repetitions,
counted in the report, any other case's where its whole run did. Where a frame
case got none, msi-boot.sh runs it again for 20 s (benchretry, at most two
rounds within the hold). A case with none is KNOWN-clock, and bands and
baseline medians come only from qualifying numbers.

A bench boot beside a build (HOST_NOT_QUIET) now keeps its GPU-bound numbers;
its CPU-bound ones (draws, upload, readback, present timing, drags, decode,
WebGL) are tagged, compared with nothing and left out of bands and medians.
The boot's waits now split the GPU lock's wait from the quiet wait, which
run.sh takes after the lock.
2026-11-05 21:59:27 -08:00
Anees Iqbal 3cee2bc225 🆕 Read each bench case beside the GPU's power state
msi's RTX 5080 holds P4 (core 1222-1447 MHz, memory 9001 MHz, against P0's
2767-2805 and 14001) for 1-8 s after a software power-cap event, even under
full load, which halves frag.fill and moves every bench number. The bench
boot now warms the GPU for 12 s of full load before its cases, its lines
reach the host as they come (grep --line-buffered), and msi-boot.sh samples
nvidia-smi's power state and clocks four times a second over the guest's
run. The report reads each bench case's state and median clocks from its
span; a number whose case ran below P0 is KNOWN-pstate and not compared, and
a bench number's baseline and noise band come only from samples at P0. The
bench leg also ships the lane host's scripts again, as it may start long
after its run shipped them.
2026-11-05 21:59:27 -08:00
Anees Iqbal 5f216bc68d 🆕 Let a crash in the sweep fail its own case only
The sweep runs every case in one process, so 40981b303's crash in
imageio.heic left the 50 cases after it unrun, each a FAIL as missing. Where
the sweep's process dies, each case it did not reach now runs in a process of
its own, in the order of the last full sweep, which the gate keeps
(sweep-cases.txt, from each full sweep's GATE sweep-order line): a case whose
process dies is FAIL as crashed, with its crash report's exception and
frames, and the cases after it run as before.
2026-11-05 21:59:27 -08:00
Anees Iqbal cd83fa12ec 🐛 Copy a decode reference again when its source changes
The gate copied each stream and its reference once. rgk-video replaced
hevc-main-1366x766's reference (ffmpeg's software decode) with the encoder's
reconstruction, and the gate kept the old one, so 40981b303's decode of the
stream matched 22 of 60 frames against a reference no decoder should match.
The corpus step now copies every file whose source differs.
2026-11-05 21:59:27 -08:00
Anees Iqbal ef35366ccf 🆕 Decode rgk-video's odd sizes and crops in the gate
The gate's decode sets held 7 H.264 and 14 HEVC streams; rgk-video lands
31, adding 5 of each codec at odd sizes and crops (1280x722, 1366x766,
1366x768, 854x480, 720p cropped at the top left). The odd streams are copied
into the corpus's odd/ directory from MSI_CORPUS_ODD and decode as the sets
h264-odd and hevc-odd, whose codec the report takes from the set's name.
2026-11-05 21:59:27 -08:00
Anees Iqbal cae51d47fa 🎨 Build on the lane host in host quiet; band only quiet samples
The lane host now keeps builds off its CPU and memory while a measured boot
runs (build-quiet.sh, which rgk-boot2.sh's exclusive boots hold against). The
gate's own msi builds, the host build and gpuload, go through it. Each boot
records whether its hold was quiet (HOST_QUIET or HOST_NOT_QUIET in QEMU's
log), the report shows it with the host's load average beside every bench
sample, and the noise band is measured only from samples taken in host quiet:
two exclusive samples of one commit beside builds differed by up to 2x.
2026-11-05 21:59:27 -08:00
Anees Iqbal f1239a5563 🆕 Measure beside a fixed GPU load (--load)
Numbers from a shared boot carry the other VMs' unknown load, and a
regression that shows only under contention (a slow or missed wake) needs a
load that is the same each time. gpuload, a headless Vulkan compute loop built
on the lane host, keeps the GPU busy a fixed share of every 10 ms; the bench
boot starts it by its pid before the guest's run and stops it after the drags,
and records the duty it reached. --bench-phases picks the bench boot's
phases. Each boot also records the host's load average beside its
measurements: other work's CPU and memory use, which the GPU lock does not
cover, moves the numbers of the Vulkan platform's imported host RAM.
2026-11-05 21:59:27 -08:00
Anees Iqbal fcb15a671b 🆕 Boot a published host build against a commit's guest (--host)
A control for a commit whose numbers moved: the same guest image on another
tip's host build changes one variable, the host and its runtime. The bench
boot also runs WebGL's frame rate and present_probe first, the quickest read
of a tip's frame pace.
2026-11-05 21:59:27 -08:00
Anees Iqbal 451ffeeff8 🐛 Take no gate lock in a bench leg started by hand
A bench leg the gate detaches inherits LANE_GATE_LOCKED and takes no lock, but
one started with --bench-only took the gate's lock and held off every later
pass while it waited its turn on the lane host.
2026-11-05 21:59:27 -08:00
Anees Iqbal 1d907f64bb 🎨 Queue the bench boot as an ordinary exclusive request
The bench boot waited until both of the lane host's turnstile queues were
empty. On a busy host they had not been empty for over an hour, so it never
ran. An exclusive hold has the GPU alone, which is all a clean measurement
needs: the bench boot now joins the turnstile in arrival order.

A resumed run also keeps the baseline it started with. baselines/LAST may
since have become the run's own commit, and against itself the cargo step
reached nothing past its default packages.
2026-11-05 21:59:27 -08:00
Anees Iqbal f3e5312919 🐛 Run every package's tests where the workspace manifest changes
The cargo step ran only the packages whose crates/ files changed and their
dependents. A pin move changes only Cargo.toml and Cargo.lock, so the gate of
9d8817b24 (the metal2vulkan 0491eb2c75 pin) ran 274 tests where the pin reaches
the whole workspace. A change to the workspace's manifest, lock or toolchain
now reaches every package.
2026-11-05 21:59:27 -08:00
Anees Iqbal ed6de7fbcf 🎨 State a decode SKIP as what the gate measured
A decode the guest's VideoToolbox found no hardware decoder for was reported as
"no hardware HEVC decoder", which read as the lane host lacking one, though
msi's GPU decodes HEVC Main and Main 10. The gate now measures the three facts
that decide it and the report says which one held:
- the host's GPU: msi-boot.sh lists each GPU's Vulkan Video decode profiles
  (vulkaninfo --show-video-props, a query) in host-video.tsv;
- the candidate: the guest build records the codecs its device offers
  (H.264 where the bundle has the H.264 driver, HEVC where the kext states
  IOGVAHEVCDecode);
- the guest: the info phase records the accelerator's IOGVA keys.
A decode stays SKIP where the host's GPU has no hardware decoder for the
codec (naming the host and GPU) or the candidate offers none ("the device
offers no HEVC decoder on this tip"), and fails where both hold and
VideoToolbox still finds none.
2026-11-05 21:59:27 -08:00
Anees Iqbal c8fb1256a4 🐎 Run only unknown cargo failures again alone
A tree whose changes reach the Vulkan platform runs its tests on the Mac,
where MAC_KNOWN_FAILS lists 97 that fail there. Running each of those once
more under the GPU lock took minutes per test behind other agents' runs, and
could never change the verdict. Known failures (the list, and the last
baseline's) now skip the lone rerun.
2026-11-05 21:59:27 -08:00