Skip to content

drm/asahi: g17: keep completion witnesses and the device-wide compute pool out of client GPU reach - #3242

Open
DjDeveloperr wants to merge 5 commits into
mainfrom
fix/g17-private-completion-state
Open

DjDeveloperr wants to merge 5 commits into
mainfrom
fix/g17-private-completion-state

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Keep the state the host retires G17P work on, and the device-wide compute state, out of reach of client GPU work:

  • Completion stamps and work nodes: the render stamp pages, each compute queue's stamp page and the work-state pages sat in the upper half every execution context includes, with GPU write access. They become firmware-only, as on M5 (64a142c). So do the boot and compute free-list controls and states, as the render free list's already are.
  • Compute pool and completion rings: these are no longer mapped into client VMs. The pool's page list, run list and blocks were mapped read-write into every client VM that ran compute, and so were both completion rings. Nothing else maps the pool's lists and blocks, so they're dropped, which frees 24 MiB.

Client GPU work then no longer reaches state that the host and firmware use for every client's work.

This carries #3225's commit unchanged. Merge #3225 first; the last two commits are this PR.

Tested: Built at 9583ee437211 (asahi profile). Host tests: G17 220/220 (the compute-constructor test follows the pool's new constructor), Neo 14/14, M5 97/97. On J700 (G17P), the same changes at 71bb8d314626 (plus log-only lines):

  • 0 MMU faults, recoveries or new kernel errors;
  • every compute command still retired on its completion record (262,144 of 262,144);
  • the pool control's counters never moved;
  • a compute shader reading and writing raw GPU addresses got zero back from the stamp pages, the pool control, the pool lists and the completion ring, where the default kernel returns live data, and its writes changed nothing other clients saw;
  • gpubench VK/GL ok.

Risk: Two-way · G17P GPUs (A18 Pro, M4 Pro/Max); shared drm/asahi G17 code. M5 changes only through #3225's commit.

Not yet:

DjDeveloperr and others added 3 commits November 26, 2026 04:47
Every G17 execution context includes the kernel's upper half. The kernel
builds and checks records there that the firmware then reads: kick
entries, command descriptors, queue records with their pointer blocks and
item rings, per-publication configuration records, and scheduler pages.
Several of those mappings also gave the GPU write access:

- on G17P, the render kick rings, the render and compute command
  descriptors, each context's scheduler page and the device-wide compute
  scheduler;
- on G17P and M5, the render queue records, configuration records and
  support pages, and each compute queue's graph, announcement and
  configuration records, preemption buffer and usage page.

GPU work from any client could therefore rewrite another client's command,
or a queue's pointers, owner and context, after the kernel had checked
them and before the firmware read them.

Map them firmware-only. The GPU reads kick rings and command descriptors
through their read-only lower aliases. It reaches a compute queue's
preemption buffer and usage page through the aliases a binding maps into
its client VM. Neither changes. M5 already mapped its kick rings,
descriptors and scheduler pages this way (commits 68e51c0 and
64a142c).

Signed-off-by: Dj <[email protected]>
…n G17P

The host retires render and compute work on stamps the firmware stores
after the work's cache maintenance, and on the work-state nodes that count
an ioctl's kicks. On G17P the render stamp pages, each compute queue's
stamp page and the work-state pages sat in the upper half every execution
context includes, with GPU write access. GPU work from any client could
store a stamp that covered another client's work, or hold one back. A
covering stamp retires work before the firmware is done with it: it
releases the VM's pins on the work's mappings and signals the fence. A
stamp held back makes every render group wait out the stampless bound.

Map them firmware-only, as M5 does (commit 64a142c). The boot and
compute free-list controls and states next to them, which only the
firmware reads and writes, become firmware-only too, as the render free
list's already are.

Signed-off-by: DjDeveloperr <[email protected]>
…ion rings into client VMs

On G17P the first compute submission installs a device-wide compute pool
and maps its page list, run list and blocks, along with both completion
rings, read-write into every client VM that runs compute. The pool's
control names those lists by address, and the host retires every client's
compute work on the rings' records. GPU work from any client could
therefore rewrite the lists every compute queue allocates from, or forge a
record that fails another client's VM.

Neither the firmware nor the GPU needs them there. With nothing of them
mapped into client VMs, every compute command on the A18 Pro still
retired on its completion record, and the pool's control counters never
moved. Map nothing into client VMs, and drop the pool's page list, run
list and blocks, which nothing else maps. That frees 24 MiB.

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

Copy link
Copy Markdown
Contributor Author

Verdict at 9583ee437211: ready

Blockers: none

This covers the two commits on top of #3225 (7eeb3974d053, 9583ee437211). #3225's commit is carried unchanged and is reviewed on #3225.

Checked:

  • Stamps and work nodes become firmware-only (7eeb3974d053).
    • On G17P, the work-state pages, both render descriptor (stamp) pages, each compute queue's support (stamp) page, and the boot and compute free-list controls and states move from the PROT_GPU_FW_* protections to PROT_FW_SHARED_RW or PROT_FW_PRIV_RW. The private/shared split is kept per object.
    • That matches what M5 already does for the same pages (64a142ca5cdc), and the render free list's control, which was already firmware-private.
    • M5 paths are unchanged: is_m5() still picks retained scheduler storage, and the support page size still follows m5. The support page's self-pointers are written through the kernel's mapping, so they don't need GPU access.
  • Nothing pool-related is mapped into client VMs any more (9583ee437211).
    • cache_compute_vm() now installs an empty mapping set under the pool's id. compute_vm_cached() still matches by id, so admission still readies each VM exactly once, and clear_compute_pool_mappings() still drops anything an earlier install left.
    • The completion rings keep their own alias in the kernel lower VM (initdata.rs:1411), which is what the firmware fills. Client VMs no longer get a read-write alias.
    • ComputeShared no longer allocates, so shared_compute() no longer needs the device or UAT handle between the two lock sections. The compute_building handshake and the redundant-install drop are unchanged. The constructor host test follows the new signature.
  • Merged-code rules: no runtime switch, no new constant, no SoC or board gate. Three constants are removed, and the existing is_m5() split is unchanged.
  • Not blocking, for the rows:
    • The compute pool's control still names the page list and run list at low::COMPUTE_POOL_PAGE_LIST and low::COMPUTE_POOL_RUN_LIST, with 25 blocks and cursor 0x18. Nothing backs or maps those addresses now.
    • The J700 evidence (counters never moved over 262,144 compute commands) says nothing consumes the pool today. If some workload ever did, it would fault that client's VM rather than touch shared memory.
    • So the queued J700 and J714s rows should include the long and preempted compute cases (the compute CTS and the gpubench-vk compute rows) to cover it.
Evidence
  • Build at 9583ee437211 with the asahi profile (LLVM, Rust): rust/ and drivers/gpu/drm/asahi/, exit 0. No new warnings in initdata.rs, runtime.rs, context.rs or queue/compute.rs. The only one is this host's rustc deprecation of fetch_update on an unchanged line of context.rs.
  • run-host-tests.py --only g17: 220/220.
  • CI at this head: KUnit asahi, host-tests and apple-build succeed.
  • The J700 and J714s rows and the gpubench-vk A/B are still listed under "Not yet". M4 Pro/Max rows come after the merge.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J700 (MacBook Neo, G17P) at 9583ee437211, against base main 7be48f374c67: PASS, with no change in perf. This also covers #3225's 59942890a5fc, which this branch carries.

Four one-shot boots in ABBA order (base, head, head, base). Both kernels are built from the Neo's 7.3.0-41 config and run with stock Mesa 26.3.0-30. Every boot returned to stock with the install undone and checked against the pre-install baseline.

1. Clean boot. On all four boots: 0 MMU faults, 0 recoveries and 0 WARN/BUG. The three boots that ran to the end also had 0 new kernel error lines compared with stock, 0 core dumps, 0 failed units, and no process stuck in uninterruptible sleep.

On the first base boot, my test script stalled after the reproducer's background render job, which ran 8 minutes because of a setting in my script, and the fallback timer rebooted the Neo. That boot's journal shows no faults, recoveries or hung tasks, and it shut down cleanly. I shortened the job to 40 s for the other boots, and none of them stalled.

2. deqp-vk: 0 differences between base and head, case by case, over 74,660 cases.

3. Smoke: gpubench-vk render.heavy and compute.heavy, and gpubench-gl render.heavy and compute.heavy, all report ok on both arms.

4. Perf (gpubench-vk, us per submit, lower is better): 3 passes per boot, 6 per arm. Noise is the larger of the two arms' boot-to-boot spread. Every row is within noise.

row depth base (boot 1 / boot 2) head (boot 1 / boot 2) head vs base noise
submit.empty 1 1.771 / 1.768 1.750 / 1.771 −0.5 % ±1.2 %
submit.empty 2 1.721 / 1.696 1.697 / 1.700 −0.2 % ±1.5 %
compute.light 1 111.2 / 111.5 111.4 / 107.5 −1.6 % ±3.6 %
compute.light 2 37.38 / 37.61 38.42 / 37.82 +0.9 % ±1.6 %
compute.heavy (alu) 1 1356 / 1355 1356 / 1356 0.0 % ±0.1 %
compute.heavy (alu) 2 1181 / 1182 1182 / 1182 0.0 % ±0.1 %
render.light 1 139.7 / 137.2 138.0 / 138.2 −0.4 % ±1.8 %
render.light 2 53.12 / 52.95 53.32 / 53.05 +0.4 % ±0.5 %
render.heavy (fill, 1080p) 1 692.5 / 692.5 692.2 / 692.2 0.0 % ±0.1 %
render.heavy (fill, 1080p) 2 632.9 / 633.2 623.4 / 628.7 −1.2 % ±0.8 %

5. Retirement counters: "render groups retired on their pass record" and "compute commands retired … without a completion stamp" stayed at 0 on all four boots, the same as base. The driver logs the first one, and no such line appeared.

6. Reproducer (g17peek, run as the ordinary user while a render job runs):

  • Head: every mode (a, c, d, e1, e2, f) reads 0 nonzero words, and the scan (g) finds 0 hits. The write mode (b) ran 992 passes, read back 0 nonzero words and added no "retired on their pass record" lines. The render job completed ok.
  • Base: on both base boots, modes a, c, d, e1 and f return nonzero words (c: 97 descriptor and 21 queue-record words), and the scan finds hits. Mode e2 reads 0 on both arms.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J714s (MacBook Pro 14" M5 Pro, G17S B1) full row at 9583ee437211: PASS. This also counts for #3225: its commit 59942890a5fc is the first of this PR's three commits, unchanged.

Setup:

  • Base is main 7be48f374c67 (this PR's merge-base). Both kernels are warm native builds on the M5 from one tree and config, booted with the default command line, headless and silent. The default kernel (7.3.0-m5-cdirect16) was restored after every boot.
  • Six boots in one session: base (CTS, g17peek); head (CTS, g17peek, smoke, perf); then base (smoke, perf), head (perf) and base (perf).

1. g17peek (chase 0x8000000000 0x9000000000, as an ordinary user): it finds one of its own kick entries on each arm.

descriptor reads queue record reads
base 0 nonzero of 256 words 21 nonzero of 256 words
head 0 nonzero of 256 words 0 nonzero of 256 words

2. deqp-vk (325,316 cases: synchronization 64,872, synchronization2 81,617, compute 67,553, draw 29,475, renderpasses 81,687, plus the 112 #3243 multiview cases). 0 new fails against base:

  • Every group except multiview has the same counts on both arms with 0 Fail. That includes the same 8 global_priority_transition Warns.
  • Multiview is main's drm/asahi g17: multiview query timestamps wrong on main (regression since 11-16, J700) #3243 timestamp failure on both arms, in the same 48 get_query_pool_results cases. Base: 47 Fail + 1 Flake. Head: 47 Fail, with one case of those 48 passing on each arm. All are Fail (timestamp).
  • One case, compute.pipeline.64b_indexing.copy_ssbo_64b, went unrecorded on both arms.

3. Smoke: gpubench-vk (render.light, compute.light, concurrent.cr, render.postfx, compute.heavy at d1/d2) 9/9 ok, and gpubench-gl (all 13 tests, --verify) 13/13 ok, on both arms.

4. Perf A/B, gpubench-vk render.* and compute.* (16 tests × d1/d2, 2 passes per boot), us_per_submit median. Boot order: head, base, head, base.

  • No row moves beyond noise. A row would count if its change were more than twice the larger boot-to-boot spread and more than 1 %. Geomean head/base is 1.004.
  • The largest changes are on the noisiest rows: render.postfx d2 +11.0 % with an 18.4 % head spread, and render.bindless_ubo d2 −10.0 % with a 13.1 % spread.
All 32 rows (base, head, change, base/head boot-to-boot spread)
Test Depth base µs/submit head µs/submit Change Spread
compute.conv2d 1 438.0 439.0 +0.2 % 0.3 / 0.4 %
compute.conv2d 2 286.3 287.4 +0.4 % 0.4 / 0.1 %
compute.cull_mdi 1 1959.6 2011.8 +2.7 % 8.9 / 0.4 %
compute.cull_mdi 2 1037.7 1011.3 -2.5 % 0.4 / 1.8 %
compute.edge 1 361.5 374.0 +3.4 % 0.8 / 5.4 %
compute.edge 2 210.8 215.8 +2.4 % 1.1 / 4.4 %
compute.fp16 1 260.3 260.4 +0.0 % 0.1 / 0.0 %
compute.fp16 2 102.2 100.8 -1.4 % 4.0 / 5.4 %
compute.heavy 1 430.9 430.7 -0.0 % 0.1 / 0.0 %
compute.heavy 2 272.6 272.3 -0.1 % 0.2 / 0.1 %
compute.light 1 164.3 163.6 -0.4 % 0.2 / 0.5 %
compute.light 2 86.0 86.2 +0.2 % 3.1 / 0.6 %
compute.stereo 1 6897.5 6944.4 +0.7 % 1.4 / 0.0 %
compute.stereo 2 6756.8 6756.8 +0.0 % 0.0 / 0.0 %
compute.uber 1 398.7 399.2 +0.1 % 0.6 / 0.7 %
compute.uber 2 243.7 245.4 +0.7 % 0.5 / 0.0 %
render.bindless_ubo 1 826.6 861.7 +4.2 % 0.7 / 9.1 %
render.bindless_ubo 2 637.1 573.4 -10.0 % 1.5 / 13.1 %
render.deferred 1 518.4 517.1 -0.3 % 0.1 / 0.0 %
render.deferred 2 300.5 301.2 +0.2 % 0.1 / 0.0 %
render.heavy 1 309.0 310.8 +0.6 % 1.8 / 0.4 %
render.heavy 2 135.6 138.9 +2.4 % 1.5 / 4.3 %
render.light 1 179.5 180.0 +0.2 % 1.8 / 0.5 %
render.light 2 51.3 52.8 +2.9 % 5.5 / 1.0 %
render.mdi 1 683.0 664.0 -2.8 % 5.3 / 0.8 %
render.mdi 2 332.9 328.7 -1.3 % 1.9 / 1.9 %
render.postfx 1 481.4 486.3 +1.0 % 0.4 / 1.4 %
render.postfx 2 320.1 355.3 +11.0 % 0.6 / 18.4 %
render.shadow 1 912.4 913.2 +0.1 % 0.4 / 0.2 %
render.shadow 2 749.6 750.8 +0.1 % 0.0 / 0.0 %
render.tvb 1 17857.1 17857.1 +0.0 % 0.0 / 0.0 %
render.tvb 2 9615.4 9615.4 +0.0 % 0.0 / 0.0 %

5. Counts against base:

  • "render groups retired on their pass record": 0 on base and 0 on head.
  • "compute commands retired on their completion record … without a completion stamp": 0 and 0.
  • WARN/BUG/Oops: 0 on every boot of both arms.

6. Faults:

  • During the full CTS, both arms showed the same pre-existing fault: a GPU MMU write fault (level 3, requestor 0x4, at 0x5bfd…1c0, "firmware blames queue None") followed by a G17 recovery. Base had 3 recoveries (6 fault lines), head 1 (2 fault lines). No CTS case failed with them.
  • Since the same fault shows on base main, it isn't from this PR. The smoke and perf boots of both arms had 0 faults.

@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 26, 2026 19:27
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 26, 2026 19:27
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 3ed5ddef: not ready yet

Check Detail
CI at head no failing: host-tests, apple-build, host-tests, KUnit ane-boot, KUnit ane-pm, KUnit dcp-fabric
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 3ed5ddef, a Mac and a result in the PR body or a comment
Conflicts ok not computed yet
PR text ok Risk: two-way · G17P GPUs (A18 Pro, M4 Pro/Max); shared drm/asahi G17 code. M5 changes only through #3225's commit.

Areas: area:gpu

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

RyanTheTide
RyanTheTide previously approved these changes Nov 27, 2026

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

Verdict at 9583ee43: approve (code). Merge after the full J700 row at this head that the body lists.

Blockers: none in the code.

Checked

  • Render stamp pages, compute stamp pages, the work-state and scheduler pages and the boot/compute free-list controls and states, all in the upper half every context includes, go from GPU+FW to firmware-only on G17P, as M5 already does.
  • The device-wide compute pool's page list, run list and blocks, and both completion rings, are no longer mapped into client VMs. The pool backing (24 MiB) goes, since nothing else used it.
  • Client GPU work can no longer rewrite state the host retires every client's work on. install_compute_pool_mappings keeps the readiness identity with an empty mapping list.
  • #3225 is merged, so only this PR's own commits are left.
  • The smoke row at 71bb8d31 supports the claim: 262,144/262,144 compute commands retired on their records, the pool counters never moved, raw-address probes read zero, and there were no faults.

Before merge: the J700 row at this head against main (CTS sync, compute, draw, renderpass). The J714s row and the gpubench ABBA/BAAB perf A/B can follow.

@RyanTheTide
RyanTheTide dismissed their stale review November 27, 2026 04:44

Dismissed by the reviewer: this approval wrongly said #3225 was merged. #3225 is still open and unreviewed, and this PR carries its commit. The corrected verdict follows.

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

Corrected verdict at 9583ee43: the code of this PR's own two commits is fine. Hold the merge until #3225 is reviewed and merged and the full J700 row at this head is in. (My dismissed approval wrongly said #3225 was merged. It is open, and this PR carries its commit, so an approval here would land #3225 unreviewed through auto-merge.)

Checked (this PR's commits)

  • Render and compute stamp pages, the work-state and scheduler pages and the boot/compute free-list controls and states, all in the upper half every context includes, become firmware-only on G17P, as on M5.
  • The compute pool's lists and blocks and both completion rings are no longer mapped into client VMs, and the unused 24 MiB backing goes.
  • The smoke row at 71bb8d31 supports it: 262,144/262,144 retired on records, the pool counters were idle, raw-address probes read zero, and there were no faults.

Before merge

  1. #3225 reviewed and merged.
  2. This branch updated (it's DIRTY now).
  3. The J700 row at the new head against main.

@RyanTheTide
RyanTheTide disabled auto-merge November 27, 2026 04:44
@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 27, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train note: <@422957901716652033>, this conflicts with main after tonight's merges. Please merge main in (normal push). The review continues at the new head: App review, CI, and an exact-head hardware row.

Bring the branch up to date with main. main made the G17P compute
descriptors firmware-cached (#3186); this branch maps them firmware-only.
Keep both: cached on G17P as main does, firmware-only on every G17.

Signed-off-by: Ryan Murray <[email protected]>
…n-state

Take #3225's forward merge of main, which this branch builds on. main
made the G17P work-state pages firmware-cached; this branch maps them
firmware-only. Keep both: cached on G17P as main does, firmware-only on
every G17, which leaves kernel_prot unused, so drop it.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

@DjDeveloperr: merged #3225's new head 6bf659451f28 (its forward merge of main) into this branch (normal push, no rebase); new head 3ed5ddefa9e6.
Conflict in g17/context.rs: main made the G17P work-state pages firmware-cached, and this PR makes them firmware-only. The merge keeps both: cached on G17P, PROT_FW_SHARED_RW on every G17. That leaves kernel_prot unused, so it is dropped, as your commit already did. The diff against main is the same as your three commits' apart from comment wrapping.
Tests: tools/asahi/run-host-tests.py --only g17 283/283 pass. No local Rust kernel build, so CI covers that.
Still needed: #3225 to land first, then the J700 CTS sync/compute/draw/renderpass row plus J714s at this head, the gpubench-vk A/B, and App review at head.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: HOLD at 3ed5ddef

Blockers:

  • Stacked on #3225 (carries #3225's commits; #3225 must land first).
  • Hosted CI checks on 3ed5ddef are still queued (apple-build, host-tests, KUnit matrix, pr-readiness, pr-text).
  • Exact-head hardware rows on 3ed5ddef are still needed on J700 (G17P: CTS sync/compute/draw/renderpass vs main, plus gpubench-vk A/B) and J714s (M5), because forward-merging main (#3186) combines G17P firmware-cached work-state and compute descriptor pages with PROT_FW_SHARED_RW for the first time (the prior PASS rows were at 9583ee43 before #3186).

Checked:

  • Forward-merge resolution (3ed5ddef, DCO on all 5 commits, MERGEABLE on main):
    • drivers/gpu/drm/asahi/g17/context.rs: cleanly combines main's G17P firmware-cached work_state prefix (if alloc.uat.is_m5() { 0 } else { UAT_PGSZ }) with mmu::PROT_FW_SHARED_RW and drops now-unused kernel_prot.
    • drivers/gpu/drm/asahi/g17/initdata.rs: removes unused 24 MiB ComputeShared backing (pages, runs, blocks), keeps id for VM readiness tracking (cache_compute_vm() clears old mappings and installs empty KVec::new() under shared.id so compute_vm_cached() stays idempotent), and moves boot/compute free-list controls/states and render stamp pages (DESCRIPTOR_PAGE_A/B) to PROT_FW_SHARED_RW/PROT_FW_PRIV_RW (preserving the private/shared split).
    • drivers/gpu/drm/asahi/g17/queue/compute.rs: moves compute support (completion stamp) page to PROT_FW_SHARED_RW on both M5 and G17P.
    • drivers/gpu/drm/asahi/g17/runtime.rs & tools/asahi/g17-compute-constructor-tests.py: ComputeShared::new() drops unused dev/uat/alloc outside the mutex while preserving compute_building serialization and matching host-test fixture.
  • Host tests reported passing locally (run-host-tests.py --only g17 283/283).
Evidence
  • Diff vs main: +78/-138 across 7 files, 5 commits (59942890, 7eeb3974, 9583ee43, 6bf65945, 3ed5ddef), DCO on all 5, MERGEABLE on main.
  • Code and merge-resolution audit found no blockers; ready to approve once #3225 merges, hosted CI completes green, and the exact-head J700 + J714s rows pass.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) ci-failing A check failed at the PR head (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 30, 2026

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: MERGE at 3ed5ddefa9e6

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Forward-merge resolution (3ed5ddef, DCO on all 5 commits, MERGEABLE on main):

  • drivers/gpu/drm/asahi/g17/context.rs: cleanly combines main's G17P firmware-cached work_state prefix (if alloc.uat.is_m5() { 0 } else { UAT_PGSZ }) with mmu::PROT_FW_SHARED_RW and drops now-unused kernel_prot.
  • drivers/gpu/drm/asahi/g17/initdata.rs: removes unused 24 MiB ComputeShared backing (pages, runs, blocks), keeps id for VM readiness tracking (cache_compute_vm() clears old mappings and installs empty KVec::new() under shared.id so compute_vm_cached() stays idempotent), and moves boot/compute free-list controls/states and render stamp pages (DESCRIPTOR_PAGE_A/B) to PROT_FW_SHARED_RW/PROT_FW_PRIV_RW (preserving the private/shared split).
  • drivers/gpu/drm/asahi/g17/queue/compute.rs: moves compute support (completion stamp) page to PROT_FW_SHARED_RW on both M5 and G17P.
  • drivers/gpu/drm/asahi/g17/runtime.rs & tools/asahi/g17-compute-constructor-tests.py: ComputeShared::new() drops unused dev/uat/alloc outside the mutex while preserving compute_building serialization and matching host-test fixture.
  • Host tests reported passing locally (run-host-tests.py --only g17 283/283).

Follow-ups (not blocking): Merge parent #3225 first; follow-ups: queued CI, J700/J714s rows

This branch has not been deployed

No deployments
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:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants