Skip to content

drm/asahi: g17: hold a compute pool release until its context's kill is acknowledged - #3652

Merged
DjDeveloperr merged 8 commits into
aurora-silicon:mainfrom
jgoyvaerts:m4pro/g17-kill-vacate
Dec 4, 2026
Merged

DjDeveloperr merged 8 commits into
aurora-silicon:mainfrom
jgoyvaerts:m4pro/g17-kill-vacate

Conversation

@jgoyvaerts

@jgoyvaerts jgoyvaerts commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: An idle compute queue could have its pool released (FreeListRelease, then vacancy) right behind a ContextKill of the context it belongs to, while the GPU firmware was still handling that kill. On the M4 Pro (25G83) that pairing came just before each logged firmware crash in agx_scheduler. Now a queue's pool is released only after the firmware has acknowledged the kill of the context its record names (that kill's own ContextKilled event), with no timer.
Tested: M4 Pro (J616s, 25G83) at f987fd4 (backported): FAIL, the firmware crashed (see the comment): that version took the scheduler page's killed word as the witness, and the word read set before the host could have seen the kill's acknowledgement. Head 504a550: no exact-head Mac run yet. Backport, not an exact-head row: test kernel m4.235 carried this PR's commits including 504a550, picked from the PR head, with #3644 1-5; on the J616s, 2026-12-04 23:59 to 12-05 00:01:44 UTC, a 120 s gpubench load (life.spinkill) whose clients spin until the host watchdog fails their command, then exit: PASS. 4 kills published and all 4 acknowledged, 32-49 µs after publication; 0 pool releases while a kill was unacknowledged; 0 recoveries, 0 firmware crashes. Earlier test kernels ran the gate through a 3-pass storm load and client-kill stress loads without a firmware crash, but no kill happened in them. KUnit at 504a550: 1058 run, 1057 pass, 1 skip; all tools/asahi g17-* and neo-* host harnesses pass (54/54). Host harnesses pass, including g17-kill-vacate, which is red on main and on f987fd4 and green here.
Risk: two-way door · G17 Macs (the gate is in shared compute-queue code; it holds a queue only while a kill of its context is unacknowledged)
Not yet: a hardware run at the exact head 504a550. The gate blocking a release inside the ~40 µs window before a kill's acknowledgement is not yet observed: in the backport run no release or rebind tried to happen there. Checking whether the firmware ever leaves a kill unacknowledged (see Known limits). These are tests; no code is open.

Details

The crashes. On the M4 Pro (J616s, 25G83) the GPU firmware crashed in agx_scheduler, each time shortly after a ContextKill, with four signatures:

  • a NULL store through a zeroed compute descriptor slot (PC 0x1f0c4);
  • a cache clean of an unmapped host object (PC 0x58368, ESR 0x96000147);
  • a load through NULL+0x44 (PC 0x2673c);
  • a load through NULL+8 (PC 0x18d5c), three times: under a multi-process dEQP load, from a single gpubench-vk compute.heavy run at depth 4096 that lost its device and exited, and with f987fd4 under the storm chain.

The pairing. Where the host logged it, a compute queue of the killed context had its pool release consumed, so the host vacated it, shortly after the kill. Where the killed scheduler page was logged, the vacated queue's last kick named that page.

crash kill queue released crash after the kill
NULL+8, gpubench t t + 2 ms 86 ms
NULL+8, dEQP load t t + 2 ms 47 ms
NULL+0x44, dEQP load t t + 0.8 ms 1.7 ms
unmapped clean, dEQP load t t − 0.1 ms 24 ms
NULL+8, storm chain, f987fd4 t t + 4 us 150 ms

Why. An idle queue (no commands) is never an exit candidate, so no kill transaction marks it. vacate_idle_pools, the only publisher of an idle compute queue's FreeListRelease (Queue::begin_growth also releases a pool, but only an open owner's, with no exit and no work), could therefore release it while the firmware still handled its context's kill. The firmware walks the killed context's queues while it does.

The change. Queue::vacate_candidate is false while the context its record names has a kill published that the firmware has not acknowledged (Context::kill_unfinished). That context is the bound owner's, or, once the owner exited and the queue was detached, the one whose pages it retained.

  • A context's kill is a shared Kill: the published ContextKill's cookie, and whether the firmware acknowledged that cookie. FirmwarePages shares it.
  • Every kill route publishes through the compute exit (exit, guilty and compute-exit kills) or the render-only kill; both record the cookie (note_kill_published(cookie)).
  • The kill acknowledgement (Registry::acknowledge_compute_exit, event ContextKilled) passes every compute queue, which acknowledges the kill of its bound or retained context (Queue::acknowledge_context_kill). Another cookie does nothing.
  • A successor of the same VM takes a released queue and its pool without a release (Queue::reusable). The same check holds that back too: no queue is reusable while its context's kill is unfinished. vacate_candidate and reusable share it (Queue::kill_unfinished). A client waiting for a compute channel meanwhile is woken by the housekeeping pass that sees the queue reusable again.
  • The scheduler page's killed word is not read for this. The first version (f987fd4) did, and on the M4 Pro the word read set 4 us after the kill was published, in the same host pass, before the host could have seen that kill's acknowledgement; the release went out and the firmware crashed. Whether the word was set before the publication or by the firmware within those 4 us is not known (the crash trace logs restarts and kills, not acknowledgements).

Known limits.

  • A kill the firmware never acknowledges keeps that context's idle queues, their pools and QIDs, until processor stop. This is local to that context: other contexts' pools are released as before. Whether the firmware acknowledges a kill published just before a GPU restart is not checked.
Evidence

Hardware, backport (not the exact head). Test kernel m4.235 on the M4 Pro (J616s, 25G83): this PR's commits including 504a550 and #3644 1-5, picked from the PR heads (driver code identical by patch-id; only host-harness registry context differs), plus local diagnostics that log each kill's publication and acknowledgement and each compute pool release with its context's kill state. life.spinkill, 120 s, 2026-12-04 23:59:18 to 12-05 00:01:44 UTC: PASS.

  • The host watchdog failed 4 compute commands as their own, each after 30.7 s at the head of its queue; each VM's open client was closed on its behalf (drm/asahi: g17: kill a closed VM the watchdog failed, spare the work behind it #3644).
  • 4 kills went out through the compute exit (cookies 1-4), each 250 ms after the close; all 4 were acknowledged by their own ContextKilled event, 32, 39, 39 and 49 µs after publication.
  • 21 compute pool releases: 4 of the killed contexts' idle queues, each 10-15 µs after its kill's acknowledgement; 17 of detached queues with no kill; 0 while a kill was published and unacknowledged. No queue was rebound.
  • 0 recoveries, 0 GPU faults, 0 firmware crashes; no scheduler teardown left pending afterwards.

Head 504a550943a0, which gates reusable() on top of d764bdfdff70: main 9b8e29feafe7 merged in (one conflict, in Context::new: main's admission order wait and this PR's kill state, both kept). Before that, its last two commits change a comment and add a query with no caller yet, Context::kill_acknowledged.

  • tools/asahi/g17-kill-vacate-tests.py compiles the production vacate_idle_pools, Queue::vacate, vacate_candidate, recycled_pending, reusable and acknowledge_context_kill, and the production Kill, FirmwarePages and Context kill methods, against host stubs and a stub scheduler page.
    • An idle pool of an unkilled context, or of a context whose kill the firmware acknowledged, is released.
    • None is released while the context's kill is published and unacknowledged, bound or detached; also while the page already shows the context killed (the f987fd4 crash).
    • Another kill's acknowledgement leaves the pool held; this kill's, passed through the queue, releases it, bound or detached.
    • The first commit fails it (registered as KILL there); the third (60de717, the page-already-killed case) fails it on f987fd4's code; it passes with a1db565 and a4c07b1. Mutations bound-only, no-gate, any-cookie, bound-ack-only and reuse-ungated are caught.
    • A released, warm queue is not reusable while its context's kill is unacknowledged (also with the page already showing it killed), bound or detached; it is once the kill is acknowledged or with no kill (reuse-ungated removes the check from reusable and is caught).
    • Context::kill_acknowledged (19d7be2): false with no kill, with an unacknowledged kill whose page word is set, and after another kill's acknowledgement; true after the kill's own.
    • Source rules: both ContextKill publications in runtime/compute_exit.rs are followed by note_kill_published(cookie); acknowledge_compute_exit acknowledges the context kill on every queue before it returns.
  • KUnit, arm64 qemu, asahi kunitconfig: 948 run, 947 pass, 1 skip, also at 19d7be25ea62; at d764bdfdff70 and 504a550943a0, 1058 run, 1057 pass, 1 skip.
  • run-host-tests.py --only each: g17-kill-vacate 6/6, g17-kill-route 12/12, g17-object-fence 15/15, g17-m5-sibling-rearm 15/15, g17-m5-sibling-compute 9/9, g17-growth 2/2. object-fence and sibling-compute compile FirmwarePages and acknowledge_compute_exit and got stubs.
  • All tools/asahi/g17-* and neo-* harnesses: one failure, g17-output-fence, which fails the same way on main (fn member_done( matches twice in fence.rs).

…d kill

The GPU firmware on the M4 Pro (25G83) crashed in agx_scheduler shortly
after a ContextKill, four times with four signatures: a NULL store
through a zeroed descriptor slot, a cache clean of an unmapped object, and
loads through NULL+0x44 and NULL+8. Where the host logged it, an idle
compute queue of the killed context had its pool release consumed, and
was vacated, within about 2 ms of that kill.

An idle queue is never an exit candidate, so no kill transaction marks
it, and vacate_idle_pools, the only publisher of a compute pool's
FreeListRelease, may release it while the firmware still handles the
kill of the context it belongs to.

Compile the production vacate_idle_pools and the Queue predicates it reads
against host stubs. An idle pool of an unkilled context, or of a context
whose kill the firmware finished, is released as before. None is released
while the context's kill is published and unfinished, whether its queue
is still bound or was detached when its owner exited. A source rule
checks that every ContextKill publication marks its context's kill
published, so that each kill route reaches the gate. The release checks
fail on the current code: the harness is registered as expected to fail
until the fix.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
A ContextKill is handled by the firmware after its publication, and the
firmware walks the killed context's queues while it does. An idle
compute queue of that context is no exit candidate, so no kill marks it,
and vacate_idle_pools could publish its FreeListRelease right behind the
kill. On the M4 Pro (25G83) that pairing, a queue of the killed context
vacated within about 2 ms of its kill, came just before each logged GPU
firmware crash in agx_scheduler on this path (NULL+8, NULL+0x44, and a
cache clean of an unmapped object).

A queue is no longer a vacate candidate while the context its record
names has a kill published that the firmware has not finished (the
scheduler page shows it killed): a firmware witness, not a timer. That
context is the bound owner's, or, once the owner exited and the queue
was detached, the one whose pages it retained. Those pages now share the
context's kill-published flag, so a detached queue still sees the kill.
Every kill route publishes through the compute exit or the render-only
kill, and both mark the context's kill published.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
The pool-release gate treats a context's kill as finished once the
context's scheduler page shows it killed. On the M4 Pro (25G83) that word
read set 4 us after a kill was published, before the firmware
acknowledged that kill: the pool release of the killed context's idle
compute queue went out, and the firmware crashed 150 ms later in
agx_scheduler (NULL+8, PC 0x18d5c), as before the gate. The page's word
does not witness a particular kill.

Compile the production kill state of a context and of the pages a
detached queue retains (context.rs) into the kill-vacate harness, against
a stub scheduler page. A kill published while the page already shows the
context killed, and not acknowledged, must hold the pool release, bound or
detached. It does not on the current code: the harness is registered as
expected to fail until the fix.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
…edged

The pool-release gate held an idle compute queue's FreeListRelease only
until the scheduler page of the queue's context showed it killed. On the
M4 Pro (25G83) that word read set 4 us after a kill was published: the
firmware had not acknowledged that kill, the release went out, and the
firmware crashed 150 ms later in agx_scheduler, with the same NULL+8 as
without the gate. The word is no witness of a particular kill. Why it was
already set is not known.

Witness the kill by its own acknowledgement instead. A context's kill
becomes a shared state holding the published ContextKill's cookie and
whether the firmware acknowledged that cookie. Both publication sites
record the cookie. The kill acknowledgement (event ContextKilled) passes
every compute queue and acknowledges the kill of the context its record
names, bound or retained after its owner exited. A kill stays unfinished
until then, and its context's idle queues keep their pools. The scheduler
page is no longer read for this.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
@jgoyvaerts jgoyvaerts changed the title drm/asahi: g17: hold a compute pool release behind its context's kill drm/asahi: g17: hold a compute pool release until its context's kill is acknowledged Nov 29, 2026
@jgoyvaerts

jgoyvaerts commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Hardware result for f987fd4: FAIL. (Edited: an earlier version said the firmware never acknowledged the kill; the crash trace does not log acknowledgements, so that is not shown.) The firmware crashed with the gate in place, so I pushed a fix on top: a1db565, with its red test 60de717.

M4 Pro (J616s, 25G83), kernel 7.3.0-m4.207, which carries f987fd4 and its red test plus a diagnostic line at each compute pool release. Storm chain (multi-process dEQP hang cases), 2026-11-29, pass 3 of 3:

  • 19:55:37.681355 UTC: kill of scheduler 26 let out at recovery gen 32. Its ContextKill is published 9 us later (compute exit, cookie 0x1).
  • 4 us after the publication: FreeListRelease q71: context kill acknowledged. q71's last kick names that kill's scheduler page. "acknowledged" here meant only that the scheduler page's killed word read nonzero.
  • 150 ms later: the firmware crashed in agx_scheduler, with PC 0x18d5c, ESR 0x96000004, FAR 0x8 (NULL+8), the same as without the gate.
  • The kill's publication and the pool release ran in the same host pass (compute exit, then compute pools), after that pass had handled its firmware events. So the host had seen no acknowledgement of that kill when the gate read the word.

So the page's killed word read set before the kill could have been acknowledged to the host. Whether it was set before the kill was published, or the firmware wrote it within those 4 us, is not known: the crash trace logs restarts and kills, not acknowledgements. One hypothesis for an early word, not checked: a GPU recovery sets it when it fails the context as guilty, as one did for this context at recovery gen 13, 2.2 s before the kill. a1db565 waits for the kill's own acknowledgement instead and no longer reads the page for this. The PR body now describes that witness.

Result notes (local): ~/Games/data/notes/gpu-fw-crash-20261120/repro/combined-20261129T194407Z/RESULT.md. The new head needs its own proving run.

The comment on Kill::unfinished said the scheduler page's killed word
read set long before the firmware acknowledged the kill. The log does not
show that: the crash trace records restarts and kills, not
acknowledgements. What it shows is that the word read set 4 us after the
kill was published, in the same host pass, before the host could have
seen the acknowledgement. Say that. No code change.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
A context's kill state holds the published ContextKill's cookie and
whether the firmware acknowledged that cookie. Context::kill_unfinished
answers whether a published kill still waits for its acknowledgement.
Add the other half, Context::kill_acknowledged: a kill was published and
its own ContextKilled event acknowledged it. The scheduler page's killed
word does not prove this kill finished, so the query does not read it.

No caller yet; it is for ending a closed context's pending kill on that
acknowledgement. No behavior change. The kill-vacate harness checks it:
no kill, an unacknowledged kill with the page word set, and another
kill's acknowledgement are not acknowledged; the kill's own is.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
Conflict in g17/context.rs (Context::new): keep both main's admission order wait and this branch's kill state.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
…nfinished

The pool release of an idle compute queue waits for its context's kill
to be acknowledged. A successor of the same VM does not need that
release: Queue::reusable() hands it the released queue and its pool as
they are. During an unfinished kill the firmware still walks the killed
context's queues, and the successor would install its own record and
commands on one of them.

Check the same thing in reusable(): no queue whose bound or retained
context has a kill published and not acknowledged is reusable.
vacate_candidate() and reusable() now share the check
(Queue::kill_unfinished). The kill-vacate harness checks that a
released, warm queue is not reusable while its context's kill is
unacknowledged, also when the scheduler page already shows the context
killed, bound or detached, and is reusable once the kill is
acknowledged or with no kill. A new mutation, reuse-ungated, removes the
check from reusable() and is caught. Four harnesses that compile
reusable() get a Queue::kill_unfinished stub that reports no kill.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
@jgoyvaerts
jgoyvaerts marked this pull request as ready for review December 4, 2026 03:57
@jgoyvaerts
jgoyvaerts requested review from a team and DjDeveloperr as code owners December 4, 2026 03:57
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at 504a5509: ready to merge

Check Detail
CI at head ok 12 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 504a5509
Conflicts ok none
PR text ok Risk: two-way · G17 Macs (the gate is in shared compute-queue code; it holds a queue only while a kill of its context is unacknowledged)

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

Approving at 504a550.

How I read it: a context's kill is now a shared Kill, which holds the published ContextKill's cookie and whether that cookie was acknowledged. FirmwarePages keeps it, so a queue detached from an exited owner still sees that owner's kill. Both kill routes record the cookie. The ContextKilled acknowledgement passes every compute queue before the exit and render-kill matching, so a render-only kill is also acknowledged, as long as some queue names that context. While a kill is unacknowledged, both vacate_candidate() and reusable() say no, so no FreeListRelease goes out and no successor takes the pool. Not trusting the scheduler page's killed word is right, given the 4 us reading in the details.

I also checked the paths that don't go through reusable(), and I see no hole. can_rearm()'s recycled path only runs after the queue's own exit was acknowledged (exit stays set until then), and only on a pool that is already vacant. shareable() needs a live owner. The known limit is that an unacknowledged kill holds that context's idle queues until processor stop. That only affects that one context, so it's fine for now.

What I ran on pc:

  • g17 host tests: main 404/404, main + #3600 + #3601 + #3652 414/414. That includes g17-kill-vacate with all five of its mutations caught.
  • W=1 of drivers/gpu/drm/asahi: no new warnings against main.

Small thing, no change needed: Context::kill_acknowledged() has no caller yet and is kept with allow(dead_code). That's fine if the follow-up that uses it comes soon.

Before merge: J714s and J700 rows at the exact head are queued with the M5 and Neo leads. This merges cleanly on main and lands after #3601. #3704 and #3976 conflict with it in one test harness, tools/asahi/g17-m5-sibling-rearm-tests.py: the fix is to keep both the backing_owner and retained_owner fields. Whichever of them lands second needs that test-only merge.

@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 Dec 4, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Status: #3600 and #3601 are merged. This one is held for one more J714s (M5 Pro) run. It's a measurement question, not a change request.

What the M5 row showed (main f778d6c against main + #3600 + #3601 + #3652, module-only aurora.ko): every gate passed except memory. 3 s after the last client (rt.scene) closed, the device still counted +64.11 MiB of user_committed and user_resident on head and −3.92 MiB on base. user_kept didn't move on either arm, and kernel_resident matched (+75.4 / +79.5 MiB). That's one held user-charged object of about 64 MiB, the size of an M5 compute pool backing.

Why it points here: this PR is the only change in that arm that decides when a compute pool is released. vacate_candidate() and reusable(), and so detach_exited_owner(), stay false while the context's kill is unacknowledged. If the acknowledgement arrives, the 1 ms deferred housekeeping and the normal 10 s warm expiry give the pool back. If it never arrives, the queue and its pool stay until processor stop, as Known limits says. That can happen once for every killed context. #3600 and #3601 can't hold it: they only change which fence references a command keeps.

What the single reading can't tell: whether the pool was in the 10 s warm window (bounded, intended) or held behind a kill that wasn't acknowledged. The next M5 run reads GPU memory and every compute queue's pool state at +0.5, +3 and +12 s after each of 3 open/use/close cycles. Each cycle includes a client killed with work in flight. Then it reads again with the session stopped, and unloads the driver. Base is main with #3600 + #3601; head adds only this PR. If the memory comes back by +12 s, this is bounded and the row's gate gets adjusted. If it stays, or grows per cycle, I'll follow up here with the numbers and a fix.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

J714s memory re-run at 504a550943a0. Both arms load only aurora.ko on the same kernel. Base is main eb9ecd34 (7eb6b31a) and head is this PR (78827ae5). The run does three cycles each of rt.scene, multi-queue churn, and SIGKILLed churn, with readings 0.5, 3 and 12 s after close.

  • Head tracks base. Usage is +197 to +254 MiB while the client runs, and 12 s after close it is back to -2.63 MiB (base: 0 to -7.97) in every cycle. Held queues stay at 0 and nothing grows from cycle to cycle. With no session, user_committed after 30 s is 0.00 MiB on both arms.
  • So the +64 MiB 3 s after close in the earlier run was the bounded hold, not a leak.
  • Neither arm's kernel log has an oops, GPU fault, OOM or recovery line. The kit's verdict line says FAIL only because its log capture was cut short on both arms. That is a bug in the kit, not in this PR.

One thing is still owed before merge: a J700 (G17P) row at this head. That kit is being built now.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Follow-up to the comment above: the memory on the M5 is bounded and intended. The 64 MiB was a pool still inside its normal 10 s warm window, not something this PR holds back.

J714s (M5 Pro) memory run. Base = main eb9ecd34 (#3600 + #3601), head = main + this PR at 504a550943a0, module-only aurora.ko on 7.3.0-main571a6c45. Each arm ran three cycles of rt.scene, an 8-queue client, and an 8-queue client SIGKILLed with work running. GPU memory and every compute queue's pool state were read 0.5, 3 and 12 s after each close.

reading base head
+0.5 s / +3 s after rt.scene +200.0 MiB, 1 warm pool +199.4 MiB, 1 warm pool
+0.5 s / +3 s after either 8-queue client +256.1 MiB, 4 warm pools +253.4 MiB, 4 warm pools
every +12 s reading (9 per arm) 0 to −8.0 MiB, no warm or held pool −2.6 MiB, no warm or held pool
20 s after the last cycle −7.97 MiB −2.63 MiB
desktop session stopped, +30 s 0.00 MiB 0.00 MiB
  • The two arms match at every reading, within the desktop's own drift (at most 5.3 MiB). Nothing grows from cycle 1 to cycle 3.
  • No queue was ever left populated, idle and not reusable on either arm. The kernel logs show no GPU lines.
  • The earlier row's +64 MiB came from a single reading 3 s after rt.scene closed, which is inside the 10 s warm window. In that row, base happened to have given its pool back already.

Not shown: whether a ContextKill was published in the killed-client cycles. Compute-exit kills have no counter in the capacity file, and no queue had an exit pending 0.5 s after the kill. So the gate's own hold path still isn't proven on hardware, as your "Not yet" says. rmmod aurora was refused on both arms ("in use", with no /dev/dri users left). Unloading isn't possible on this boot path, so this run doesn't test it.

On the row side, the J714s judge's single +3 s memory reading was the faulty check. It now reads past the warm window. A J700 (G17P) row is still owed before merge.

@DjDeveloperr
DjDeveloperr merged commit 1675a62 into aurora-silicon:main Dec 4, 2026
16 of 17 checks passed
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged at the approved head 504a5509 as 1675a623. Here is what it was checked against.

J714s (M5 Pro, G17S) memory row, done earlier today. Base was main's aurora.ko, head was main + this PR, both on the same kernel. Over 3 cycles of rt.scene, one churn client and one SIGKILLed churn client, head always returned to the same level as base 12 s after each close (-2.6 MiB on head, 0 to -8 MiB on base). No queue was ever held. With the session stopped, both arms read 0.00 MiB. Details are in the comment above.

J700 (Neo, G17P) row, 09:18-09:51Z. Base was main be72f78e's driver; head was the same plus this PR (merge-ort). Both were module-only on the same booted kernel, with one trial boot each. It ran the same memory cycles, plus GPUBench, the timeline sync CTS and the whole-boot kernel log. Verdict: PASS.

  • Memory: 0 held compute queues on both arms at every reading (27 readings after a close, 9 of them after a killed client). Pools were warm right after a close and gone by +12 s on both arms (1/1/0 after rt.scene, 4/4/0 after churn, then 0/0/0). The device's committed user memory stayed within 2 MiB of base everywhere. Note: on this Mac the pool backing doesn't show up in that counter, so the held-queue count carries this row.
  • Sync CTS, synchronization{,2}.timeline_semaphore.*: 5,753/5,753 Pass on both arms, 0 recoveries, about 108 s each.
  • GPUBench (render.light, compute.light, compute.heavy, CRC checked): all correct, head within 1.7 % of base on every case.
  • Whole-boot kernel log: about 1,045 lines per boot, 0 GPU fault, recovery, lost-device, OOM, WARN or BUG lines on either arm.
  • Stopping the display manager left the compositor running on both arms, so the "no session" reading still had the desktop up: 42.8 MiB on base, 43.8 MiB on head, 0 held queues on either.

Local checks on pc: the g17 host suite, run with the merge tree on main 8ae72dc3 (main's later commits don't touch the driver or its tests): 408/408 on main, 414/414 with this PR. Both module builds had the same compiler warnings, so nothing new.

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

2 participants