Repository navigation
drm/asahi: g17: allow direct publication for staged/compute-prefixed renders and drain reports after signal - #2769
DjDeveloperr wants to merge 2 commits into
Conversation
…and staged renders Resolve already-published compute prefixes while lending the render pair in Firmware::lend_render() and extend Pair::own_dependencies() to collect render_tiling and tiling prefixes for staged renders, matching Registry::render_dependencies(). Previously render_direct() unconditionally fell back to the global device mutex whenever a render carried a compute prefix or stage prefixes, serializing host-side preparation and publication of compute-to-render and staged render passes. Unpublished compute prefixes still return EAGAIN and fall back cleanly to the device-mutex path. Signed-off-by: Diljit Singh <[email protected]>
…letions on all G17 Enable reports_after_signal() unconditionally across G17 so trace and statistics ring draining and power-register reads run after deferred.finish() signals DMA fences, reducing completion-to-kick latency on non-M5 G17 parts as well. Signed-off-by: Diljit Singh <[email protected]>
|
Read at 2e05a59. Commit 1 looks right. Commit 2 needs a reason and a number. Your stress rows cover correctness for both commits; the A/B numbers would be clearer per commit, since only commit 1 should change publication latency. Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
Verdict: HOLD at 2e05a592.
Blockers: Resolve the base conflict against current main and reconcile render_direct() with merged #2955. The old branch still excludes all M5 by model, but main now has an M5 direct path. Preserve current host-port and recovery handling and use capability checks for any remaining restriction. The widened staged/compute-prefix path also needs the cross-pair protection tracked in #3301 or an equivalent check. Pair::own_dependencies() can only see the lent pair, whereas the registry path walks sibling pairs, including borrowed entries. Please exercise a single owner with a live sibling prefix in the staged path on a multi-pair part before landing.
Checked: Read both commits and compared the dependency collectors and newer direct-publication changes. The Neo receipt is useful for single-pair behavior. It cannot exercise sibling-pair ordering. Separate the telemetry change or show its effect on completion-to-kick latency and idle power, as previously requested. Remove the PR body attribution on the forward update.
|
@DjDeveloperr: stale-PR closeout. This is about 2.7k commits behind and conflicts with the #2955 M5 direct path. Everything that is open, in one list:
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
@DjDeveloperr closing this as stale. The 11-29 consolidated list got no reply. Getting this onto current |
Summary
Two small, self-contained G17 runtime scheduling improvements (3 files,
+70/-14) targeting host-side render-publication serialization and completion-to-kick latency on non-M5 G17 GPUs (G17P/G17S/G17C/G17D):drm/asahi: g17: allow direct render publication for compute-prefixed and staged renders(0a3ac24f1a53)tiling_wait_through[1]andwait_through[1]) insideFirmware::lend_render()and extendsPair::own_dependencies()to collectrender_tilingandtilingprefixes for staged renders, matchingRegistry::render_dependencies().render_direct()to the global device mutex for compute-prefixed and staged renders. Unpublished compute prefixes still returnEAGAIN(Ok(None)) and fall back cleanly to the device-mutex path; M5 continues to use the device-mutex path because its host-port transaction is part of publication.drm/asahi: g17: drain firmware telemetry reports after signaling completions on all G17(2e05a592717c)is_m5()gate around post-signalfirmware.drain_reports()so trace/statistics ring draining and power-register reads always run afterdeferred.finish()signals DMA fences across all G17 parts.Verification
Matched single-module A/B boot test on physical MacBook Neo (
J700, Apple A18 Pro /T8140/G17P B1) runningneokit-7.3.0.n2607awith Borealis (Mesa 26.3.0-devel,git-d4ad4a4dce):aurora-base.kobuilt from24dc422773c9b(sha256: 09c313dd52e0...)aurora-k4k5.kobuilt from2e05a592717ce(sha256: 17f88b5bb3fa...)Correctness & Stress (
gpubench-stress-vk, 60 s budget per arm)5/5PASS (0failures,0errors,0late frames) acrossxq.order,xq.chain,cr.concurrent,sync.dense, andrender.first:xq.chain:136.5Mverified checks onB-k4k5,max_chain_ms12.26 -> 11.18 ms(-8.8%)cr.concurrent:88,723checks,max_latency_ms22.19 -> 18.40 ms(-17.1%)sync.dense:1,209 -> 1,230rounds (+1.7%,472,320fences waited)render.first:77 -> 87iterations (+13.0%),max_first_frame_ms17.63 -> 17.04 ms0xf701/0xf702 = 30 00on every boot and clean restore to7.3.0-41.fc44.aurora.aarch64.gpubench-vkPass-Overlap & Concurrent Compute/Render A/B (G17P B1, median us)aurora-base.ko(24dc4227)aurora-k4k5.ko(2e05a592)overlap.passes kind=async_crbarrier_penalty_us21.344.37-79.5%overlap.passes kind=async_crbarrier_us987.65945.63-4.26%overlap.passes kind=async_crnobarrier_us966.31941.25-2.59%overlap.passes kind=render_renderbarrier_penalty_us18.9216.92-10.6%overlap.passes kind=render_renderbarrier_us676.82658.98-2.64%overlap.passes kind=render_rendernobarrier_us657.89642.05-2.41%overlap.passes kind=comp_renderbarrier_penalty_us17.2815.87-8.1%overlap.passes kind=comp_compbarrier_us1190.481190.480.00%concurrent.cr mode=queues d=4compute_alone_us1286.171238.39-3.72%concurrent.cr mode=queues d=4render_alone_us657.89631.91-3.95%concurrent.cr mode=queues d=4compute_conc_us1851.851785.71-3.57%concurrent.cr mode=queues d=4render_conc_us2116.402040.82-3.57%Assisted-by: LLM (Antigravity:Gemini 4 Neon)