Repository navigation
drm/asahi: g16 + shared SUBMIT: Wave 6 R2 — demand-grown 32 render slots / 18 compute units, fast SUBMIT path, stamp-only barriers, and batched render release - #2826
Conversation
|
Review at ac4f4cc.
|
|
Three additions to the review above (same head, ac4f4cc), not covered there:
Assisted-by: LLM (Claude:Opus 5.5) |
ac4f4cc to
f631683
Compare
|
@RyanTheTide Thanks for the detailed review — pushed Wave 6 R2 (
(Note: I also saw your three addendum items in Assisted-by: LLM (Gemini:4 Neon) |
|
Re-checked at f631683 against both reviews at ac4f4cc. Fixed:
Still open:
New in this revision, minor:
Assisted-by: LLM (Claude:Opus 5.5) |
f631683 to
993edd6
Compare
|
Re-checked at 993edd6 against the f631683 re-check. Fixed:
Still open:
Assisted-by: LLM (Claude:Opus 5.5) |
993edd6 to
ec6afbe
Compare
|
@RyanTheTide Thanks for catching that (
Assisted-by: LLM (Gemini:4 Neon) |
|
Re-checked at ec6afbe. Against 993edd6, the only change is the Fixed:
Still open, rows only:
Assisted-by: LLM (Claude:Opus 5.5) |
|
Exact-head
Assisted-by: LLM (Gemini:4 Neon) |
|
Thanks, the J773g refresh at ec6afbe closes that item: 2.12M job commands with no kernel bugs, CTS 233/0 including the sync2 and multi-queue slices, gpubench CRC-clean and 3/3 S2R. Left: the J713 smoke and a SUBMIT smoke on the other generations the shared file.rs path reaches (G13/G14, G15, G17). We'll run those ourselves: one kernel with this PR and #2852 on the current fleet base, booted as a one-shot on the M4 Air, M2, M3 Air and Neo, with mustpass-short, the sync/multi-queue slices and a desktop session per machine. I'll post the rows here. Assisted-by: LLM (Claude:Opus 5.5) |
|
Follow-up from a non-author pass over the stack at 1b85b1e. The demand-grown tiers in f6f17f0 work as written, but on a running system the "steady single-pass clients stay on the two base pass slots" claim ( The shared files in this PR ( One concrete break in this PR: 0ae38e8 gives Assisted-by: LLM (Claude:Opus 5.5) |
ec6afbe to
cff1485
Compare
5610a84 to
87fdefd
Compare
|
@RyanTheTide Rebased Point-by-point fixes
Verification
Assisted-by: LLM (Gemini:4 Neon) |
…ll overhead Pipelined submissions previously never retired completed flights inside submit_locked(), forcing a workqueue round-trip whenever in-flight slots filled and producing hold[0] stalls and 300-500 us tail bubbles. At the same time, every EP 0x20 interrupt triggered full housekeeping in submit_locked(), every publish_checked() ran Session::check() (including the cross-core UAT handoff lock and full TTB scan), every TA (0x70) completion triggered a 50 us EVENT_RETIRE_POLLS busy-spin while FS was still running, every retire_once() polled all nine log sub-rings and the trace ring, and retired timestamps were re-read from WC memory for both accounting and empty timestamp outputs. Deferring the full Session::check() checks (ASC_RUN, pstate > top, and check_adopted_bindings()) to the 1 ms housekeeping tick is safe because: - publish_checked() still runs Session::transport() on every submit so RTKit crashes and latched transport errors stop publication immediately; - host VM bind/unbind updates ttbs[slot] and owned_user_roots[slot] atomically under uat.inner.lock() before submit/publish, so check_adopted_bindings() detects only unexpected firmware/external TTBAT corruption rather than normal host binding races; - the host never writes pstate > top (policy::limit() bounds every published selector to 1..=top), avoiding per-submit PPL handoff lock contention; - full Session::check() still runs on every >=1 ms housekeeping tick, on the first submit after >=1 ms idle, and whenever recovery_pending() is true. Fix the hot submit and retirement paths: - Eagerly retire completed flights inside submit_locked() when an EP 0x20 event arrived, housekeeping/recovery is due, or the oldest flight's terminal fw_stamp has reached its target, leaving evented cleared when work retires so queued poll work does not spin. - Separate 1 ms housekeeping (Session::check, object health, power, auxiliary log/trace ring drain) from per-submit fast publication, using Session::transport() in publish_checked(). - Track fragment completion events (0x71) alongside stage events so TA-only (0x70) interrupts do not trigger receipt-tail busy-spins or short-repoll storms while FS is still executing, and step the initial receipt-tail backoff from 1 us -> 2 us -> 5 us. - Split channel draining into fast event+stats draining on retirement and auxiliary log/trace draining on 1 ms housekeeping, skip ktime_get() on empty event rings, reuse retired_snapshot() GPU ticks in stat_retire(), and skip WC timestamp reads when timestamp_outputs is empty. Signed-off-by: Diljit Singh <[email protected]>
…ork writes With RENDER_SLOTS = 8, render pipelining capped out at 7 in-flight passes (stalling depth 8 and 16 workloads), while each render pass recomputed Geometry::new() three times and rewrote the untouched zero middle gaps of both ta_work (0x360..0x740, 992 bytes) and fs_work (0x460..0x780, 800 bytes) into write-combining memory on every clean same-VM reuse. Both WORK_STRIDE and RENDER_SLOTS are host client-VA layout choices rather than firmware bounds: firmware receives explicit 64-bit VAs for each pass object rather than indexing by stride. Each pass slot spans +0x0..+0x1c00000 (28 MiB: TILEMAP at +0x1400000 plus 8 MiB TILEMAP_SIZE), which rounds to a 32 MiB power-of-two stride (4 MiB guard) and yields 16 slots inside the 512 MiB window 0x7020000000..0x7040000000 (matching COMPUTE_UNITS = 16). - Halve WORK_STRIDE / PASS_STRIDE from 64 MiB to 32 MiB and expand RENDER_SLOTS from 8 to 16 inside the existing 0x7020000000..0x7040000000 window, raising pipelined render depth from 7 to 15. - Keep full 16 MiB TPC / 8 MiB tilemap capacity on the two base pass slots (0..BASE_RENDER_SLOTS) and size extension slots (2..16) to 2 MiB TPC / 1 MiB tilemap so bursting VMs support 15 concurrent passes up to 4K multi-layer and 8K without inflating per-VM RAM. - Track RenderOwners::last_full (mirroring ComputeOwners::last_full) and write only the active head and tail spans of ta_work and fs_work on clean same-VM reuse, saving 1,792 bytes of WC writes per render pass while full-scrub claims still write the complete images. - Compute render Geometry once per publication and update only layer_metadata after claiming the pass slot. Signed-off-by: Diljit Singh <[email protected]>
Every SUBMIT ioctl currently takes 10-40 separate gpuvm.lock_inner() holds across command root validation, attachment checks, and per-record stream-gate walks, decodes the command stream twice, calls ktime_get() on every submit even after extension arenas are allocated, and unconditionally notifies the standby condvar even with zero waiters. - Batch page-aligned VM range checks in g16/command.rs through a 48-entry stack SpanBatch calling vm.covers_ranges_batch() once per render or compute command, preserving exact per-span EINVAL/ENOENT/EACCES error reporting on failure. - Collapse command::prepare()'s two stream decode passes into one. - Reuse page coverage across 256-byte window cache hits in g16/gate.rs instead of calling cover() on every record in the same page. - Skip ktime_get() burst tracking in g16/resources.rs once extension arenas are already allocated, and skip standby_available.notify_all() when no waiter is blocked. - Add a host unit test in test-stream-gate.py verifying window-cached coverage reuse. Signed-off-by: Diljit Singh <[email protected]>
…s-engine barriers Previously, G16 serialized compute and render work strictly: can_queue_behind() rejected any mixed-class overlap, Order::ready() forced cross-engine dependencies to wait for full host retirement, and poll.rs only retired flights[0], leaving the compute and TA/FS hardware pipelines unable to overlap. Enable concurrent same-VM compute and render flights with per-class retirement, per-class hang deadlines, drain fairness, and hardware ring barriers: - Allow healthy same-VM non-InitBM compute and render commands to queue concurrently up to their respective per-class flight caps, while preserving cross-VM, InitBM, and query_access serialization. - Gate alt-class fallback selection on !needs_engine_drain(&job) so class-cap overlap runs concurrently on primed same-VM queues while drain-requiring head jobs (unprimed same-VM InitBM render, cross-VM switch, failed VM, or doomed/recovery/InitBM flight in progress) are never starved; advance queue fairness turns only after publish_prefix() succeeds so transient EAGAIN does not burn a turn. - Emit hardware Hold ring barriers for same-queue cross-engine dependencies (fs2c0 on the compute ring using the FS fw_stamp, and c2ta0 on the TA ring using the compute fw_stamp via a dedicated PassSlot::compute_barrier FwObject), walking all commands of a flight so multi-command compute batches resolve their exact member stamp and defer with EAGAIN if an unretired predecessor is missing. - Retire the oldest compute flight and oldest render flight independently in poll.rs, track progress and administrative/warning deadlines per class (render deadline_ns vs compute_deadline_ns) so an advancing class never masks a hung flight on the other class, and convert Job::full_retired to a 64-bit command bitmask so mixed-class jobs can retire out of class order while preserving completion proofs. - Read only the published engine's WC qstate WRITE register(s) during publication instead of touching both compute and render rings. - Add host selftests covering concurrent compute+render publication, drain fairness and EAGAIN turn preservation, fs2c0/c2ta0 barriers across multi-command flights, out-of-order per-class retirement, and independent per-class progress/timeout enforcement. Signed-off-by: Diljit Singh <[email protected]>
…rnor On depth-1 submission loops, the engine briefly drains between consecutive jobs, causing Power::report_work(false) to toggle apple_clpc_gpu_set_active() on every job boundary (triggering mod_delayed_work(..., 0) flushes in drivers/soc/apple/clpc.c even though CLPC itself already holds rails for APPLE_CLPC_HOLD_MS = 32 ms on a 4 ms sampling cadence) and forcing the utilization governor to wait a full 20 ms window before stepping up from FLOOR. Add short 2 ms CLPC idle-hold hysteresis and an asymmetric 5 ms fast-ramp upward path to the G16 power governor: - Hold the CLPC active hint for 2 ms (CLPC_IDLE_HOLD_NS, half of clpc.c's APPLE_CLPC_SAMPLE_MS = 4 ms) across brief sub-ms depth-1 inter-job gaps via policy::ClpcHold, releasing it from service_power() once expired and re-arming run_poll() while held idle. This suppresses redundant mod_delayed_work flushes without holding across 60 Hz (16.67 ms) or 120 Hz (8.33 ms) frames. - Release CLPC immediately via Power::release_clpc_now() on fail-stop (fail_flights) and system sleep commit (sleep_down). - Add a 5 ms upward-only ramp window (RAMP_WINDOW_NS = SAMPLE_NS, aligned with the existing PMP sampling cadence) and ramp_demand() matching demand()'s upward thresholds (>= 70% -> top, >= 40% -> +1) so sustained bursts reach top within 5 ms while light 60 Hz desktop frames stay near FLOOR and 20 ms slow decay is preserved. Clamp stored Governor::demand to the active thermal/user limit on the fast-ramp path so cooling relaxation steps cleanly instead of jumping. - Add unit tests in g16/power/policy.rs and wiring checks in test-thermal-policy.py covering fast ramp, 60 Hz non-pumping, decay preservation, clamped cooling ceilings, and CLPC idle-hold expiry/reset. Signed-off-by: Diljit Singh <[email protected]>
Every render pass claim previously ran PassSlot::scrub() synchronously while holding the device mutex (Shared::state), stalling concurrent submissions and retirement behind WC tilemap/heap/preemption zeroing. Move clean same-VM pass slot scrubbing outside Shared::state with a race-free synchronous fallback: - Record clean render retirements in Slots::note_render_retired() and stage remaining idle displaced, cleanly retired render pass slots (never Published or undisplaced Retired slots) right before dropping Shared::state via stage_and_take_scrubs(), only when the engine is neither failed nor frozen. Staging after publication avoids self-blocking immediate slot reuse within the same lock hold and skips staging on pure compute workloads. - Run staged scrubs in run_poll(), submit(), and try_submit_inline() after dropping Shared::state and after signalling retired completion fences via job::complete_all(). - Coordinate slot selection (pass_available, pick_pass, pick_pass_in) and off-lock scrub completion via SeqCst scrubbing/waiter atomics so in-flight scrubbing slots are skipped, pre-cleaned slots are preferred, and blocked waiters trigger an immediate poll_now(). - Skip synchronous WC fills in claim_pass_in()/claim_pass_for() when a same-VM slot was pre-cleaned, while falling back synchronously on first use, cross-VM switch, recovery invalidation, error/cancel, or any failed/dropped off-lock scrub. - Wait for active off-lock scrubs to drain in sleep_quiet() before entering system sleep. - Add host selftests in test-resources.py covering displaced-only staging, post-publish staging without blocking immediate reuse, off-lock scrub + zero-fill claim, waiter wakeup, dropped batch cleanup, and synchronous fallback on error/recovery/cross-VM. Signed-off-by: Diljit Singh <[email protected]>
…imelines off-lock Ready submissions with already-signalled inputs previously still allocated and armed a drm_sched job and woke the scheduler kworker even when inline publication succeeded, and `try_submit_inline()` used `try_lock()` on `Shared::state`, bouncing bursts during brief poll-lock windows onto `drm_sched` wakeups and causing 350-520 us gap95 tail stalls on multi-depth workloads. In addition, `Timeline::complete()` held `Timeline::pending` across `dma_fence_signal()` callbacks. Bypass `drm_sched` allocation and kworker wakeup in `Scheduler::push()` when `prev_started` is true and `Job::try_start_inline()` succeeds, rolling back `accepted` and falling through to `drm_sched` otherwise. Track active firmware recovery in `Shared::recovering` (guarded via RAII in `Firmware::recover()`) so `Shared::try_submit_inline()` can bail out only during sleep or recovery and otherwise acquire `Shared::state` directly. Finally, split `Timeline::complete()` so ready head fences are drained in fixed stack batches under `signaller -> pending` and signalled without holding `Timeline::pending`. Extend `test-job-failure.py` and `test-fence-signalling.py` to cover `Scheduler::push()` inline bypass/fallback rollback, recovery bailout, and off-pending FIFO batch signalling. Signed-off-by: Diljit Singh <[email protected]>
Mirror the G15 logical-queue contract on G16: - Add params::queue_limits() (max_queues = MAX_QUEUES = 58, max_in_flight_per_queue = FLIGHTS = 32) and return it from Gpu::queue_limits(), which enables DRM_ASAHI_FEATURE_INDEPENDENT_QUEUES and DRM_ASAHI_PARAM_GROUP_QUEUE_LIMITS in the shared frontend. - Track live logical queues per open DRM file in usage::Client via an RAII QueueCredit guard (ENOSPC at MAX_QUEUES), stored after Scheduler in Queue so capacity returns only after scheduler drain. Because G16 logical queues own no firmware execution contexts, keeping QueueCredit per-file while file.rs enforces per-process queue_share::Share bounds ensures a client that opens MAX_QUEUES queues cannot starve a later process (such as a compositor) from creating its own queue. - Extend test-publication.py and usage.rs unit tests to cover queue limits, INDEPENDENT_QUEUES, per-file QueueCredit isolation and release, and multi-queue compute+render concurrency on one VM. Signed-off-by: Diljit Singh <[email protected]>
Allow compute-only barrier-free command runs within a job and across consecutive ready compute-only jobs on the same queue and VM to share one firmware publication and one doorbell, bounded by free compute units, available compute ring slots, and the compute flight budget. Each batched compute member claims its own hardware compute unit, writes its own submitted counter before the shared barrier, and records its own completion stamp and work descriptor so retirement verifies every claimed unit receipt, publishes timestamps for every grouped job, and lets cross-engine waits and firmware recovery snapshots resolve interior stamps. Signed-off-by: Diljit Singh <[email protected]>
…er validation Vm::read_lock() previously called lock_vm(&self.gpuvm, None, false), which allocates a KBox<drm_gpuvm_exec>, runs drm_exec_init() (allocating a page-sized object array), and locks every external BO reservation on the VM (O(external BOs)) on every G16/G15 SUBMIT. Because every mapping mutation in mmu.rs holds the VM's shared reservation, read-only page-table coverage walks and user-memory copies need only self.gpuvm.lock_inner(), matching covers_ranges_batch(): 1. Back VmReadGuard<'a> with GpuVmInnerGuard<'a, VmInner> via self.gpuvm.lock_inner(), eliminating the per-SUBMIT KBox, drm_exec object-array allocation, and O(external BOs) lock walk. 2. In G16 Prepared::validate(), validate render VM spans and VDM root barriers under one Vm::read_lock() hold via SpanBatch::flush_locked() and gate::vdm_batch_locked(). 3. Minimize PoC cache maintenance (dc civac + dsb sy) in G16 stream gates: read only 4 bytes (1 cache line) for single-pass VDM roots and clamp CDM root-stream window reads to the validated root end. Signed-off-by: Diljit Singh <[email protected]>
… slot is quarantined Fresh user VMs start with only BASE_COMPUTE_UNITS (2) compute units and BASE_RENDER_SLOTS (2) render pass slots, allocating extension slots lazily on bursts, overlap, or multi-pass submits. After a hang recovery quarantines one base compute unit (0 or 1) while the other base unit is the newest-retired undisplaced owner, compute_exhausted_within(2) becomes true even though 14+ extension compute units remain healthy. Every subsequent fresh single-command compute client then submits with only 2 units, hits compute_exhausted_within(2) in engine publication, and fails immediately with ECANCELED without ever running on an extension unit to displace the surviving base unit. The same deadlock occurs for fresh single-pass render clients when a base pass slot is quarantined. Track base-slot quarantine state in Lifetime::any_quarantined_within(), publish lockless hints on Shared whenever Slots::quarantine() runs, and pass them via PrepareHints into Cache::prepare() so fresh VMs expand compute_ext / render_ext immediately once a base slot is quarantined. Add host unit tests covering both compute and render base-slot quarantine recovery and displacement. Signed-off-by: Diljit Singh <[email protected]>
Avoid per-SUBMIT heap allocations without placing a large command buffer on the kernel stack across queue.lock().submit() or holding the queue mutex across userspace copies: - Store a reusable KVec<u8> staging buffer on TableQueue (retained up to 4096 bytes between submissions, releasing oversized buffers on completion or error). - Take the cached KVec<u8> out of TableQueue under a brief queue.lock(), drop the queue mutex before copy_from_user() and SyncItem::parse_array() (preventing queue.lock() -> mmap_lock lock-order inversion), then re-acquire queue.lock() only for inner.submit() and returning the cleared buffer (or return on early error). - Read drm_asahi_sync entries in 8-entry (128-byte) stack chunks rather than issuing a separate copy_from_user per sync. - Preserve the pre-syncobj failure boundary on guarded (G16/G17) paths by snapshotting the command buffer before resolving output syncobjs, and keep parsing syncs first on unguarded paths. Signed-off-by: Diljit Singh <[email protected]>
…ender hangs Physical render PB/UMA allocators (hardware UMA slot 33) were previously capped at two fixed slots (parameter_id 0 and 1). Once both slots had been used across VMs (for example compositor plus benchmark), a single render hang on the active slot called pools.invalidate() and pools.quarantine_flight(), leaving the other slot undisplaced and immediately tripping Pools::exhausted() -> render_failed=1, degraded=1, and device wedged even with 14+ healthy render pass slots remaining. Expand the client-VA render allocator window to PB_SLOTS = 6 (parameter_id 0..6 in a 64 MiB stride across 0x7008000000..0x7020000000, disjoint from base compute units, render pass slots, dynamic PB page lists, and extension compute units). Keep non-fault VMs at BASE_PB_SLOTS = 2 with zero extra RAM overhead; lazily allocate per-slot PoolExtArena recovery allocators sharing the VM's existing PB heap only after a render hang quarantines an allocator slot, signaled locklessly via Shared::needed_pb_slots. Generalize Pools selection, displacement, and exhaustion checks to PB_SLOTS while preserving the two-slot working set in normal cross-VM switching and per-job limit checks (pick_slot_within / can_pipeline_within / exhausted_for_within) so pre-hang jobs cancel cleanly instead of spinning on EAGAIN. Add host unit tests covering the exact cross-VM single-render-hang recovery and survivor displacement path, multi-hang survival up to four quarantines, and clean exhaustion at the slot limit. Signed-off-by: Diljit Singh <[email protected]>
When multiple render commands are batched into a single G16 flight, engine publication previously called commit_render() once, leaving (f.renders - 1) standby PB reservations held until Prepared::drop on the deferred cleanup worker. Pass f.renders to commit_render() so all published render commands release their standby reservations immediately upon firmware visibility. Signed-off-by: Diljit Singh <[email protected]>
…dle power Address adversarial review findings and idle power regressions across the pipelined G16 submission stack: - Replace single-entry last_retired with a 64-entry per-stage RetiredStamps ring recording every retired compute/TA/FS member so late recovery snapshots after pipelined bursts still resolve safely. - Use Firmware::compute_ticks() in publish_timestamps() so 26B123 work_ticks fallback works for client timestamp queries as well as stats. - Retain base RenderArena alongside PoolExtArena in PbOwnerArena::Ext so shared PB heap mappings outlive Cache::close() until displacement. - Track queued drm_sched jobs via Scheduler::pending_sched counter instead of per-push Arc allocations or retaining Arc<Job>, ensuring VmJobGuard drops immediately on completion. - Remove dead recovering check under Shared::state in try_submit_inline() and ensure retire_oldest() forgets failed-stop flights on every early return. - Extract Shared::arm_idle_power_poll() across all three idle-exit paths, call power.report_work(false) on drain, and gate syncobj_wait_hint on a G17-style 8-submit burst streak with 8 ms auto-expiry. Signed-off-by: Diljit Singh <[email protected]>
Match the VmReadGuard<'a> lifetime introduced when switching VM_BIND gate reads to the VM reservation lock so asahi-g15/run.py builds and passes all host tests. Signed-off-by: Diljit Singh <[email protected]>
87fdefd to
c2c0085
Compare
cff1485 to
6bc1ca4
Compare
Bring in main through the updated base. Conflicts: - g16/gate.rs, test-stream-gate.py: main lets a VDM root carry the USC cache invalidate (VDM_USC_INVALIDATE). vdm_batch(), which replaces vdm() here, now admits it too, and the root-barrier test checks both words through vdm_batch(). - usage.rs: Client keeps the logical queue credit next to main's NUM_ENGINES-sized engine ledger. - g16/params.rs: the module comment lists VDM_USC_INVALIDATE with the features this series advertises. Signed-off-by: Diljit Singh <[email protected]>
Bring in main through the updated base. Conflicts: - g16/gate.rs, test-stream-gate.py: the base's vdm_batch() admits the VDM root with or without the USC cache invalidate. Keep this series' vdm_batch_locked() with that check, and test both words through vdm_check(). - g15/gate.rs: main's USC cache invalidate admission together with this series' VmReadGuard<'_> lifetimes. Signed-off-by: Diljit Singh <[email protected]>
Slots::publish() takes its claims as &mut Claims. Five render-slot cases still passed &Claims, so check-resources.rs no longer compiled and the asahi-m4 suite failed at test-resources.py. Signed-off-by: Diljit Singh <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Verdict at Blockers:
Checked: this PR's own commits against its base; the chunked sync read in |
What: G16 (M4) and shared SUBMIT work, stacked on #2787: no-op publish skipping and batched event drains, off-lock pass scrubbing, demand-grown 32 render pass slots and 18 compute units, one-pass SUBMIT parsing with batched CDM gate locking, stamp-only same-VM barriers,
VmReadGuardon the VM reservation lock, reused per-queue SUBMIT staging buffers and bulk sync reads, and the full batched render release.Tested: M4 Mac mini (J773g, G16G B0, 26B123) on an earlier head of this branch, not the current one: vk-mustpass-short 87/87, sampled synchronization and memory_model CTS with 0 failures, 44 gpubench-vk rows with 0 CRC failures, recovery and post-recovery CTS. Host tests 25/25.
Risk: two-way · M4, plus every Mac for the shared SUBMIT parsing in
file.rsand themmu.rsread guardNot yet: a row at the current head (the branch was rebuilt after the rows above); one row on a non-M4 Mac for the shared
file.rs/mmu.rschanges; CI, which runs once the base lands and this PR targetsmain.Details (original description)
Summary
Eight-commit Wave 6 R2 (
f63168347300c) series stacked cleanly on#2787(djdev/g16-perf-wave2-5at5610a84b974e5):882a01ec1cd14drm/asahi: g16: skip no-op publishes, batch event ring drains, and smooth receipt-tail backoff3a970ce516736drm/asahi: g16: offload displaced render pass scrubbing to an unbound workqueue594a723798f0cdrm/asahi: g16: expand render pass slots to 32 in demand-grown tiers and compute units to 185d6bef0371307drm/asahi: g16: parse SUBMIT streams in one pass, batch CDM gate locking, and synchronize resnap086fda9437006drm/asahi: g16: use stamp-only cross-engine barriers for same-VM non-InitBM handoffs11fb7fab68da5drm/asahi: use VM reservation lock for VmReadGuard and merge G16 render validation(sharedmmu.rs+ G15/G16)b60cdb650c6f6drm/asahi: reuse per-queue SUBMIT cmdbuf staging and bulk-read syncs(sharedfile.rsacross generations)f63168347300cdrm/asahi: g16: release full batched render count in commit_render()Verification (exact head
f63168347300c)Host checks
scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES:0 errors, 0 warnings, 0 checksacross all 8 commits.run-host-tests.py:25 / 25PASS.Live hardware (
Apple M4 (G16G B0),J773g/T8132, Linux 7.3.0,26B123firmware)900Pass /1,687NotSupported /0Fail /0Crash /0Timeout /0GPU errors):vk-mustpass-short:87 / 87PASSdEQP-VK.synchronization.*(1,500strided of64,872):664Pass /836NS /0FaildEQP-VK.memory_model.*(1,000strided of18,530):149Pass /851NS /0Failtype0: fs2c 13873 c2ta 20506(0faults).gpubench-vk(0CRC/status fails across 44 rows,pb: bad 0): 24-row 4K@120Hz + 4overlap.passes+ 6render.postfx+ 2compress.bw array+ 8render.deferred.rc=0across all concurrent and fresh post-hang workloads):wait_rc=-4,555.9 ms,recoveries 2 -> 3,compute_owners: retired 16 quarantined 2 reusable 15): concurrentrender.heavy d=4rc=0(33,606submits,252.02 usvs249.58 usclean), immediate freshd=1compute.heavy/compute.light/render.heavyallrc=0,0ECANCELED.wait_rc=-4,120.8 ms,recoveries 3 -> 4,render_owners: retired 30 quarantined 2 reusable 29,render_failed=0,degraded=0,pb: bad 0): concurrentcompute.heavy d=4rc=0(16,175submits,550.05 usvs547.45 usclean), immediate freshd=1render.heavy/render.postfx(CRC 668d6f0a)/compute.heavyallrc=0,0ECANCELED.vk-mustpass-short:87 / 87PASS,0kernelBUG/WARN/Oops/wedged.rtcwake -d /dev/rtc1 -m mem -s 15):apple-sleep: back from sleep, boot object resumes 0 -> 1,pcie-appleport 0 & 2 link restored,ZERO_S2R_ERRORS, post-wakevk-mustpass-short87 / 87PASS.