Skip to content

drm/asahi: g17: allow inline cross-engine publication behind already-published producers - #3390

Merged
DjDeveloperr merged 6 commits into
mainfrom
perf/g17-inline-cross-engine-pub
Dec 4, 2026
Merged

DjDeveloperr merged 6 commits into
mainfrom
perf/g17-inline-cross-engine-pub

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: Allow G17 inline (try_render_early / try_compute_early) publication of cross-engine consumers behind producers that are already published to firmware, instead of forcing every cross-engine consumer onto the drm_sched worker thread.

  • Track Fences::inline_published and omit adding producer.scheduled to a consumer's host dependencies in Queue::enqueue() when the producer was already inline-published or its scheduled fence is already signaled (fence_status > 0).
  • Keep all producer.completed host waits intact (query-access computes and timestamped writers still wait on the host; orthogonal to drm/asahi: g17: keep timestamp writers behind cross-engine publication #3246).
  • Gate try_compute_early() and try_render_early() on has_host_dependencies() (ignoring pure firmware-ordered producers) and verify check_firmware_producers() before inline publication so an unpublished or failed producer still falls back cleanly.

Tested:

  • Host tests at 6c79a541616a4: python3 tools/asahi/run-host-tests.py --only g17 (237/237 pass, including new tools/asahi/g17-inline-cross-engine-tests.py with 5 mutation traps). scripts/checkpatch.pl --strict 0 errors, 0 checks. Local asahi.config build of drivers/gpu/drm/asahi/aurora.o succeeds cleanly.
  • J714s (Apple M5 Pro, G17S B1) same-slot, same-Mesa-kit (inst-A), same-DTB (origin/main DTB, MCC/SLC disabled) A/B (notsws2-rescan vs slot3-direct adding 6c79a541616a4 + WQ_HIGHPRI drm_sched + direct staged/compute render over origin/main + #3319 + #3330 + #3380):
    • VK CTS (1.4.7.1): 594/594 executed passed, 0 failures (synchronization2.op.single_queue.barrier.*_read_image_compute*: 412/412; occlusion_query.copy_*: 152/159 + 7 NS; multiview.queries.*: 16/16; synchronization.smoke.*: 12/12; concurrent_queries.*: 2/2).
    • gpubench-vk compute.cull_mdi (objs=16384 visible=75, CRC 07f6c861 valid): render inline publications jumped from 0/5,010 (0%) to 5,005/5,006 (99.98%) and compute inline from 2,309/6,820 (33.9%) to 6,813/6,814 (99.99%), gpu_gap_us d2 = 0.375 us.
    • GTA V Enhanced (3024x1964 native, Preset 2 Very High, TAA On, 10 s 24 MHz trace): LATE_PUB(CO->TA) cut -49.1% (43.8 ms -> 22.3 ms), GPU busy 92.86% -> 94.72%, P4 54.27 -> 55.07 FPS, 0 GPU faults, 0 new kernel errors.
    • chainbench_diag: V0_ALL_BAR 960x540 321.5 us -> 266.5 us (-17.1%); V3_NO_BAR_INDEP 60x33 289.0 us -> 269.9 us (-6.6%).

Risk: Two-way door · G17 inline submission eligibility only. Consumers with any external or completed host fence wait stay on drm_sched; check_firmware_producers() guards against racing with an unpublished or errored producer.

Not yet: Isolated single-commit J714s A/B (measured combined in slot3-direct), G17P/G17C/G17D hardware rows, and CI.

…published producers

Previously Queue::enqueue() added every cross-engine firmware producer's
drm_sched scheduled fence to the consumer's dependencies, and both
try_compute_early() and try_render_early() gated on has_dependencies()
(which includes firmware completion fences). As a result, every
cross-engine command fell off the inline publication path onto drm_sched
even when its producer had already been published inline in the same ioctl
or had already signalled scheduled, leaving cross-engine workloads at 0%
inline publication and adding a scheduler wakeup plus firmware cold-start
stall on C->R and R->C transitions.

Track whether Scheduler::enqueue() published a command inline, omit
scheduled dependencies for producers that are already published (inline or
scheduled fence signalled), gate early inline publication on host
dependencies only (has_host_dependencies()), and check
check_firmware_producers() before inline publication so failed producers
propagate unpublished errors cleanly.

Add a compiled host test with mutation traps covering producer
scheduled-wait filtering, host vs firmware early-publication gating, and
failed-producer error propagation.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 27, 2026 14:04

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fences::inline_published currently copies try_early()'s boolean, but that boolean is also true when the early path handles a terminal failure before any firmware publication. The consumer now uses this field to omit its scheduled-fence wait. Track actual firmware visibility separately from an early attempt that handled an error, or show that the exact fence stored in firmware always exposes the terminal failure before the consumer can skip the wait. Test an early failed producer followed by a cross-engine consumer. Current-head isolated A/B, peer evidence and CI remain open.

…ished

try_early() returns true both when a command was published inline to
firmware and when it handled a terminal unpublished error before hardware
publication. Gate Fences::inline_published on inline && packet.is_published()
so an early unpublished producer failure never causes a cross-engine
consumer to omit its scheduled-fence wait.

Extend g17-inline-cross-engine-tests.py with an early-failed producer
followed by a cross-engine consumer and the copy-try-early-bool mutation.

Signed-off-by: DjDeveloperr <hey@djdev.me>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline hint now checks the packet publication state in addition to whether the early path handled the job. The acquire read pairs with the release store for actual publication, so a handled error before publication cannot omit the consumer's scheduled-fence wait. I ran the exact-head host fixture and verified that the copy-try-early-bool mutation fails on the new assertion for that case. Code approved. Keep held for hosted CI and exact isolated hardware A/B plus the affected peer.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J700 (MacBook Neo, Apple A18 Pro T8140 / G17P B1, second generation) batched kernel verification row at exact head 513edcf43d8f67ec51e30a6dcaa5cfe7f746b5a2: PASS (no regression, 0 failures, 0 GPU faults/recoveries).

  • Combined trial tree (7.3.0-neo-g17perf2v2, commit 5fff9e2700cb):
    • Base: origin/main (ae011990411422923609ae4a41550af2ba25d1b6)
    • Combined PRs tested together in one one-shot boot:
      • #3388 (perf/g17-direct-render-stage-prefixes, head 334dbc6c7e8bfa8d9739ccf8bca45c6baabe6480)
      • #3390 (perf/g17-inline-cross-engine-pub, head 513edcf43d8f67ec51e30a6dcaa5cfe7f746b5a2)
    • All kernel/driver/Rust files merged cleanly onto origin/main with zero conflicts (only adjacent test registrations in tools/asahi/run-host-tests.py were combined).
    • Host tests on the combined tree: python3 tools/asahi/run-host-tests.py --only g17 passed 247/247.
  • Setup & identity:
    • Built with stock 7.3.0-41 config + LOCALVERSION=-neo-g17perf2v2 (0 build errors).
    • Booted via one-shot grub2-reboot only with a 16-minute fallback timer; default entry remained 7.3.0-41.fc44.aurora.aarch64. System Mesa, stock kernel command line.
    • Verified on boot (abb9483f): uname -r = 7.3.0-neo-g17perf2v2, kernel build ID 7c7992d87026bdcf84123ccad4f86d1e331f30ce (MATCH), aurora.ko build ID 36db614ebfd601ee5a14b2bfb798ee1a6656b47c (MATCH).
  • VK CTS (6 jobs, 37,886 cases in 185 s): 31,611 Pass, 6,275 NotSupported, 0 Fail, 0 recoveries (gate rc 0):
    • dEQP-VK.synchronization2.*_read_image_compute*: 5,100 Pass, 5,806 NotSupported, 0 Fail (10,906 total; NotSupported are exclusive-compute-queue / unsupported feature cases).
    • dEQP-VK.synchronization{,2}.* (basic, smoke, single-queue, timeline semaphore, implicit, none_set_reset, internally synchronized objects, plus all synchronization2.*_read_image_compute*): 31,242 Pass, 6,178 NotSupported, 0 Fail (37,420 total).
    • dEQP-VK.compute.pipeline.basic.*: 79 Pass, 2 NotSupported, 0 Fail.
    • dEQP-VK.api.command_buffers.*: 65 Pass, 66 NotSupported, 0 Fail.
    • dEQP-VK.renderpass{,2}.suballocation.subpass_dependencies.*: 73 Pass, 22 NotSupported, 0 Fail.
    • dEQP-VK.query_pool.occlusion_query.copy_*: 152 Pass, 7 NotSupported, 0 Fail.
  • gpubench-vk (fdf4dd6, system Mesa, 17/17 rows ok, CRCs matched stock 7.3.0-41 pre-boot baseline):
    • render.deferred (tile msaa=4 1080p d1/d2): 5e4130ce (match), GPU 10596.9 / 10525.5 µs (stock 10831.2 / 10653.7 µs).
    • render.postfx (msaa=4 1080p d1/d2): 668d6f0a (match), us/sub 773.2 / 572.5 µs (stock 781.2 / 625.0 µs).
    • render.pass_chain (all_bar d1/d4): 93411763 (match), us/sub 550.5 / 371.3 µs (stock 513.7 / 449.1 µs).
    • render.pass_chain (oq_bar d1/d4): 93411763 (match), us/sub 761.4 / 1200.0 µs (stock 785.3 / 857.1 µs).
    • render.light d1/d8: ok, us/sub 132.6 / 31.1 µs (stock 125.3 / 28.8 µs).
    • compute.heavy (alu d1/d4): ok, us/sub 1351.4 / 1181.1 µs (stock 1382.5 / 1181.1 µs).
    • compute.light d1/d8: ok, us/sub 107.4 / 17.0 µs (stock 102.9 / 15.9 µs).
    • compute.cull_mdi d1/d4: 57276de2 (match), us/sub 9677.4 / 1851.9 µs (stock 5357.1 / 1886.8 µs).
    • sync.signal (compute.light d1): ok, latency p5/med/p95 151.0 / 154.9 / 164.2 µs (stock 140.8 / 145.6 / 152.7 µs).
    • Note: stock 7.3.0-41 predates origin/main (ae01199041142), so this row serves as a combined correctness/CRC/stability verification rather than a merge-base perf A/B.
  • Kernel health & restore:
    • 0 GPU faults/recoveries, 0 MMU faults, 0 WARN/BUG/Oops/lockup/RCU-stall/timeout lines, 0 new kernel error lines, 0 AVC denials, 0 failed units, 0 core dumps.
    • Restored cleanly to stock 7.3.0-41.fc44.aurora.aarch64 (boot 278c2620, PMU f701/f702 = 30 00); trial /boot, /lib/modules, BLS entry, and fallback timer removed, stock.sh POST vs PRE diff = 0 bytes.

@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 96262ad1: ready to merge

Check Detail
CI at head ok 9 checks passed
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head ok comment at 96262ad1
Conflicts ok none
PR text ok Risk: two-way · G17 inline submission eligibility only. Consumers with any external or completed host fence wait stay on drmsched; checkfirmwareproducers() guards against racing with an unpublished or errored producer.

Areas: area:gpu
Merge: gh pr merge 3390 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 27, 2026
Signed-off-by: DjDeveloperr <hey@djdev.me>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: HOLD for hosted CI and final-stack hardware qualification.

Checked: The inline submission file and its fixture retain their reviewed blobs. The changes in the overlapping files are the incoming priority workqueue setup, sync-vector type and teardown rescan stop. The merged host runner keeps the inline fixture and its producer-state controls. The prior combined J700 pass covers the older heads. Please keep the isolated comparison and peer evidence on the landing stack.

Resolve against main's timestamp-free publication chaining (#3319): carry both the inline_published flag and timestamp_waits in Fences, and both firmware_published and inherited_timestamp_waits through EnqueueOrdering. Main's new firmware wait for a timestamp-free producer now records its inline_published flag too, so the two vectors stay paired in the zip in Queue::enqueue().

Signed-off-by: DjDeveloperr <hey@djdev.me>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: HOLD at 85ecbc6d51e6

Blockers:

  • Hosted CI at 85ecbc6d51e6 is still queued (21 jobs queued: apple-build, host-tests, pr-text, readiness, and KUnit suites including asahi_g17_cross_engine_timestamps) — wait for all checks to complete green.
  • Exact-head G17 hardware verification row at 85ecbc6d51e6 after integrating #3319's timestamp-free publication chaining (existing combined J700 pass covers pre-merge 513edcf4).

Checked:

  • Audited the full 6-file diff (+416/-7, MERGEABLE against main) and the non-trivial merge resolution against #3319 in drivers/gpu/drm/asahi/g17/queue/mod.rs:
    • Verified every firmware.push() site in EnqueueOrdering::build() (both the timestamp-free producer branch and the non-wait branch) pushes a matching entry.inline_published() into firmware_published, keeping ordering_firmware_waits and ordering_firmware_published strictly paired for the .zip() loop in Queue::enqueue().
    • Verified Fences::inline_published (inline && packet.is_published()), Packet::has_host_dependencies(), try_compute_early() / try_render_early() check_firmware_producers() error handling, and tools/asahi/run-host-tests.py (g17-inline-cross-engine-tests.py + all 6 mutations) remain intact.
Evidence
  • Head: 85ecbc6d51e6c589d2f072ad5be415494b649d95 (base main, MERGEABLE).
  • Status checks at review time: 21 queued, 3 skipped, 0 failed.

RyanTheTide
RyanTheTide previously approved these changes Dec 1, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the conflict-pass merge commit 85ecbc6 only: firmware-wait flag pairing checked: every firmware.push has a matching firmware_published.push in both branches, zipped with ordering_firmware_published; inline_published defaults to false on the trait. The resolution keeps what each side had and adds nothing outside the conflict. Approved for the merge-up; merging still waits on CI and the rows at this head.

@github-actions github-actions Bot removed the merge-conflict Conflicts with the base branch (bot) label Dec 1, 2026
@github-actions github-actions Bot added needs-review No approving review from Core or Omarchy Mac yet (bot) ci-failing A check failed at the PR head (bot) labels Dec 2, 2026
RyanTheTide
RyanTheTide previously approved these changes Dec 2, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked merge-up ec14e9f2621d (85ecbc6d + main 844502ef): tools/asahi/run-host-tests.py cleanly keeps both main's idle-counts-submitted mutation and this PR's g17-inline-cross-engine-tests.py entry; code delta unchanged from App-approved 85ecbc6d. Needs an exact-head hardware row line at ec14e9f2 before merge.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Why host-tests is red at ec14e9f2621d

The hosted run (job 143293971026) didn't fail a test. It hit the job's 20-minute timeout-minutes and was cancelled. Setup took about 3 minutes, and the test step had run for 17 minutes and reported 817 jobs ok with no failures when it was cut off. The processes still running were ordinary fixture compiles (clang, cc1). This PR adds one test file (7 jobs, about 3 s in total), so the timeout comes from the runner, not from the PR.

Re-check on current main (b3a5fda631b9, local test merge, not pushed)

The branch merges into main with no conflicts, and it also stays clean against main's newer tip 4c6f0f709898. It isn't behind with conflicts, so I didn't forward-merge it. The merged diff against main touches the same 6 files as this PR, and each one carries exactly this PR's changes.

  • linux-build/build kernel --profile asahi <tree> -- W=1 modules_prepare drivers/gpu/drm/asahi/ (pc, warm O= dir): rc 0.
  • python3 -I tools/asahi/run-host-tests.py --jobs 8 in the host-tests image (Ubuntu 24.04, clang 18, gcc 13, Rust 1.96.0, --network=none): 974/976 passed, including g17-inline-cross-engine-tests and all six of its mutations. The two failures are centauri-scan-tests and centauri-scan-tests --negative-controls. Both fail on main as well since today's btcentauri_t6050 changes: the test's bt-production.c harness has no dev_warn_ratelimited() or cen_rx_consume(). main's own host-tests run at c2f1583e fails the same two jobs (967/969). This PR doesn't touch the driver or the test. A re-run of the hosted check would fail on them until main's test is fixed, so I haven't re-run it.
  • scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES: 6c79a541616a 0 errors, 0 warnings, 0 checks. 513edcf43d8f 0 errors, 1 warning, 0 checks: one commit-message line is 77 characters. Fixing it needs a history rewrite, so I left it.

One note, not blocking: W=1 shows one Rust warning this PR adds, method has_dependencies is never used (g17/job.rs). Both callers now use has_host_dependencies(). CONFIG_WERROR is off, so it doesn't break the build. The block-firmware-early mutation in g17-inline-cross-engine-tests.py still copies has_dependencies() out of job.rs. So dropping the method means moving it into the test, and that can go with the next change to this branch.

Nothing was pushed, so the head is unchanged and the current approval stands.

Head: ec14e9f2621d
Exact-head J714s row owed.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Local host-tests at ec14e9f2621d on main 1262f9e1b6af (tree 78239c912170): 1005/1005 passed, including both Centauri cases. I computed the candidate with git merge-tree --write-tree --merge-base=844502ef16a3 <main> <head>, using the branch's last main merge parent because the history has multiple merge bases. The candidate changes the six PR files.

Command in the cached Ubuntu 24.04 container: taskset -c 4-23 python3 -I tools/asahi/run-host-tests.py --jobs 8.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

PASS on J714s (MacBook Pro 14" M5 Pro, T6050 G17S B1) at exact head ec14e9f2621dfba8c8d0ab78d11eb67071a07850 (0-conflict composite 82e27746afd9 with #3411 3beaae0200e3 on origin/main 2c667a4be5a6, release 7.3.0-m5-g17-3411-3390 vs clean 7.3.0-m5-main-base, SLC 16 planes, headless WSI, 0 display windows): paired 4-boot ABBA (a1-base boot_id=2cfeca6d-4357-410c-b0b0-add3e9d47723, b1-comp boot_id=16b2b99d-069a-45b3-8f11-38b981defa0b, b2-comp boot_id=adbe2a12-88c7-453a-ba3d-3877eb9db4b6, a2-base boot_id=83ad5c7f-c4c0-43ce-8bca-9eca11b91d5b) passed with 0 CRC mismatches and 0 >5% primary regressions (compute.cull_mdi CRC 07f6c861: d1 385.41 -> 379.68 us/submit -1.49%, d2 267.24 -> 266.10 us/submit -0.42%, gpu_gap_us 0.292 -> 0.292 us; compute.light d1/d8 +2.13%/+0.52%; compute.heavy d1/d4 +1.47%/+0.34%; rt.scene 67.62 -> 67.58 FPS -0.06%); focused 5-suite VK CTS on b1-comp 601/601 Pass (0 Fail, 0 NotSupported); 0 GPU faults, 0 timeouts, 0 recoveries, 0 kernel WARN/Oops; clean stock 7.3.0-m5-pr67 handback (boot_id=154b9874-a3e5-46c8-a5a5-837ba7143a0e).

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 3, 2026
@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Dec 3, 2026
Skip scheduled waits for already-published producers while retaining
the per-engine failure log from main. Update the inline publication
regression harness for failure-log tracking.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Forward-merged main 0b5e5581a5fb as 96262ad138c9 (tree 96604fbd610a). The queue skips scheduled waits for already-published producers and retains #3681's per-engine failure log for all firmware waits. On PC, ARCH=arm64 ~/bin/aurora-build ./linux-build/build kernel --profile asahi linux-g17fwd-3390 -- -j12 W=1 modules_prepare drivers/gpu/drm/asahi/ compiled and linked aurora.o with 47 warnings and zero errors. In the Ubuntu 24.04 CI container, python3 -I tools/asahi/run-host-tests.py --jobs 8 --only g17- passed 344/344, including all six inline-publication mutations. J700 validation is pending at the new head.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) labels Dec 3, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the merge against its main parent. Only already-published or successfully scheduled producers lose the scheduled wait. Inline publication still requires an empty scheduler dependency list, and the producer failure log is checked before both render and compute publish. Hardware qualification remains pending at this head.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 3, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J714s Exact-Head Hardware Receipt (#3390 96262ad138c9 + #3411 2c100334fea4)

  • Host: Apple M5 Pro (J714s / T6050 / G17S B1), stock control 7.3.0-m5-pr67 (56f42ac3), clean verified rollback to stock 7.3.0-m5-pr67 (c6625643, SLC enabled on 16 planes).
  • Kit: work/j714s-linux3390-3411-571a6c45-20261203-v2 (SHA256SUMS a5d673f8e9ee…, KIT CHECK OK, 132 selftests).
  • Arms (7.3.0-main571a6c45, rtgen2n31rc25 ICD):
    • Base (main 571a6c45): aurora-base.ko f19ea4889ac130b9, boot_id=769c835c-4df1-42b3-bc0b-9a68c3cfabac
    • Head (#3390 96262ad138c9 + #3411 2c100334fea4): aurora-head.ko 71d040c7d2dd7249, boot_id=546bba8e-5078-4362-a09a-3dfba9723bf9
Check Base (f19ea4889ac1) Head (71d040c7d2dd) Result
DEPTH64 active max 32 62 OK
Vulkan CTS (36,567 cases) 29,478 Pass / 7,089 NS / 0 Fail 29,478 Pass / 7,089 NS / 0 Fail 0 diffs, PASS
gpubench (15 workloads) gb bad 0 gb bad 0, all 15 within A/A noise PASS
Memory (one_client / depth drm_total) 517.47 / 121.54 MiB 517.43 (-0.05) / 122.04 (+0.50) MiB (dev_kernel_resident +8.73 / +13.23 MiB) OK
Kernel logs (measure + postsleep) klog clean klog clean PASS
Deep sleep + post-sleep render boot object resumes 0 -> 1, postsleep: render ok, klog clean (0.66s wake on macsmc USB2_plug) boot object resumes 0 -> 1, postsleep: render ok, klog clean (0.65s wake on macsmc USB2_plug) Identical on base & head*

*row.py judge reported FAIL solely because both base (660 ms) and head (653 ms) woke early from deep sleep on the same lab USB-C macsmc USB2_plug event (<20s threshold, flagged as BASE ARM: 1 problems (same class on base is not head-only)). Every #3390/#3411 GPU, DEPTH64, CTS, memory, perf, and post-sleep render gate passed cleanly.

J714s 96262ad138c9 (#3390 + #3411 2c100334fea4): GPU/DEPTH64/CTS/MEMORY/PERF PASS (base-identical USB2_plug early wake noted above).

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Dec 4, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J700 (MacBook Neo, A18 Pro, G17P) row of #3390 96262ad138c9 + #3411 2c100334fea4 together on main 571a6c45fd2b: both boots PASS every functional check, but the latency card is NOT DECIDED.

One Image 7.3.0-main571a6c45 for both arms, module-only difference (aurora.ko). Base boot d6ccdfe7, head boot 427febc3; the J700 was verified back on stock after each.

Functional rows, both arms PASS: identity, GPU, overlap, CTS, faults, gpubench, latency run, two-client close, capacity, dmesg, watchdog; the hang round passed on both.

Throughput (GPUBench, head vs base):

  • cull_mdi d1 µs/submit 6250 -> 3425 (+45.2 %), pass_chain_oq_bar d1 759.9 -> 684.9 (+9.9 %).
  • Nothing more than 5 % worse.

C1 latency trace (head/base, held because head is more than 5 % above base):

case base head head/base
cull d1 p50 / p99 5.88 / 64.2 36.18 / 87.18 6.15 / 1.36 (noisy)
cull d2 p50 / p99 4.46 / 12.75 14.19 / 21.23 3.18 / 1.67 (noisy)
cull d8 p50 / p99 4.92 / 12.46 16.71 / 33.31 3.40 / 2.67 (noisy)
cr-concurrent p50 / p99 8.77 / 22.89 12.42 / 28.89 1.42 / 1.26 (noisy)

The cull cases are flagged noisy by the kit; cr-concurrent p50 is not. So with both PRs the same work finishes faster per submit while individual completions arrive later. The two PRs were judged together, so this row can't say which one moves the latency; a split rerun with #3390 alone (its aurora.ko is already built) is the next step.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J700 (MacBook Neo, A18 Pro, G17P) split row on main 571a6c45fd2b: this PR is the one that moves the C1 submit latency. #3411 does not move it beyond noise. Every functional check passed on all three arms.

One Image 7.3.0-main571a6c45; the arms differ only in aurora.ko. The J700 was verified back on stock after each boot.

arm aurora.ko boots
A: main ab44cb93 d6ccdfe7 (earlier row), 5009b40c
B: main + this PR 96262ad138c9 acb71041 d0c46baf
C: main + this PR + #3411 2c100334fea4 f7a958b9 427febc3 (earlier row), 1045ee93

Submit latency in µs. Each value is the median of the pooled repeats; the warm-up repeat is excluded. A result counts as noise when the ratio falls inside the larger arm's spread or within 5 %.

case A B C B/A C/B moved by
cr-concurrent p50 8.79 12.42 12.35 1.41 0.99 (noise) this PR
cull d2 p50 4.38 14.64 14.19 3.35 0.97 (noise) this PR
cull d2 p99 12.25 21.98 21.52 1.79 0.98 (noise) this PR
cull d8 p50 4.92 16.17 16.71 3.29 1.03 (noise) this PR
cull d8 p99 16.0 29.85 29.85 1.87 1.00 (noise) this PR
cull d1 p50 5.42 10.64 13.71 1.97 (noise) 1.29 (noise) neither (spread up to 7.8×)
cull d1 p99 67.7 92.5 87.2 1.37 (noise) 0.94 (noise) neither

cr-concurrent p99, reported but not judged: 21.8 / 28.1 / 27.5, which also points to this PR.

What changes. In cull_mdi d2, the share of submissions published inline goes from 0.33 (compute) and 0.00 (render) on main to 0.9997 on both engines with this PR. #3411 doesn't change it. So with this PR the submit call publishes almost every submission itself, and each submit takes about 3 to 10 µs longer at the median.

GPUBench (reported, not judged, µs per submit):

  • pass_chain_oq_bar d1: A 759.9 / 754.1, B 685.9, C 684.9 / 692.5. This PR is about 9 % faster, the same on every boot that has it.
  • cull_mdi d1: A 6250 / 3448, B 10870, C 3425 / 10870. This case is bimodal from boot to boot, both on main and with the PR, so it shows nothing either way. This corrects my earlier combined row: its "+45 %" for cull_mdi d1 compared one slow main boot with one fast head boot.
  • Every other case (compute, render, postfx, deferred, pass-chain d4, cull_mdi d2/d8, RT fps) is within about 2 % across A, B and C.

Not covered: B has one boot; other generations (the M5 Pro row is above).

@DjDeveloperr
DjDeveloperr merged commit 51cb5aa into main Dec 4, 2026
11 of 12 checks passed
@DjDeveloperr
DjDeveloperr deleted the perf/g17-inline-cross-engine-pub branch December 4, 2026 03:19
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Merged 96262ad138c9 as 51cb5aaf20af. J700's split run passed all functional checks. Inline publication adds about 3–10 µs to median host submit latency (1.41–3.35× across the affected cases). GPUBench pass_chain_oq_bar d1 was about 9% faster, other stable workloads stayed within about 2%, and cull_mdi d1 varied across boots on both arms. Split results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants