Skip to content

drm/asahi: g17: enable direct compute submission on M5 and coalesce event locks - #2947

Merged
4 commits merged into
mainfrom
perf/asahi-g17-m5-direct-compute
Nov 25, 2026
Merged

4 commits merged into
mainfrom
perf/asahi-g17-m5-direct-compute

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What: M5 (G17S/G17C/G17D) compute shares the per-priority outer work ring with render, so compute_direct() returned None and every steady-state M5 compute submission went through the global device mutex (shared.state). This adds a port-level Port::m5_outer mutex plus direct credit and history views and enables steady-state direct compute on M5, then coalesces event-worker device-lock holds and throttles M5 report drains to the 1 ms housekeeping cadence while work is in flight. Commit 2 overlaps #2909 at the drain_reports() call site.

Tested: J714s M5 Pro (G17S B1): direct compute path live (direct_submissions = 696,465), 0 oops, 0 GPU faults; light compute (d=4) −12.2 % submit latency, light clear (d=4) −6.7 %, occlusion query (d=16) −5.2 %. asahi KUnit 275/275 pass; full arm64 LLVM build on integration/aurora b10280c04c2d + this series.

Risk: two-way · M5 family; the event-worker lock coalescing and the report-drain throttle are shared G17 code and also run on Neo (G17P).

Not yet: Neo (G17P) at this head (its last row predates the main merge), M5 (J813), M5 Max (J716C) and M5 Ultra (J775D) not run.

After the main merge (11-25, main a73023bc5f1f): the report drain: main now drains the trace and statistics reports after signalling on every G17 (#2909), so the throttled post-signal drain covers every G17 and the M5-only drain_post_signal_reports() helper is gone.

Details
  1. Enable direct compute submission on M5 (G17S/G17C/G17D):

    • Previously compute_direct() returned None unconditionally on M5 because M5 compute shares the per-priority outer work ring with render and issues host-port gating and submission-history updates, forcing every steady-state M5 compute submission through the global device mutex (shared.state).
    • Add a dedicated port-level M5 outer-ring mutex (Port::m5_outer) ordered strictly after the compute queue cell and render publication lock (device mutex -> compute cell -> port.render -> port.m5_outer -> port.qos/mailbox), add non-interfering direct credit consumption (OuterCredits::is_scoped() / consume_direct()) plus direct port views for M5's shared outer ring and submission-history table, guard device-mutex M5 outer-ring publications with m5_outer_lock(), reset cached history geometry on recovery restart, and enable steady-state M5 compute_direct().
    • Extend KUnit coverage with asahi_g17_outer_credit verifying direct credit consumption alongside OuterScope.
  2. Throttle report drains and coalesce event-worker device locks:

Commit 2 touches the drain_reports() call site in drivers/gpu/drm/asahi/g17/runtime/events.rs, which #2909 also changed; the main merge reconciles the two.

Evidence
  • Host / build checks:
    • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks on both commits.
    • Full ARM64 LLVM cross-build on integration/aurora (b10280c04c2d) + this series (tree b5e76304ea2d): vmlinux, Image, aurora.ko, and 1774 modules built and linked cleanly.
    • asahi KUnit suite: 275/275 PASS (including new asahi_g17_outer_credit).
  • Bare-metal Apple M5 Pro (J714s / G17S B1):
    • Live direct compute path via /sys/kernel/debug/aurora-g17/power: direct_submissions = 696,465, 0 oops, 0 GPU faults.
    • Light compute (depth 4): -12.2% submit latency; heavy ALU compute (depth 1): 412.54 us; light clear (depth 4): -6.7%; occlusion query (depth 16): -5.2%.

@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.

FOLLOW-UP · source review of e07a4facfb7a

The patch adds concurrency between direct compute publication, locked render publication and event processing. The credit test is sequential, and the direct-submission counter shows the fast path was hit but not that the publishers contended while recovery or suspend was draining builders. Please add a mixed render/compute row covering ring wrap and a generation change with a queued claim. The report-drain change overlaps #2909, so qualify that ordering on the combined head and record whether report cadence changes completion or recovery behavior.

Verification here was by source inspection.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@DjDeveloperr Could you reconcile the report ordering with #2909 and test the combined head on M5? Git merge-tree confirms a content conflict in drivers/gpu/drm/asahi/g17/runtime/events.rs between e07a4facfb7a and 99b0b4cd5fea. The requested row is mixed render/compute across ring wrap and a generation change with a queued claim, including completion and recovery behavior under the combined report cadence. The Airs lack the M5 shared outer-ring path.

@DjDeveloperr

DjDeveloperr commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

R2 pushed at 344d6a96141a (rebased onto origin/integration/aurora a4b51cdff0a7), addressing @RyanTheTide's follow-up items:

  1. Report-drain ordering reconciled with drm/asahi: g17: signal G17P completions before draining reports; skip the core power read on back-to-back work #2909: Factored post-signal report draining behind Firmware::drain_post_signal_reports() and restored draining before service_runtime_recovery() on recovery passes (without double-draining in housekeeping), preserving pre-recovery trace/statistics rings identically to both integration/aurora and drm/asahi: g17: signal G17P completions before draining reports; skip the core power read on back-to-back work #2909 while keeping steady-state in-flight drains throttled to HOUSEKEEPING_NS (1 ms). Composing with drm/asahi: g17: signal G17P completions before draining reports; skip the core power read on back-to-back work #2909 is now a single-line removal of the is_m5() check inside drain_post_signal_reports().
  2. Mixed render/compute wrap + generation-change concurrency tests: Extended asahi_g17_outer_credit KUnit coverage (mixed_render_compute_wrap_and_generation_change_with_queued_claim) and added registered host test tools/asahi/g17-m5-direct-compute-tests.py covering interleaved 1-slot compute / 2-slot render ring wrap, exact capacity boundaries, queued claims dropped across a generation change, multi-threaded direct vs OuterScope contention, and post-signal/pre-recovery report-drain ordering (with mutation negative controls).

Verification: python3 -I tools/asahi/run-host-tests.py --only g17 (94/94 pass, including 4/4 for g17-m5-direct-compute-tests) and checkpatch.pl --strict (0 errors). Live G17S B1 hardware re-qualification on the combined head will follow once the current M5 hardware session completes.

@DjDeveloperr

DjDeveloperr commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Hardware qualification update on Apple M5 Pro (G17S B1, aurora-j714s) against head 344d6a96141a047661cb9c60b12fb67659935a30 (tested in the 7.3.0-m5-cdirect3 integration kernel, aurora.ko build-id e3349bdbf2d1cf365fbb71c10fb9490c8dee8e20, with Mesa origin/aurora-wip efabab3850, MESA_SHADER_CACHE_DISABLE=1):

  • Boot & Stability: Clean boot to desktop (Wi-Fi, Bluetooth, Wayland compositor active); 0 kernel oops, 0 GPU faults across all test runs.
  • Vulkan CTS 1.4.7.1 (sync / barrier / compute / renderpass): 745/831 PASS, 0 failed, 86 NotSupported, 0 GPU faults:
    • dEQP-VK.synchronization.smoke.*: 12/12 PASS
    • dEQP-VK.synchronization.op.single_queue.barrier.* (400-case deterministic stride sample of 1,423): 400/400 PASS
    • dEQP-VK.synchronization.op.multi_queue.* (160-case deterministic stride sample of 12,807): 160/160 PASS
    • dEQP-VK.compute.pipeline.basic.*: 80/81 PASS, 0 failed, 1 NS
    • dEQP-VK.renderpasses.renderpass2.suballocation.attachment.* (80 cases): 66/80 PASS, 0 failed, 14 NS
    • dEQP-VK.renderpasses.renderpass{1,2}.suballocation.simple.* (18 cases): 10/18 PASS, 0 failed, 8 NS
    • dEQP-VK.renderpasses.*.simple.* (80 cases): 17/80 PASS, 0 failed, 63 NS
  • Direct Compute Observation & Kit Note: Pipelined same-queue compute overlap is active at depth 4 (negative inter-kick GPU gap -2.6 us, 0 faults, GPU reaching P13 / 1620 MHz). Note that in the 7.3.0-m5-cdirect3 kit specifically, /sys/bus/platform/devices/2220000000.memory-controller is unbound (j714s.dtb has only compatible = "apple,t6050-mcc" while the built-in apple-mcc driver only matches apple,t8132-mcc / apple,t8140-mcc / apple,t8142-mcc), and low-depth compute/render submission latencies regressed relative to 7.3.0-m5-cdirect2 (+31%..+49% at depth 1, +14%..+16% higher short-kick GPU duration); latency should be re-measured once apple-mcc binds cleanly on t6050.

On M5 (G17S/G17C/G17D), compute_direct() returned None unconditionally
because M5 compute shares the per-priority outer work ring with render
and issues host-port gating and submission-history updates. As a result,
every steady-state M5 compute submission fell back to the global device
mutex (shared.state), serializing concurrent compute queues against each
other and against the event worker.

Add a dedicated port-level M5 outer-ring mutex (Port::m5_outer) ordered
after the compute queue cell and render publication lock (device mutex
-> compute cell -> port.render -> port.m5_outer -> port.qos/mailbox),
and expose non-interfering direct credit consumption on OuterCredits
(is_scoped() / consume_direct()) plus direct port views for M5's shared
outer ring and submission-history table.

Guard device-mutex M5 compute and render outer-ring publications with
m5_outer_lock(), reset the cached history geometry on recovery restart,
and allow steady-state M5 compute submissions to publish through
compute_direct() without taking shared.state. Add a KUnit test covering
direct credit consumption alongside OuterScope.

Signed-off-by: Diljit Singh <[email protected]>
Each completion pass in run_runtime_events() / runtime_event_turn()
previously took the global device mutex (shared.state) up to five times
and ran M5 firmware.drain_reports() (trace/statistics rings plus GPU
power register reads) on every completion interrupt, even during tight
compute loops where no render mask was pending.

Coalesce the worker_deferred take and empty-batch restore into the
existing device-mutex holds, avoid dropping and immediately re-acquiring
shared.state around a no-op observe_renders() when render masks are
zero, and throttle M5 post-signal report draining
(drain_post_signal_reports()) to the HOUSEKEEPING_NS (1 ms) cadence
while work remains in flight.

On recovery passes, drain post-signal reports before
service_runtime_recovery() resets firmware rings (matching the
unthrottled post-signal ordering and #2909) without double-draining in
housekeeping. Add host tests (g17-m5-direct-compute-tests.py) covering
mixed render/compute ring wrap, generation-change queued-claim handling,
concurrent direct/scoped credit safety, and post-signal/pre-recovery
report ordering.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr force-pushed the perf/asahi-g17-m5-direct-compute branch from 344d6a9 to 9723957 Compare November 24, 2026 16:52
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 24, 2026 16:52
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 5a44dc68: ready to merge

Check Detail
CI at head ok 19 checks passed
Review ok approved by satchlj
Requested changes ok none
Hardware row at head ok comment at 5a44dc68
Conflicts ok none
PR text ok Risk: two-way · M5 family; the event-worker lock coalescing and the report-drain throttle are shared G17 code and also run on Neo (G17P).

Areas: area:gpu
Merge: gh pr merge 2947 --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.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Rebased onto main (2ba145b5e335, previously a4b51cdff0a7): 344d6a96141a → 972395780ba7.

Conflicts were all in drm/asahi: g17: enable direct compute submission on M5, from the dead-code removal merged in #2433:

  • g17/initdata/m5.rs: main removed the unused m5_policy_telemetry_word(). That removal is kept, and only this commit's new m5_history_view() is added.
  • g17/runtime.rs publish_compute_raw(): main reworded the comment on the M5 outer-ring reservation (InitData::publish_work_at). This commit moves that block below the queue checks, so the old copy is dropped as before.

Every other commit is unchanged (git range-diff: patch-identical).

Host tests: tools/asahi/run-host-tests.py --only g17 94/94 pass. scripts/checkpatch.pl --strict: 0 errors, and the same warnings as before the rebase. The full suite runs in the Host tests check.

Bring in main up to 6ec49ac (the T6050 GPU, fan and display work
and the later G17 effort, command-port and lock changes).

Conflicts:
- drivers/gpu/drm/asahi/g17/initdata/m5.rs: main added
  set_m5_policy_layouts() where this branch adds m5_history_view();
  both are kept. main also reads the M5 submission-history fields
  through the loaded firmware build's status-config relocation instead
  of fixed 26A428 offsets, so m5_history_view() now takes its
  generation, geometry and slot addresses from the same relocation as
  note_m5_submission_history().
- tools/asahi/run-host-tests.py: both sides register a new g17 test;
  both are kept.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Merged current main (6ec49ac74755) in, now at d10e12acc8f6: the conflict in g17/initdata/m5.rs is resolved by having m5_history_view() read the history fields through the firmware build's status-config relocation, as note_m5_submission_history() on main does. tools/asahi/run-host-tests.py --only g17: 97/97 pass; kernel build and hardware row at this head still to do.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Blocking finding (1): don't merge this PR by itself. Land it through #2955, which already has the fix.

  1. drivers/gpu/drm/asahi/g17/runtime/events.rs:598 (at d10e12acc8f6): the new if masks != [0; 2] skips observe_renders() on every pass that brings no new firmware records. Those passes are exactly the ones that finish render observations nothing else will:

    • the 1 ms rescan poll for a pair whose completion record arrived before its stamp (stamp_waiting()). observe_renders() re-arms that poll itself (render/observe.rs:193-199), so once it is skipped no further poll is queued;
    • the pass a borrower queues on return for a completion that arrived while the pair was lent (take_missed_event(), then queue_events());
    • returned pairs with a deferred error, timeout or close (apply_render_deferred() runs only there).

    In each case that render's fence waits for an unrelated render completion or for the job watchdog. This is shared G17 code, so Neo is affected too.
    Fix: #2955 already gates this on masks != [0; 2] || firmware.render_observation_needed() and adds the helper in render/observe.rs. Either move that one condition and the helper into this PR, or merge #2955 instead (it carries these commits unchanged), and GitHub will mark this PR merged with it.

Everything else in the delta is fine.

What I checked
  • The merge of main in m5_history_view(): it now uses the relocated status-config fields (M5_STATUS_CONFIG_HISTORY* via m5_status_config.relocate()) exactly as note_m5_submission_history() on main does. The result is equivalent, and it builds from the same expressions.
  • Port::m5_outer lock order and coverage: every host writer of the shared M5 ring holds it (direct compute, the device-mutex compute path, publish_render, including retained pairs). The device path calls regs.submit_m5_work_held directly, so it never re-takes the lock.
  • Credit accounting: direct reservations count in reserved[], room checks subtract them, and consume_direct never touches published[].
  • The worker_deferred take and restore on every exit of runtime_event_turn().
  • No AI attribution in the commits or the body.

To merge (via #2955):

  • a T6050 / J714s (M5 Pro) row built from this head (a batched fleet candidate that contains this head unchanged counts).
  • a T8140 / J700 (Neo, G17P) regression row at this head, because this PR changes shared G17 code that also runs on Neo.
  • CI: the only red check is host-tests, and its three failures (m3-recovery-tests, m3-recovery-tests --mutate, m3-runtime-tests) fail the same way on main itself (0c4e19df, run 45466941208). They are not from this PR. Every G17 host test passes.
  • Base: main has moved past 6ec49ac7 (now 77561654). The new commits touch none of this PR's files and the head merges cleanly, so a branch update needs no new row.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 24, 2026
@DjDeveloperr

DjDeveloperr commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Hardware row at 5a44dc68f23c (in fleet candidate b7b130a75bab): Apple M5 Pro (T6050 / J714s / G17S B1), pass

Build: fleet candidate wip/m5-wavec-fleet-candidate-20261125 at b7b130a75bab: all eight Wave C PR heads, unchanged, each with main merged in up to a73023bc5f1f. Kernel 7.3.0-m5-wavec2, built natively on the M5 (clang 22.1.8, rustc 1.98.1) with the running default's own config: make -j18 Image modules dtbs exit 0, 0 errors. Default command line (MTE on, SEP writes on). Mesa: the default Borealis 26.3.0-devel (aac82bea8e). Headless only.

Since the 11-24 row (at d10e12acc8f6): main merged in. main now drains the reports after signalling on every G17 (#2909), so the throttled post-signal drain covers every G17 and the M5-only drain_post_signal_reports() is gone.

Result:

  • Boot: 7.3.0-m5-wavec2 booted with the default command line in 29 s. Failed units: only tailscaled.service, which also fails on the default boot. 0 SELinux denials (LSMs capability,landlock). dmesg: 0 new kernel errors, and 0 GPU or DART faults, timeouts or recoveries across all runs below. Kernel lines at priority err or worse: 10, none from the GPU, all of kinds the default boot also logs (HID listeners, DCP clock index).
  • gpubench-vk (µs per submit, all ok):
    • compute.light: d1 108.0, d2 60.7, d4 28.2.
    • compute.heavy: d1 373.1 (5,755 GFLOP/s), d4 262.5 (8,182 GFLOP/s).
    • render.light: d1 128.2, d2 71.8, d4 25.8.
    • render.heavy: d1 261.4, d4 125.3.
    • sync.signal: d1 91.0 µs latency.
    • concurrent.cr: d4 overlap 1.02.
  • Vulkan CTS (deqp-runner, --deqp-surface-type=fbo), 0 fail, crash or timeout:
    • synchronization.smoke.*: 12/12.
    • synchronization2.smoke.*: 10/10.
    • compute.pipeline.basic.*: 80 pass, 1 not supported.
    • draw.renderpass.linear_interpolation.*: 12 pass, 9 not supported.
    • synchronization2.op.multi_queue.*, every 8th mustpass case (2,970 cases): 2,147 pass, 823 not supported, the same as the default kernel (7.3.0-m5-cdirect15) in the same slot.
  • GL (zink on Borealis, surfaceless; µs per submit): gpubench-gl render.light d1 143.5, d2 86.0; compute.light d1 109.5, d2 62.7; all ok.
  • Deep sleep: one RTC wake (mem_sleep deep, +28 s, Wi-Fi parked across it): entered and returned in 33.6 s, suspend_stats success 0 → 1, fail 0, same boot. After the wake the GPU is live (vulkaninfo and a dispatch). gpubench-vk compute.light d1 108.5, d4 26.9; render.light d1 128.5, d4 27.4; sync.signal d1 90.2 µs, all ok. 0 new GPU errors. The wake's err-level lines are display (DCP service matching), USB, PCIe and SD-card lines, none from the GPU.
  • GPU capacity after all runs: crashed=0, online=1; firmware_linked_render_graphs leaked=0; drained_render_pairs failures=0 out_of_service=0; 0 quarantined or awaiting-witness compute queues; 0 refusals; sync inputs converted/published 1,525/1,525. Compute channels went from 4 to 8 across compute.light and compute.heavy.
  • Restore: afterwards the M5 runs its slot-start default 7.3.0-m5-cdirect15 again: all 253 boot-partition files are byte-identical, and the kernel, Mesa and packages are unchanged. The trial modules are removed and the GPU is live.

Not run: GLES CTS (the surfaceless glcts harness problem from the 11-24 row; the GL smoke above ran). Neo (G17P) at this head. No other Mac.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Nov 24, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Neo (J700, T8140 / G17P B1) non-regression PASS at d10e12a (via Wave C fleet candidate 9ab6f78, REQ 46078bfa, covering #2947..#3035; aurora.ko sha 004e299ee9668db4, default cmdline, Stage 2 b17): exercises shared G17 submission/fence/event/port/runtime paths (M5 direct-submit paths gated off on T8140); gpubench-vk 8/8 OK (render.heavy 720p fill d1 407us/d4 260us, compute.heavy alu d1 1493us/d4 1282us, bw d1 3030us/d4 2804us), gl-smoke 32/32 + gpubench-gl 2/2 OK, dEQP-VK short CTS 30/30 PASS, s2idle 1/1 (10 s) + post-sleep GPU PASS, 0 GPU faults/timeouts/recoveries, 0 failed units, Enforcing + 0 AVC, 0 new GPU kernel errors; restored to saved fleet89.

Bring in main up to a73023b (among others the G17 submit-latency,
compute completion fast path, completion cluster and page-fault blame
work).

Conflict:
- drivers/gpu/drm/asahi/g17/runtime/events.rs: main now drains the
  trace and statistics reports after the pass's completions are
  signalled on every G17 (c56132f, from #2909), where it was M5
  only. This branch throttles that post-signal drain to the
  housekeeping cadence while work is in flight and drains first on a
  recovery pass, through drain_post_signal_reports(), which drained on
  M5 only because only M5 deferred the reports. As every G17 defers
  them now, the helper and its is_m5() check go away and the throttled
  sites call drain_reports() directly, as planned when this branch was
  reconciled with #2909. g17-m5-direct-compute-tests.py checks the
  same order under the new name.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr requested a review from a team as a code owner November 25, 2026 10:27
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) labels Nov 25, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verdict: MERGE at 5a44dc68f23c

Blockers: none

Checked: Full diff audit of drivers/gpu/drm/asahi/g17/ (initdata/m5.rs, initdata/outer_credit.rs, mod.rs, port.rs, queue/compute.rs, runtime.rs, runtime/events.rs, runtime/render.rs, runtime/render/observe.rs, runtime/render/submit.rs) plus paginated CI and J714s hardware row verification.

Evidence
  • Direct M5 compute & credit accounting: Credits::consume_direct() debits only claim.remaining and reserved[] without touching published[], leaving device-mutex OuterScope accounting intact (covered by KUnit asahi_g17_outer_credit). Port::m5_outer serializes shared outer-ring writes, submit_m5_work_held_locked, and note_m5_submission_history_locked, dropping m5_outer_guard before ringing the mailbox doorbell.
  • Report throttling & single-lock compute event turn: Shared::worker_deferred moves out of Registry, report drains run at housekeeping cadence and pre-recovery before firmware restart resets report rings, and pure-compute passes complete in one device-mutex hold when render_observation_needed() is false and no replay/housekeeping/waiters are pending.
  • CI & hardware evidence: Paginated numeric-ID check-runs 19/19 passed (0 active / 0 bad), commit statuses clean, exact-head J714s Apple M5 Pro pass row posted (wip/m5-wavec-fleet-candidate-20261125 at b7b130a75bab); unrun boards are explicitly noted in Not yet:.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Tested (J700 MacBook Neo, Apple A18 Pro / G17P B1, combined Wave C g17 kernel): PASS (correctness, boot, stability) at exact PR head 5a44dc68f23c29f1d98004838f5d6da4ec3db43a in combined tree 7bb607c48427f67f8c3cadb31aad26e017804e0d (origin/main 7c9d9adcda5a + #2947, #2955, #2969, #3024, #3036, #3023, #3025, #3035; kernel 7.3.0-neo-wavec, vmlinuz SHA-256 be56c16aa298..., aurora.ko SHA-256 bef28f236557...).

  • Host tests & boot: 215/215 g17 host tests passed on the combined tree (python3 -I tools/asahi/run-host-tests.py --only g17). Booted cleanly via one-shot grub2-reboot with default 7.3.0-41 kernel cmdline verbatim (wld0 Wi-Fi + eDP-1 display up, SELinux Enforcing, 0 failed units).
  • Vulkan CTS & correctness (7.3.0-neo-wavec, system Mesa git-d4ad4a4dce):
    • Full dEQP-VK.synchronization.timeline_semaphore.*: 2,880/2,880 Pass, 0 failures, 0 recoveries.
    • Focused compute/sync CTS (compute.pipeline.basic.*, synchronization*.smoke.*, synchronization.basic.*, timeline_semaphore subsets): 373 Pass, 7 NotSupported, 0 failures, 0 recoveries (380/380 recorded).
    • Vulkan compute CRCs: 5/5 matched (conv2d gaussian 2d55a14d / bilateral 6cdc0716, edge sobel 27c79e6d / harris 4cebadfc, stereo c62aadf9).
    • Offline Geekbench 6.7.1 Vulkan: 8/8 workloads completed, 0 validation errors.
  • Health & restore: 0 GPU faults, 0 kernel WARNs/BUGs/Oops, 0 AVC denials across boot and the full test window, 0 failed units. Restored cleanly back to 7.3.0-41.fc44.aurora.aarch64 with byte-exact /boot, ESP, /lib/modules, BLS, and grubenv verification.
  • Performance vs shipped 7.3.0-41 (note: compares origin/main + Wave C vs Nov 16 -41, not a main-only control): rt.scene raster d2 improved +19.1% (148.9 → 177.4 fps), copy.bw buf2img d1 -3.7% (1612.9 → 1552.8 µs), compute.heavy alu queues/d2 -2.0%. compute.light queue/d2 was slower vs -41 (35.1 → 47.6 µs, submit CPU 9.1 → 12.0 µs, d1 +3.3%, d4 +5.4%), and a single offline GB6 pass showed Edge +4.7% / Particle +6.2% (unconfirmed single pass); a main-only (7c9d9adc) arm is needed to separate main drift from the 8-PR stack.

@RyanTheTide RyanTheTide closed this pull request by merging all changes into main in 73a6600 Nov 25, 2026
@RyanTheTide
RyanTheTide deleted the perf/asahi-g17-m5-direct-compute branch November 27, 2026 13:21
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) blast:m5 Macs affected, from Merge risk (bot) blast:neo Macs affected, from Merge risk (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