Repository navigation
drm/asahi: select GPU completion inputs by firmware interface - #2207
Conversation
|
Thanks for the Cyberpunk numbers; +25% is a big gain. We try to select behaviour by a hardware or firmware property rather than by the board it was measured on. This flips the per-board flag for one more machine ( Whether explicit waits can take the firmware's completion class is a property of the firmware interface, not of the board. Could you make it depend on that (the firmware build/layout that supports it), or turn it on for every M5 board and remove the field? If some board must keep it off, a comment with the reason would be the way. Before that, the two lost Vulkan devices you mention need the matched comparison with completion inputs disabled. We can help with rows on other machines. |
313543d to
aa1abb9
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of erikwb Thanks. The field is gone: Why the four boards differed, from the history:
What the code now says:
These reasons are now comments on On the two lost devices, the matched run is done:
With completion inputs on, stock vkd3d-proton is 23.3% faster and the PR build 38.0% faster. Neither arm lost the device in these 43 launches. The two earlier losses didn't recur on either kernel, so this run doesn't tie them to completion inputs; it also can't rule out a rare loss. The description has the same table. Rows on other machines would help: a J714 with this head should see no change, and a J775D or J813 should see no change either. |
|
Thanks, this resolves the review. Since behaviour only changes on the J716c, where it is measured, we have no further rows to ask for. Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at aa1abb9: NO BLOCKERS. Code read only, nothing built here. Before the merge it still needs Dj's verdict at this head; the missing rows are listed below. Full review#2207 drm/asahi: enable GPU completion inputs on J716c @aa1abb9aVERDICT: NO BLOCKERS Checked:
Effects on J716C:
Nits:
Missing rows:
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Review at aa1abb9a8ce5: 0 code, CI, policy, or attribution blockers.
Checked:
- Interface selection (§1): Removes the per-board
completion_inputsfield fromBoardand derivesBoard::completion_inputs()frommatches!(self.graph.profile, RootProfile::J714G17S26A428) && !self.g17d_forms, with clear comments explaining why J813 (common interface, no submission sequence / retired-parent relaxation) and J775D (G17D qualified tuple + pipelined waits) stay off, plus a compile-timeconstassertion pinning all five board definitions so J714, J775D, and J813 are unchanged. - Attribution (§4) & CI: Commit
aa1abb9a8ce5carries human author/committer andSigned-off-by:only;host-testsis green. - Performance & conformance (§5): The alternating matched A/B on J716c is solid (43 Cyberpunk launches, 0 Vulkan device losses on either arm, 0 GPU recovery/MMU fault/timeout lines, +23.3% stock / +38.0% PR vkd3d-proton, and identical 8,532 Pass / 6 NotSupported timeline-semaphore CTS).
Non-blocking nit:
drivers/gpu/drm/asahi/g17/fw/m5/initdata.rs:2926-2930: the doc comment says the check "follows the firmware interface the board runs", whereasself.graph.profileis the staticM5_GRAPHfamily (J714G17S26A428) even when runtime 27.2 selectsM5_GRAPH_26B123(works identically on 27.0 and 27.2, just slightly imprecise wording).
Still owed before approval/merge (§5):
- Full regression counts on the default kernel command line (0 SELinux denials, 0 failed units, 0 new kernel errors).
- A J716c confirmation row on
integration/auroraonce #2185 lands (since the A/B measurements were run on the unmerged #1173/#1650/#2185 stack).
Assisted-by: LLM (Gemini 4 Neon)
aa1abb9 to
c3ed22c
Compare
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Updated the
|
|
Re-checked at c3ed22c. Range-diff against aa1abb9: the only change is the doc comment on
Nothing new from us. The earlier J716c A/B still covers this head. The remaining items are the ones already listed: a J716c row on integration/aurora once #1173/#1650/#2185 land, and the default-cmdline regression counts. Assisted-by: LLM (Claude:Opus 5.5) |
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Ran a J716c trial kernel (
Remaining in |
|
Review at c3ed22c: one blocker, on proof, not on the code. Since aa1abb9 only the doc comment on Blocking:
No other findings. The selector is derived from existing board data and adds no parameter; J714, J775D and both J813 entries are pinned unchanged by the const assert. Nit: the PR title still says "enable ... on J716c" while the commit selects by graph family; worth aligning before the merge commit is written. Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 re-review at c3ed22c72d1e.
Zero code, policy, or attribution blockers:
- §1–§4 & CI:
Board::completion_inputs()derives completion-input selection from the staticM5_GRAPHfamily (RootProfile::J714G17S26A428) and!self.g17d_forms, the doc comment nit fromaa1abb9ais cleanly fixed (initdata.rs:2957-2961), the compile-timeconstassertion pinsJ714,J716C,J775D,J813, andJ813_26B123, commitc3ed22c72d1ecarries human author/committer andSigned-off-by:only, the PR body ends withAssisted-by:,host-testsCI is green, and the branch isMERGEABLE CLEAN. - J716c 27.2 (
26B123) verification: The matched A/B (7.3.0-ewb271+vsewb272+, 43 Cyberpunk launches, 0 device losses, +23.3% / +38.0% FPS) and current-head7.3.0-ewb275+CTS run (8,532/8,538 timeline-semaphore + 1,274/5,000 compute, 0 GPUdmesglines) are strong evidence for 27.2 G17C.
Remaining Blocker
- §5 Evidence — unproven on
integration/aurora's admitted 27.0 (26A428) G17C firmware (hw/t6050.rsCONFIG_MAX):- On current
integration/aurora,drivers/gpu/drm/asahi/hw/t6050.rs(CONFIG_MAX) already admits 27.0 (26A428) G17C forJ716C, while#2185(27.2 /26B123G17C) is still open. BecauseBoard::completion_inputs()keys on the staticM5_GRAPHfamily rather than the runtime firmware build, merging#2207now activates the counted compute kick form on 27.0 G17C with zero hardware runs on that firmware (every J716c run here — the A/B and7.3.0-ewb275+— ran on the unmerged#1173/#1650/#218527.2 stack, andewb275+had no standaloneintegration/aurorabaseline). A mismatched kick form hangs rather than failing softly. - To clear (either path):
- Run a J716c verification row on a 27.0 (
26A428) stub with plainintegration/aurora+c3ed22c72d1eon the default kernel command line (timeline-semaphore multi-queue CTS + compute CTS sample, 0 GPU/MMUdmesglines, and default-cmdline regression counts vs baseline); or - Hold this PR behind
#1173/#1650/#2185, then post the plainintegration/auroraJ716c confirmation row once#2185lands (explicitly documenting 27.0 G17C coverage or scoping).
- Run a J716c verification row on a 27.0 (
- On current
Non-blocking nit: align the PR title with the commit subject (select GPU completion inputs by firmware interface) before merge.
Assisted-by: LLM (Gemini 4 Neon)
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Confirmed against Holding
Updated the PR description ( |
Whether a compute kick's explicit waits on other kicks take the completion class, held in firmware until the producer completes, was a per-board flag that only the J714 set. It is a property of the firmware interface and the host encodings, not of the board: derive it from them and drop the field. Boards on the T6050 firmware's M5 graph layout (J714G17S26A428) with the G17S/G17C host encodings take completion inputs. The layout is matched positively, so a board on any other layout keeps them off. This turns them on for the J716c (G17C) as well as the J714. The common interface (the J813) keeps its own kick forms, and the G17D keeps its qualified tuple and pipelined firmware waits; the reason for each is beside Board::completion_inputs(). A compile-time check pins the result for every board. On the J716c every compute kick now takes the counted form. A wait on a producer that does not declare a visible completion still waits on the host. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Gemini 4 Neon on @satchlj's behalf. Hardware verification on M5 Max ( Build & Boot
CTS Results (
|
| Workload | wt-gpubench-m5 (completion_inputs: false) |
+ #2207 (completion_inputs: true) |
Delta | CRC |
|---|---|---|---|---|
rt.scene medium (depth=1) |
502.1 fps |
600.8 fps |
+19.7% |
d9796615 |
rt.scene heavy (depth=1) |
178.0 fps |
189.7 fps |
+6.6% |
6d9e7d37 |
rt.scene extreme (depth=1) |
42.0 fps |
44.75 fps |
+6.5% |
2e01d88e |
rt.scene raster (depth=1) |
1075.0 fps |
1181.3 fps |
+9.9% |
96c503ec |
rt.scene sweep:blas (depth=2, blas=static) |
— | 789.8 fps |
— | d9796615 |
27.0 (26A428) on G17C handles firmware-side completion_inputs cleanly with zero regressions and a substantial cross-queue pipelining gain (+19.7% on rt.scene medium).
DjDeveloperr
left a comment
There was a problem hiding this comment.
Acknowledging @satchlj's live 27.0 (26A428) G17C hardware verification on J775c (#issuecomment-7118663217: 8,532/8,532 timeline-semaphore CTS, 731 compute CTS, 68/68 ray_query CTS, +19.7% rt.scene medium, 0 GPU/MMU dmesg lines, 0 SELinux denials) — that clears the remaining §5 27.0 (26A428) G17C blocker from my earlier review.
Only remaining step before approval is rebasing onto current integration/aurora (currently CONFLICTING over host_only_render_kicks) with green host-tests CI. Ping once rebased and I'll re-verify and approve promptly.
Assisted-by: LLM (Gemini 4 Neon)
c3ed22c to
80220ba
Compare
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb @DjDeveloperr Rebased onto
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Checked interface-driven GPU completion input selection, clean commit history, green host-tests CI, and J775c/J716c verification rows. No blocking findings.
Problem
Whether a compute kick's explicit waits on other kicks take the completion class (held in firmware until the producer completes) was a per-board boolean (
completion_inputs) that onlyJ714set. No comment explained why the other M5 boards kept it off, andJ716Cleft firmware-side completion waits unused.Change
Remove the
completion_inputsfield fromBoardindrivers/gpu/drm/asahi/g17/fw/m5/initdata.rsand deriveBoard::completion_inputs()from the board's static graph family and host encodings (matches!(self.graph.profile, RootProfile::J714G17S26A428) && !self.g17d_forms):J714,J716C): boards onM5_GRAPH(RootProfile::J714G17S26A428) without the G17D host encodings (!self.g17d_forms) take completion-class explicit waits with the counted descriptor forms. Any other static graph family keeps them off until its kicks are known to take that form.J813,J813_26B123):COMMON26_GRAPH/COMMON26B123_GRAPHkicks encode their own forms (Board::j813_forms), with no submission sequence and no retired-parent relaxation, so their waits stay on the host.J775D):Board::g17d_formsruns compute only with the qualified tuple and entry-signal gate and takes pipelined-class firmware waits; the counted G17S form has not been run on a G17D.A compile-time
constassertion pins the result for every board (J714andJ716Con;J775D,J813, andJ813_26B123off).On the J716c every compute kick now takes the counted form (ordinal as submission sequence, completion-class parent while it runs), whatever the userspace. A wait on a producer that does not declare a visible completion (
DRM_ASAHI_COMPUTE_VISIBLE_COMPLETION) still waits on the host.Testing
J716c measurements below ran against
27.2 (26B123) G17Cfirmware via#1173/#1650/#2185, and@satchljverified27.0 (26A428) G17ConJ775c(G17C B1) in this comment. On the current head (80220ba4d402, rebased ontointegration/aurora275d59d3bc82to preserve#1958'sBoard::host_only_render_kicksfield and literals),Board::completion_inputs(), itsconstassertion, and every caller are unchanged.Static checks and host tests (
80220ba4d402onintegration/aurora275d59d3bc82)./scripts/checkpatch.pl --strict --git 275d59d3bc82..HEAD: 0 errors, 0 warnings, 0 checks (74 lines checked).LLVM=1cross-compile ofdrivers/gpu/drm/asahi/(clang23.1.4,rustc1.99.0): succeeds cleanly (AR drivers/gpu/drm/asahi/built-in.a).python3 tools/asahi/run-host-tests.py --only g17: 90 of 90 pass.python3 tools/asahi/run-host-tests.py --only asahi: 3 of 3 pass.python3 tools/asahi/run-host-tests.py(framework, Linux 7.3.0-5-cachyos x86_64,clang23.1.4, Python 3.14.8): 462 of 463 runs pass (allg17andasahisuites pass; onlyapple-dcpfails 15 of 93 subtests:panel-takeover-registration,desktop-brightness-notifications,j616s-panel-identity,pm-ownership,controller-lifecycle,usb-unreachable,cpuidle-s2idle,probe-mux-pm-dispatch,parking,masked-context,off-hardening,warm-reset,dwc3-teardown,same-handle-srcu-index,mux-release-stages, unrelated todrivers/gpu/drm/asahi/).Current-head J716c verification on
integration/aurora(275d59d3bc82) +#2185(d8ad1c90969e) +#2187(a56f2a5df8db) +#2207(80220ba4d402) (trial tip58bd01fd8d15, default command line)Plain
integration/aurora(275d59d3bc82) without unmerged#2185refuses27.2 (26B123)GPU firmware (aurora 2302600000.gpu: GPU firmware image not admitted: EINVAL) and without#2187lacks 27.2 external-display support, so the test base composesintegration/aurora(275d59d3bc82) +#2185(d8ad1c90969e) +#2187(a56f2a5df8db) +#2207(80220ba4d402) (trial tip58bd01fd8d15; arm64 kernel config,LLVM=1,clang23.1.4). It booted on the J716c's unchanged default kernel command line (27.2stub) via one-shotaura-try. The J716c devicetree carried#2208's devicetree-only additions (37fee82e714e), enabling manual fan control and SoC hotspot monitoring for Arm A so the fans could be held at their maximum (5,349 and 5,777 RPM) during the benchmark; no kernel code differs from58bd01fd8d15.aurora 2302600000.gpu: GPU firmware: 27.2 (26B123), G17C,M5 firmware graph ready, primary and secondary initdata acknowledged, opening records retired.DRM_IOCTL_ASAHI_GET_PARAMSreportsfeatures=0x13e7cfe7c07(DRM_ASAHI_FEATURE_COMPUTE_VISIBLE_COMPLETION=1,DRM_ASAHI_FEATURE_COMPUTE_NO_QUERY_ACCESS=1).libvulkan_asahi.sosha2565d5e96fd542139b5cf501939694d9f404678f03d5f7cf9e224b02250162374ee,deqp-runner --jobs 4, shader cache enabled):dEQP-VK.synchronization*.op.multi_queue.timeline_semaphore.*(8,538 cases): 8,532 Pass, 6 Skip (NotSupported), 0 Fail (40.5 s).dEQP-VK.query_pool.*(18,270 cases): 18,230 Pass, 40 Skip (NotSupported), 0 Fail (9.9 s).dEQP-VK.compute.*(5,000 sampled cases): 1,274 Pass, 3,726 Skip (NotSupported), 0 Fail (18.9 s).2560x1600, Borealislibvulkan_asahi.sosha256d73d401491d22c7a51279ade2bec791bf525484413d400fc9f9a09c03266b877, 0 driver overrides,performancegovernor, 140 W AC, fans at maximum): 33.91 FPS (c0, min27.74), 33.22 FPS (w1, min28.19), 31.51 FPS (w2, min26.69), mean 32.88; 0 GPU alerts or device losses, and 0 GPU-pstate-1 samples (no power-brake clamp) in any run.systemctl --failed: 0 new failed units (1 pre-existingaurora-peripherals.service, which also fails on the default-kernel boot).journalctl -k -b -p err..emerg, boot plus all workloads): 27 lines, the same 27 lines (identical unique set) as the default-kernel boot, so 0 new kernel errors; 0 GPU/MMU/recovery lines indmesg.M5 Max (
J775c,G17C B1,27.0 (26A428)) verification (c3ed22c72d1e, #issuecomment-7118663217)Reported by
@satchljonwt-gpubench-m5(2e7dae46192a, J775c carry baseline withouthost_only_render_kicks) +c3ed22c72d1efrom#2207(7.3.0-lobata-m5direct-2207+):aurora 2302600000.gpu: GPU firmware: 27.0 (26A428), G17C— primary and secondary initdata acknowledged, opening records retired cleanly; 0 SELinux AVC denials, 0 GPU/MMUdmesglines, 5 pre-existing baselinedmesg -l err..emerglines (spmi gen4/aop/dcp).MESA_SHADER_CACHE_DISABLE=1, Mesaed59bf5c8a):dEQP-VK.synchronization*.op.multi_queue.timeline_semaphore.*: 8,532 Pass, 6 NotSupported, 0 Fail (32 s).dEQP-VK.compute.*(5,000 sampled cases): 731 Pass, 4,269 NotSupported, 0 Fail (121 s).dEQP-VK.ray_query.*(68 compute cases): 68/68 Pass (1 pre-existingwatertightness.nomiss.comp.aabbsfailure unchanged from baseline).dmesglines, 0 faults, 0 hangs across >13,600 CTS cases and benchmarks.rt.sceneA/B (G17C B1,27.0 (26A428), Mesaed59bf5c8a,wt-gpubench-m5vs+ #2207):rt.scene medium(depth=1)502.1->600.8fps (+19.7%, CRCd9796615);rt.scene heavy(depth=1)178.0->189.7fps (+6.6%, CRC6d9e7d37);rt.scene extreme(depth=1)42.0->44.75fps (+6.5%, CRC2e01d88e);rt.scene raster(depth=1)1075.0->1181.3fps (+9.9%, CRC96c503ec);rt.scene sweep:blas(depth=2,blas=static)789.8fps (+ #2207, CRCd9796615).Prior-head matched A/B comparison on J716c (
e475efad2625vs40c03d2e4b2f)Matched comparison on the J716c (same completion-input implementation and behavior as
80220ba4d402). Two kernels were built with the same arm64 config from the J716c baseline tree (77602a74a746, based onintegration/aurora0abc2f385e54with the board enablement in #1173, #1650, and #2185): arm Ae475efad2625(withBoard::completion_inputs()on forJ716C) and control arm B40c03d2e4b2f(identical exceptcompletion_inputs()returnsfalseon every board). Boots alternated (on,off,on,off) with the same J716c daily Mesa build on both arms (exact Mesa SHA not recorded in the original PR run log), the same settings, the desktop up, and the 140 W adapter connected. Each boot ran Cyberpunk 2077 at tier T2 of aurora-silicon/mesa#457 (2560x1600), with 5 launches on stock vkd3d-proton (one launch on the first boot did not start because another benchmark held the lock) and 3 pairs of passes on theaurora-silicon/aurora-steam-native#15PR build of vkd3d-proton:dEQP-VK.synchronization*.op.multi_queue.timeline_semaphore.*, 8,538 cases)With completion inputs on, stock vkd3d-proton is 23.3% faster and the PR build 38.0% faster, with 0 device losses across all 43 launches (two earlier losses seen on an earlier head at 3840x2160 did not recur on either arm here).
Still to run
host-testsCI run on the pushed80220ba4d402head (localtools/asahi/run-host-tests.py --only g1790/90 and--only asahi3/3 pass).