Skip to content

drm/asahi: g18: async submit follow-ups (comment, rate limit, device cap, teardown) - #2850

Merged
Acelogic merged 2 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/g18-async-followup
Nov 23, 2026
Merged

Acelogic merged 2 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/g18-async-followup

Conversation

@sithglan

@sithglan sithglan commented Nov 22, 2026 •

Copy link
Copy Markdown

Follow-up to #2679: the four points from the review there (comment).

Changes

  1. Comment (g18/sync_input.c). dma_fence_chain_walk() unlinks the earlier points of a timeline once they have signalled. A job's inputs have all signalled when it runs, so of a timeline only the head point's own fence is checked. The comment now says that instead of "each fence is checked".
  2. Rate limit. A failed asynchronous job is reported at most once a second, with a separate line counting the failures not reported in between. With VerboseFaults set, every failure is reported, as fault_log_ratelimit() in gpu.rs does. The output fence and the queue's next submit still carry every error.
  3. Device-wide cap (hard). The device holds at most 256 jobs waiting to run, over all queues and files (DEVICE_DEPTH). The per-queue cap stays 32.
    • A submit takes a Room in JobQueue::wait_room(), under the state lock, while pending + reserved < 256. push() turns it into the job under the same lock. Dropping it on any error path gives the slot back and wakes the waiters.
    • The room is taken after wait_foreign_inputs(), so a submit waiting for another driver's fence holds no slot, but before anything is published, so a signal restarts the ioctl.
    • The bound is device-wide on purpose. One worker runs jobs in acceptance order, so a client blocked by a full device would only have waited on its fence instead.
    • What it bounds: each waiting job holds its translated commands, its input fences and its VM job guard, which pins the mappings it uses.
  4. Teardown and reclaim. Jobs run on the device's own unbound workqueue (aurora_g18_jobs) with WQ_MEM_RECLAIM, since memory reclaim can wait for the fences its jobs signal.
    • The worker is a work item inside the job queue, and pending is allocated for 256 jobs up front. So nothing is allocated under the state lock, which the worker takes while fences are pending.
    • When G18DrmGpu is dropped, the workqueue is taken out and destroyed, which waits for the worker to return. A submit after that gets -ENODEV. The drop never runs on the worker: a job holds the runtime, the VM and the queue's error flag, but not G18DrmGpu.
    • On the J873 today, this only happens on the probe error path. Once the firmware session starts, the driver pins its module until reboot (retain.c), and the G18 platform driver suppresses bind attributes.

Testing

  • arm64 build with LLVM=-22: drivers/gpu/drm/asahi compiles with no new warnings. The 20 dead-code warnings are all in other files and are there at the base too.

  • checkpatch.pl --strict: clean on both commits.

  • CI host-tests: pass. No host test covers g18/drm.rs.

  • M6 (J873g) row of the first version (6252dbc), on the M6 desktop GPU module, A/B:

    Test Without (A) With (B)
    burst: 320 sync-only jobs over 16 async queues behind an 80 ms draw, 3 runs all submits returned at once exactly submit usb: typec: tipd: Reconcile initial SPMI events #256 waited for the draw (79-81 ms)
    burst: 600 jobs over 64 queues all accepted at once submit usb: typec: tipd: Reconcile initial SPMI events #256 waited 80.7 ms
    flood: 41 jobs failing after their submit returned 41 G18 job failed lines 1 line, G18: 39 more failed jobs not reported, 1 line

    synctest passed 5 x 50/50.

  • J873 row at 676064c. Kernel: integration f5fae3c + the J873g DT stack + this head, with CONFIG_PROVE_LOCKING, under sway on three displays.

    • Bursts: the first waiting submit is pinctrl: apple: Support host-owned GPIO interrupt groups #255 or usb: typec: tipd: Reconcile initial SPMI events #256. The 256th slot is shared with other clients' waiting jobs.
    • 32 concurrent submitter threads: exactly 255 submits return during the draw, against 512 on the default module without a cap.
    • Flood: 1 report, "39 more failed jobs not reported", 1 report.
    • synctest 5 x 50/50. es2gears 118 FPS, vkcube 600 frames.
    • Lockdep clean. 0 failed units. The new kernel error lines are the flood's own invalid command plus audio, cpufreq and i2c differences of the stack kernel. Details in the PR conversation.

Assisted-by: LLM (Claude:Opus 5.5)

asahi_g18_fence_error() walks a dma_fence_chain with
dma_fence_chain_walk(), which unlinks the earlier points that have
signalled. A job's inputs have all signalled when it runs, so of a
timeline only the head point's own fence is checked, and an error on an
earlier point is not seen. The comment said every fence was checked.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@RyanTheTide

Copy link
Copy Markdown

Review at 6252dbc.

Thanks, this addresses the #2679 points cleanly. The teardown ordering looks right to me: the worker holds only Arc<JobQueue>, shut_down() drops the queue outside the state lock, and push() refuses with -ENODEV once workers is gone. A few things:

  1. g18/drm.rs:487: the job worker signals dma_fences, and memory reclaim can wait on those. Since this is now a dedicated queue, could it be OwnedQueue::new_unbound_reclaim() (WQ_MEM_RECLAIM)? g17 does the same for its submit queue (g17/job.rs:584, new_ordered_reclaim). system_unbound had the same gap, so this is not a regression, but now it costs one word to fix.
  2. g18/drm.rs:543-549: wait_room() drops the lock before push(). So every submitter woken at 255 gets through, and the bound is 256 plus the number of threads submitting at once, which userspace controls. A reserved count, taken in wait_room() under the lock and given back in push() and its error paths, would make it a hard cap for very little code. If you would rather keep it soft, please say in the comment why that is acceptable.
  3. g18/drm.rs:355: please say in the comment what DEVICE_DEPTH bounds (kernel memory and mappings pinned by accepted jobs?) and why 256 (8 x QUEUE_DEPTH?). Also, the cap is device-wide, so one file can fill all 256 slots and then block another client's submit ioctl (a compositor, say) in wait_room(). Its job would run after those 256 anyway, but before this change the ioctl itself did not block. A per-file share, or at least a note that this is intended, would help.
  4. Nit, g18/drm.rs:553: fault_log_ratelimit() in gpu.rs never throttles when VerboseFaults is set. It would be good to do the same here, so the two reports behave alike.
  5. Testing: the M6 A/B ran on a different tree, where the first commit did not apply. Could you rerun g18burst (both burst cases, plus the flood) and synctest on J873 at this head, 6252dbc, ideally with CONFIG_PROVE_LOCKING, as there is a new state-lock user on the worker? A short sway/GL session would also help.

The comment change in sync_input.c matches what dma_fence_chain_walk() does. Other GPU generations are untouched: both files are under g18/, and the backend binds only apple,agx-t8152.

@sithglan
sithglan force-pushed the thomas/g18-async-followup branch from 6252dbc to 0990461 Compare November 22, 2026 19:10
@RyanTheTide

Copy link
Copy Markdown

Re-review at 0990461. Points from the review at 6252dbc:

  1. WQ_MEM_RECLAIM: fixed, new_unbound_reclaim() at g18/drm.rs:501.
  2. Device cap: fixed, now a hard cap. wait_room() takes the slot under the lock and Room gives it back on every exit. _room is bound before the state guard in push() (g18/drm.rs:521-522), so Room::drop cannot take the lock while push() still holds it.
  3. DEVICE_DEPTH comment: fixed (g18/drm.rs:353-366). The reason for the device-wide bound makes sense to me.
  4. VerboseFaults: fixed (g18/drm.rs:573-575), same as gpu.rs.

Moving wait_room() after wait_foreign_inputs() looks right. A signal there comes at the same point where wait_foreign_inputs() could already return -ERESTARTSYS.

Still open:

  • Testing: the only rows are the A/B from the other tree. Please rerun g18burst (both burst cases and the flood) and synctest on J873 at 0990461, ideally with CONFIG_PROVE_LOCKING. With the hard cap, the burst cases should show the 256th submit waiting even when many threads submit at once.
  • The PR body still says the cap is soft ("submits that wait together can each still add one job"). Please update it to match the commit message, which is current.

Assisted-by: LLM (Claude:Opus 5.5)

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

Adversarial pre-PR checklist review (§1–§6) at 09904614535b1f464900fe6b9d7262db6145d04e (REQUEST_CHANGES).

Checklist Summary

  • §1 (No model gating): Pass — scoped to drivers/gpu/drm/asahi/g18/; other GPU generations are untouched.
  • §2 (Production-ready / default cmdline): Pass — works on default cmdline; respects existing VerboseFaults debug flag for failure log throttling, matching gpu.rs.
  • §3 (Safety & concurrency): Pass with non-blocking lockdep/reclaim observation below — OwnedQueue::new_unbound_reclaim() (WQ_MEM_RECLAIM) fixes the reclaim rescuer requirement from rust/kernel/workqueue.rs:416-418; hard cap via Room/reserved is sound (declaring let _room = room; before let mut state = self.state.lock(); guarantees state drops before Room::drop locks state); G18DrmGpu::drop drains workers outside self.state.lock() while G18Job holds no reference back to G18DrmGpu; moving wait_room() after wait_foreign_inputs() avoids pinning a device slot while waiting on foreign fences.
  • §4 (Clean-room & attribution): Pass — both commits (cdd27c5b135e, 09904614535b) carry human author/committer and human Signed-off-by: only; PR body includes Assisted-by:.
  • §5 (Evidence): Blocked — see Blockers below.
  • §6 (Naming): Pass — uses aurora_g18_jobs for the new workqueue and only touches existing drivers/gpu/drm/asahi/g18/ paths.

Blockers

  1. §5 (Evidence) — No J873 hardware run (or compile check) on 09904614535b:
    • The M6 (J873g) A/B table in the PR body was run on a different out-of-tree branch predating asahi_g18_fence_error() and prior to the 09904614535b changes (Room/reserved hard cap, new_unbound_reclaim, VerboseFaults bypass, and moving wait_room() after wait_foreign_inputs()).
    • Note also that CI on this PR only runs host-tests, which does not compile drivers/gpu/drm/asahi/.
    • Please build and run g18burst (both burst cases, including concurrent submitters to exercise the hard cap, plus the flood test), synctest, and a short regression check (0 SELinux denials, 0 failed units, 0 new kernel errors — ideally with CONFIG_PROVE_LOCKING) on J873 at 09904614535b (or the updated head).
  2. Stale PR body: The PR body still states "The cap is soft: submits that wait together can each still add one job" and does not reflect the 09904614535b hard cap (Room), WQ_MEM_RECLAIM, VerboseFaults, or wait_room() placement after wait_foreign_inputs(). Please update it to match the commit.

Non-blocking Technical Notes

  • Reclaim allocation under self.state.lock() (g18/drm.rs:523-536): JobQueue::push() performs state.pending.reserve(1, GFP_KERNEL) and workers.try_spawn(GFP_KERNEL, ...) while holding self.state.lock(), which is also acquired on the dma_fence signalling path (drain() pops jobs whose JobFence is already published, and failure_report() takes self.state.lock() before JobFence::drop signals). This was pre-existing from #2679, but with WQ_MEM_RECLAIM now set it is worth eliminating GFP_KERNEL allocations under self.state.lock() (e.g., pre-allocating pending to DEVICE_DEPTH in JobQueue::new() or reserving outside the lock) and verifying under CONFIG_PROVE_LOCKING.
  • Double lock & spurious notify_all() on push() success (g18/drm.rs:519-541): Letting _room drop after state unlocks acquires self.state.lock() a second time and broadcasts retired.notify_all() on every accepted submit (and briefly double-counts the job in pending.len() + reserved). Consuming the slot under the held state lock (state.reserved -= 1; core::mem::forget(room);) on the success path avoids both.

Assisted-by: LLM (Gemini 4 Neon)

@sithglan

Copy link
Copy Markdown
Author

Thanks. 0990461 (amended) covers 1-4:

  1. WQ_MEM_RECLAIM. The queue is OwnedQueue::new_unbound_reclaim(c"aurora_g18_jobs", false), and the field comment says why.
  2. Hard cap. wait_room() takes a Room under the state lock while pending.len() + reserved < DEVICE_DEPTH. push() consumes it. Dropping it, on any error path between the two, gives the slot back and wakes the waiters. So the bound is exactly 256 jobs plus reservations.
    • The submit takes its room after wait_foreign_inputs(), not before. A submit waiting for another driver's fence holds no slot meanwhile. Otherwise 256 such waiters could block the submit that is meant to signal one of those fences.
    • It is still before anything is published, so a signal restarts the ioctl as before.
  3. DEVICE_DEPTH comment. It now says what the cap bounds: each waiting job holds its translated commands, its input fences and its VM job guard, which pins the mappings it uses. 256 is eight queues at QUEUE_DEPTH.
    • The device-wide blocking is intended, and the comment says why. One worker runs jobs in acceptance order, so the other client's job would run after those 256 anyway. The cap moves its wait from the output fence into the ioctl. A per-file share would change who waits, not when work runs.
  4. VerboseFaults. With VerboseFaults set, failure_report() reports every failure, as fault_log_ratelimit() does.

The build is clean (no new warnings), and checkpatch --strict is clean.

  1. The J873 rerun at this head is not done yet. integration/aurora alone does not boot the J873: its t8152-j873g.dts has no ANS node. A lockdep build of integration f5fae3c + this PR (PROVE_LOCKING, PROVE_RCU) came up with debug_locks: 1, but it stopped in the initramfs with no SSD, and with no network or display. I'll rerun it on integration + the J873g DT stack (Merge aurora-wip 210c8f6e into integration/aurora (J873g NVMe, 10GbE, power off, USB2, audio) #1797 ... drm/apple: iboot: send page-flip events from a vblank timer (J873g) #2749, which boots the M6 with SSD, 10GbE and displays) + this head, with PROVE_LOCKING: both bursts, the flood, synctest and a short sway/GL session.

Assisted-by: LLM (Claude:Opus 5.5)

Three follow-ups to the asynchronous submit path (aurora-silicon#2679):

- A failed job is reported at most once a second, with the number of
  failures not reported in between, unless VerboseFaults is set, as for
  GPU faults. A client that submits failing jobs in a loop could
  otherwise flood the log; the output fence and the queue's next submit
  still carry every error.
- The device holds at most 256 jobs waiting to run, over all queues and
  files. Each queue was bounded at 32, but a file can open any number of
  queues. A submit takes one of the 256 slots after it has waited for
  other drivers' fences and before it publishes anything, so a signal
  restarts the ioctl as the existing waits do. The slot becomes the job,
  or is given back if the submit fails. The bound is device-wide on
  purpose: one worker runs the jobs in the order they were accepted, so
  a client blocked by a full device would only have waited on its fence
  instead.
- Jobs run on the device's own unbound workqueue instead of
  system_unbound, with WQ_MEM_RECLAIM, since memory reclaim can wait for
  the fences its jobs signal. The worker is a work item that is part of
  the job queue, and the queue of waiting jobs is allocated for 256 up
  front, so nothing is allocated under the state lock, which the worker
  takes while fences are pending. When G18DrmGpu is dropped, the queue
  is taken out of the job state and destroyed, which waits for the
  worker to return, so no job work item outlives the device. A submit
  after that is refused with -ENODEV. On the J873 this happens only on
  the probe error path today: once the firmware session starts, the
  module is pinned until reboot and the platform driver has no bind
  attributes.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan
sithglan force-pushed the thomas/g18-async-followup branch from 0990461 to 676064c Compare November 22, 2026 19:57
@RyanTheTide

Copy link
Copy Markdown

Re-review at 676064c. Commit 1 is unchanged; commit 2 changes only g18/drm.rs.

The embedded worker looks right to me:

  • Lifetime: the queued work holds an Arc<JobQueue> until run() returns. G18DrmGpu::drop calls shut_down(), which takes workers under the lock and destroys the queue outside it (g18/drm.rs:607-612). So the worker's reference is never the last one while workers is still set, and push() refuses with -ENODEV after that (g18/drm.rs:547).
  • Requeue: running goes false only inside drain() (g18/drm.rs:569). At that point the work is executing and no longer pending, so the enqueue in push() (g18/drm.rs:550-553) always queues a new run. Workqueue non-reentrancy keeps the two runs from overlapping, so jobs still run in order.
  • No allocation under the state lock: pending is allocated for DEVICE_DEPTH in new() (g18/drm.rs:525), push() only uses push_within_capacity, and the job box is allocated before the lock is taken. Nothing waits on a fence while holding the lock.
  • Room::consume() (g18/drm.rs:635-639) hands the slot over under the held lock, so the second lock and the wakeup on every accepted submit are gone.

The PR body is current now.

One thing for later, not for this PR: the job path itself still allocates with GFP_KERNEL while its fence is published, e.g. the alias reserve/push in g18/runtime/graphics_job_application.rs:53,96,108, reached from execute() through submit_render(). With WQ_MEM_RECLAIM, reclaim can then wait on a fence whose own worker is allocating. Nothing in g18 is annotated with dma_fence_begin_signalling(), so a PROVE_LOCKING run will not catch this. Annotating drain() would make the lockdep row check it.

Still open: the J873 row at this head (both bursts, one with concurrent submitter threads for the hard cap, the flood, synctest, a short sway/GL session, with CONFIG_PROVE_LOCKING).

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Author

J873 row at 676064c (0990461 + Dj's two notes, see below). Kernel 7.3.0-aurora-j873-2850st+: integration/aurora f5fae3c + the J873g DT stack (restack/usb4: #1797/#1800/#2486/#2178, needed for the SSD, 10GbE and displays) + this head. The build has CONFIG_PROVE_LOCKING and PROVE_RCU. Mesa is the system build with mesa#601 (async GL queues; glFlush returns in 0.0 ms). sway ran on all three displays throughout.

Test Result
burst: 320 sync-only jobs over 16 async queues behind an 80 ms draw, 3 runs the first submit to wait is #255 (79.9, 79.6, 78.5 ms); all others return at once
burst: 600 jobs over 64 queues the first to wait is #256 (79.3 ms)
tburst: 32 threads, each on its own async queue, 16 jobs each, submitting at once behind the draw, 3 runs exactly 255 submits return during the draw in each run; the 256th returns when the draw ends (80.3, 78.9, 79.0 ms)
same tburst on the default module (no device cap) all 512 return within 0.6 ms
flood: 40 late failures, then 1 after 1.2 s G18 job failed once, G18: 39 more failed jobs not reported, then the 41st; all 41 errors still returned by the queue's next submit
synctest (indirect, XFB, GS, render to compute, shared context) 5 x 50/50, GL error 0
sway session es2gears_wayland 118 FPS, vkcube 600 frames in 5.7 s, rc 0
lockdep debug_locks: 1 at the end; no circular, recursive or inconsistent-lock report, no WARNING: or BUG:

Why 255 and not 256: the cap is device-wide, so one slot was held by another waiting job, sway's or the test's own GL context. The 600-job case got all 256. With the soft cap, 32 racing threads could have pushed past it (up to 256 + 31); here none did.

Counts: 0 AVC denials (no SELinux on this install), 0 failed units. 7 kernel error lines; these 5 are not on the default boot:

  • aurora: G18 submit admission rejected: PayloadTruncated: the flood test's deliberately invalid command.
  • Secondary: ASoC: no backend DAIs enabled ..., snd-soc-macaudio sound: driver can't assure safety on this model, disabling speakers, cpu cpu0: current P-state 10 has no OPP and i2c-apple 33101c000.i2c: NACK: from the stack/integration kernel against the M6's desktop kernel (audio, cpufreq OPPs, one i2c device), not from g18.

Also in 676064c, from @DjDeveloperr's non-blocking notes:

  • Nothing allocated under the state lock. The worker is now a work item that is part of JobQueue (impl_has_work!, Arc<JobQueue> as the WorkItem pointer), queued with enqueue() instead of try_spawn(GFP_KERNEL). pending is allocated with capacity DEVICE_DEPTH in JobQueue::new(), and push() only uses push_within_capacity(), after checking capacity under the lock.
  • No second lock or broadcast on an accepted submit. Room::consume() gives the slot to the job under the held lock, and the guard then does nothing. mem::forget() would have leaked the Arc in the room. Error paths still drop the room after the lock and wake the waiters.

The PR description now matches the commit (hard cap, WQ_MEM_RECLAIM, VerboseFaults, room after the foreign waits). The M6 is back on its default kernel.

Assisted-by: LLM (Claude:Opus 5.5)

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

Adversarial pre-PR checklist re-review (§1–§6) at 676064c49b98365cac91ac0662c9524d8d3b63f8 (REQUEST_CHANGES).

What Changed Since 09904614

All code and PR-body items from the previous reviews are now cleanly addressed:

  • Reclaim-safe JobQueue::push() (g18/drm.rs:483-557): Embedding work: workqueue::Work<JobQueue> (impl_has_work! / WorkItem for JobQueue) and pre-allocating pending via KVec::with_capacity(DEVICE_DEPTH, GFP_KERNEL) in JobQueue::new() eliminates all GFP_KERNEL allocations under self.state.lock().
  • Single-lock slot handoff (g18/drm.rs:554, 626-644): Room::consume(&mut state) transfers the reservation into pending under the held lock, removing the extra lock acquisition, brief double-count, and spurious notify_all() on the success path while preserving safe drop order (state drops before parameter room) on error paths.
  • PR body & build hygiene: PR description now matches the code (DEVICE_DEPTH = 256 hard cap, WQ_MEM_RECLAIM, VerboseFaults, wait_room() placement after wait_foreign_inputs(), embedded worker + pre-allocated pending), with arm64 LLVM=-22 clean build and checkpatch.pl --strict clean reported.

Checklist Summary

  • §1 (No model gating): Pass — scoped to drivers/gpu/drm/asahi/g18/; other GPU generations are untouched.
  • §2 (Production-ready / default cmdline): Pass — works on default command line; honors VerboseFaults matching gpu.rs.
  • §3 (Safety & concurrency): Pass — OwnedQueue::new_unbound_reclaim() (WQ_MEM_RECLAIM), allocation-free push() under state.lock(), hard device cap via Room, and deadlock-free G18DrmGpu::drop() -> shut_down() drain outside state.lock().
  • §4 (Clean-room & attribution): Pass — both commits (cdd27c5b135e, 676064c49b98) carry human author/committer and human Signed-off-by: only; PR body discloses Assisted-by:.
  • §5 (Evidence): Blocked — see Blocker below.
  • §6 (Naming): Pass — uses aurora_g18_jobs and touches only existing drivers/gpu/drm/asahi/g18/ paths.

Blocker

  1. §5 (Evidence) — J873 hardware run at 676064c4 not yet completed (and CI still running):
    • The code is ready, but the only hardware A/B table in the PR body is from the earlier 6252dbc9 revision on a different tree (predating the hard cap Room, WQ_MEM_RECLAIM, embedded Work<JobQueue>, pre-allocated pending, VerboseFaults, and wait_room() placement).
    • As noted in ## Still to run, please post the J873 run at 676064c4 (on integration/aurora + the J873g DT stack with CONFIG_PROVE_LOCKING): both bursts plus concurrent submitters exercising the hard cap, the failure flood, synctest, a short sway/GL session, and the regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors), and confirm host-tests CI passes (currently IN_PROGRESS).

Assisted-by: LLM (Gemini 4 Neon)

@RyanTheTide

Copy link
Copy Markdown

Thanks. That's the J873 row at 676064c I asked for. PROVE_LOCKING and PROVE_RCU end with debug_locks: 1 and no lockdep report. The device cap holds the 256th waiter at about 80 ms behind the draw while the default module returns all 512 at once. The flood is rate-limited to one report with all 41 errors returned, and sway stays up on three displays. Approved from my side. The GFP_KERNEL-after-publish note stays a follow-up.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Author

@DjDeveloperr the J873 run at 676064c went up 37 s before your re-review: #2850 (comment). It covers what you listed:

  • integration/aurora + the J873g DT stack + this head, with CONFIG_PROVE_LOCKING and PROVE_RCU;
  • both bursts, plus 32 concurrent submitter threads (exactly 255 submits through during the draw, against all 512 on the default module);
  • the flood, synctest, and a sway/GL session (es2gears, vkcube);
  • the counts: 0 AVC (no SELinux), 0 failed units. The new kernel error lines are the flood's own invalid command plus four audio, cpufreq and i2c lines from the stack kernel, all listed there.

host-tests CI has now passed on 676064c, and the PR description includes the row.

Ryan's note on GFP_KERNEL allocations in the job path after the fence is published (no dma_fence_begin_signalling() annotation yet) is tracked as #2859.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

676064c merges without conflicts on integration/aurora daa9e2d, which has #2679 but none of these follow-ups. The J873 row at this head (lockdep on, the hard device cap under concurrent submitters, the failure flood, synctest) and the green host-tests run cover the evidence the last review asked for, so this is waiting only on that review being cleared. The allocation-after-publish note is a separate follow-up.

@Acelogic

Copy link
Copy Markdown
Member

I tested head 676064c49b98 on a physical J873g Mac mini M6, merged locally with public integration/aurora at 322eadc80921 (candidate tree ee333b94b780). I booted the public base and the candidate separately through public aura. The kernel image, device tree, Mesa userspace and workloads were identical. Both kernels had CONFIG_PROVE_LOCKING=y and CONFIG_PROVE_RCU=y.

  • Device-wide limit. A valid 1024×1024 blended draw kept the GPU busy while 32 clients on separate DRM files and queues each submitted 16 asynchronous synchronization jobs. On the base, all 512 submit calls returned within 2.62 ms of starting the draw. On the candidate, the 256th returned at 2.13 ms and the 257th at 14.82 ms. That 12.68 ms pause was the largest gap in the trace and occurred exactly at the device-wide limit. All 512 fences ultimately reported positive completion and the rendered pixel matched.
  • Client exit and continued operation. Another 32 clients submitted 512 jobs and closed their DRM files immediately. All 32 exited successfully. A fresh client then submitted 16 jobs and verified all 16 fence statuses. The final hardware-rendered pixel check passed. All 12 CPUs were online, kernel taint was zero, and lockdep still reported debug_locks: 1 with no new locking report during the workload.
  • Error logging. In a separate host test of the submitted failure_report() function with a controlled clock, the first failure was reported, the next 40 were suppressed, and the report at one second counted all 40. Verbose mode reported 41 of 41. GPU fault handling and module unload were outside this physical run.

@Acelogic

Copy link
Copy Markdown
Member

I retested 676064c49b98 on the physical J873g Mac mini M6 with the corrected GPU clock PR #2623 (182b72da0063) present. That combination produced merge tree 3130c88a7f15 on public integration base a7638d51880c. For the control I booted the same integration revision with #2623 alone. Both boots used identical kernel images, device trees, configs and Mesa userspace.

A valid 1024×1024 blended draw kept the GPU busy while 32 independent DRM clients each submitted 16 asynchronous jobs. On the control all 512 submit calls returned within 2.52 ms of starting the draw. With #2850 the largest pause was 12.71 ms after submission 256. The 256th call returned at 2.10 ms and the 257th at 14.81 ms. All 512 fences reported successful completion, and the draw produced the expected pixel.

In the client-exit run, all 32 clients submitted their jobs and closed. A fresh client then submitted 16 jobs and verified all 16 fences. The hardware pixel checks passed, all 12 CPUs were online, kernel taint remained zero, lock debugging stayed enabled and no new workload warnings appeared. The clock provider also released its request after all six rendering benchmarks on the combined build. The controlled-clock test of the submitted logging function passed again, including the one-second boundary and verbose mode.

@Acelogic
Acelogic merged commit 5701541 into aurora-silicon:integration/aurora Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants