Repository navigation
asahi: admit the M5 Ultra (G17D) as one row of the chip table, so Vulkan runs on the Mac Studio's GPU instead of failing at device open - #362
Conversation
fc37300 to
f6175cd
Compare
|
Thanks for bringing up the M5 Ultra and for the clear write-up. One request on point 3. We select behaviour by a hardware property, not by the machines a fix was tested on. The flush after internal graphics launches is applied to G17D only:
The reason given, that software stages hand outputs to the next launch through memory with no application barrier in between, holds on every M5 part. Could the flush apply to all M5 parts (as it already does on G17P), or, if G17G/G17S/G17C are known to order these launches in hardware, cite that in the comment? The rest of the bring-up (the new chip entry, admission contract and helper-table offsets) looks fine to us. We can run no-regression rows on our A18 Pro and M4 Pro for the shared launch helper. |
f6175cd to
386634c
Compare
|
Thanks, done: the flush after internal graphics launches now applies to every M5 part, as it does on G17P. The G17D emits the same commands as before, so the M5 Ultra results in the description stand. We have not measured the other M5 parts. The 66 tessellated cases listed in the description, run on an M5, M5 Pro or M5 Max, would cover the parts that changed. The A18 Pro and M4 Pro paths emit the same as before. Also rebased onto aurora-wip at 11ab5f0. The only conflict was in your new |
|
Thanks, applying the flush after internal graphics launches to every M5 part, with the reason in the comment and the test expecting it, covers what we asked. The M5 Ultra results stand; the remaining item is the 66 tessellated cases on an M5, M5 Pro or M5 Max, which we will try to line up from an owner since we have no M5 ourselves. |
|
@funkzy, we'd like to merge this. aurora-wip has moved since 11ab5f0 (139 commits, now 4596393), and the PR conflicts again. Could you rebase it? If you'd rather we did it, say yes here and we'll push the rebase to We rebased it locally to start review and testing. Branch The conflict. There is one, in Please check this on the M5 Ultra. Because G17D is now in
If any of these shouldn't apply to G17D yet, an explicit exclusion in your rebase is fine. Otherwise, rerunning the 628-case subset and the compute and chained-submit checks on J775D after the rebase would cover them. Testing on our side. We're putting the rebased series through an independent review, local build and unit checks (including |
|
Independent review of the rebased series ( Verdict: NOT CLEAN. The one blocking item comes from the rebase, not from the four commits. No correctness bug was found in the commits themselves. Rebase. Findings
Correction to my earlier comment. (a) G17G/G17S/G17C. Apart from commit 3, their behaviour is unchanged:
(c) LDIMM. 0x800 becomes byte 5 = 0x04 and 0x1000 becomes byte 5 = 0x08 (imm[12:11] at instruction bits 42-43). Both decode back exactly. The destination, the 8-byte form and the container size are all unchanged. (d) Admission. G17D is admitted only as 0x6050, variant D, two dies, eight clusters, USC 3, HAL 300. The tests cover the 1-die, 4-cluster, 0x6051, HAL 200 and variant-C-with-2-dies refusals. (b) Commit 3 on G17S. By the code's contract the flush is needed on every M5 part. The M5 weak launch tail orders the next launch but does not publish writes ( The cost lands only on tessellated, geometry-shader and XFB draws: +2 strong tails per draw, up to +4 with tess+GS or with statistics and primitives-generated queries. Plain draws, mesh/task, compute, meta and libagx are unaffected. M5 Pro (G17S) row, queued with the hw lock, FIFO, two ≤30-min slots. It uses three builds on the M5:
The dEQP gate, about 32k cases per build, covers:
Perf rows are gpubench render rows (control) and a Geekbench Vulkan A/B. Results will follow here. |
|
Thanks for the rebase review. One request on the G17D question: we would prefer the J775D rerun on the rebased branch over excluding G17D from |
|
@RyanTheTide, agreed: no exclusion. G17D stays in Local checks on the rebased series pass. I ran them on an aarch64 host, -j2, Vulkan configuration with tests. Every commit (a920130a, c759d8fb, fd34202c and 657cb956):
The x86 asahi.yml CI run (Gallium + Vulkan, drm-shim) will follow when our offload builder is back. @funkzy: to merge, we need two things from you.
The M5 Pro (G17S) row for commit 3 is still queued on our side. |
|
@DjDeveloperr, thanks. We'll do the rebase ourselves, onto the current aurora-wip head, and rerun the J775D checks (compute, chained submits, 46 clients and the 628-case subset) on it before pushing to |
386634c to
4c9f43e
Compare
|
dj, RyanTheTide: thanks. Rebased onto aurora-wip 82af196 and rerun on the Mac Studio (J775D, 27.2 stub), with The two M5 defaults. G17D keeps both, as you suggested.
A failure from #552 on the M5 Ultra. Under #552's per-resource rule these fail on the J775D:
With Why only the M5 Ultra? We don't know. Its two dies are one guess. It is not tested, and nothing we have shows it. Commit 5 gives the M5 Ultra's compute barriers memory scope, through one predicate,
G17G, G17S and G17C keep #552's rule and the plain record, and no call site names a chip. If the cause turns out to dj, ewb: could one of you run the six cases on an M5 Max (J716c) or M5 Pro, under the default rule (no deqp-vk --deqp-case='dEQP-VK.compute.pipeline.basic.copy_image_to_ssbo_*'
deqp-vk --deqp-case='dEQP-VK.compute.pipeline.basic.copy_ssbo_to_image_*'
deqp-vk --deqp-case='dEQP-VK.compute.pipeline.basic.image_barrier_multiple'
deqp-vk --deqp-case='dEQP-VK.compute.pipeline.basic.ssbo_cmd_barrier_multiple'Rebase. One conflict, in With all five commits, on one boot: the compute subset 104 pass / 13 not supported (twice), the ycbcr sample |
|
Thanks for the rebase and the J775D reruns. Keeping both M5 defaults on G17D settles our earlier question. For commit 5, |
4c9f43e to
9cc49df
Compare
RyanTheTide
left a comment
There was a problem hiding this comment.
No blockers. Re-checked at 9cc49df against 4c9f43e. Only the admission commit changed, and the change is the shared refusal table we asked for on #363.
agx_drm_names.h stays libc-only. agx_gallium_refuses_gpu() matches by compatible or by chip name, and agx_screen_create() now refuses through it by agx_chip_name(), so the check still works under virtio, where no device tree is visible. The new test-chip-admission loop checks that G17D is refused and that every other chip is not, both by chip name and by compatible. The comment now says "zink over Borealis". The other four commits are byte-identical in git range-diff.
Assisted-by: LLM (Claude:Opus 5.5)
9cc49df to
1a25e46
Compare
|
@funkzy |
|
@DjDeveloperr Exact-head J775D (Mac Studio, M5 Ultra,
Ready for re-review and merge-train queueing. |
Merge aurora-wip (e23b654) into g17d-admission, resolving the shader binary version assertion conflict in src/asahi/vulkan/tests/test-hk-execution-allowance.c (keep AGX_CHIP_G17D on the updated AGX3 binary version 51 alongside AGX2 version 38 and classic version 39). Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
…ches After merging aurora-wip (e23b654), hk_emit_fused_compute_dispatch() built an M5 program descriptor without usc_clusters (causing agx3_g17g_compute_program_generate() to fail and silently fall back to unfused submission on every M5 part) and bound the launch without ordering_memory_scope (omitting the multi-die memory-scope ordering record on G17D). Route all five M5 compute program/launch sites and hk_m5_loader_create() in hk_cmd_dispatch.c through shared helpers (hk_m5_compute_program_desc_set_device(), hk_m5_compute_program_generate(), and hk_m5_compute_launch_bind()) so compute cluster count and multi-die memory scope are derived from hk_device in one place, and add fused M5 dispatch tests (G17G plain 0x60000160, G17D memory-scoped 0x6000017c, and zero-cluster refusal) in test-hk-compute-pair-cache.c. The remaining graphics/G18 usc_clusters sites in hk_cmd_draw.c, hk_cmd_buffer.c, and hk_shader.c are left as a separate follow-up. Also partition AGX_CAPS_M5 into AGX_CAPS_G17D_MEASURED and AGX_CAPS_G17D_EXCLUDED in agx_chip_caps.h with a disjoint-cover check in test-chip-caps.c so new M5 capabilities stay off on G17D until assigned. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Merge aurora-silicon/mesa aurora-wip (a734049) into g17d-admission, keeping both the G17D and updated G18G comment lines in agx_chip.h and dropping the deleted hk_build_g17g_bg_eot() hunk in hk_cmd_draw.c (its replacement hk_build_m5_bg_eot() already populates .usc_clusters). Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
|
Merged current
Exact-head verification at
Ready for re-review and merge, @DjDeveloperr @satchlj. |
There was a problem hiding this comment.
Verdict merge at 0bb4666a07ef. Thanks, Jeff.
Blockers none.
Checked
- Since
e2401a84bd45, the two merges of aurora-wip move the series onto the per-chip preprocess entry points:agx_preprocess_nir_m5_chip()and the defer-idiv variant take the device's chip. The fixed-G17G wrappers are now called only from tests, so G17D never gets the signed-zero select it excludes. AGX_CAPS_M5gains the overlap-split and cached-command-memory bits from aurora-wip. G17D lists both as excluded, and the measured and excluded sets still coverAGX_CAPS_M5with no overlap. MOD3 register-bank RA stays off on G17D.0bb4666a0: G18G general tile programs are composed as one-cluster G17G before re-encoding, so the helper base stays at 0x200 for any cluster count. The new test checks this for 2 and 4 clusters.- The flagged chip lines are all comments. Admission and routing key on chip-table properties.
- Rows: the J714s row at this head matches its merge-base (97,036 cases; the only failures are submit out-of-memory flakes at 16 jobs, seen on base too). The J775D row at #363's head
f7a1a3f3a9c8, which carries this head unchanged, passes.
|
GitHub reports conflicts against current |
Merge aurora/aurora-wip (67e2a2f) into aurora-silicon#362 (e2401a8), reconciling G17D admission with the upstream M5 capability, compression, cached compute loader, and execution-allowance updates: - Partition AGX_CAPS_M5 in agx_chip_caps.h into AGX_CAPS_G17D_MEASURED (ELIDE_APP_DISPATCH_BARRIER, COOPERATIVE_MATRIX, SPARSE_BINDING, GEN10_2D_COMPRESSION) and AGX_CAPS_G17D_EXCLUDED (VDM_INDIRECT_INDEX_BOUNDS, HW_TXF_BOUNDS, DESCRIPTOR_BUFFER, COALESCE_PURE_GLOBAL_WORKGROUPS, CDM_WAR_WEAK_BARRIER, SIGNED_ZERO_MINMAX_SELECT), matching test-chip-caps.c and test-hk-compression-contract.c. - Replace the compile-time AGX_M5_SIGNED_ZERO_SELECT macro in agx_compile.c with chip-aware agx_preprocess_nir_m5_chip() and agx_preprocess_nir_m5_defer_idiv_chip() querying agx_chip_has_cap(), and route all runtime Borealis (hk_shader.c) and Gallium (agx_state.c) callers through them so G17D's exclusion stays enforced from one source. - Route the cached fused compute loader in hk_cmd_dispatch.c through hk_m5_compute_launch_bind() and hk_m5_compute_program_generate() so G17D keeps its 8-cluster helper group and multi-die memory-scoped ordering. - Populate num_clusters_total in graphics_launch_replay_correctness() (hk_cpu_upload_bench.c) for M5 chips including G17D. - Reconcile test-chip.c (Gen5 LOD bias), test-hk-execution-allowance.c (binary version 52), and test-hk-g17p-compression.c. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Merge aurora-wip (8c74e92): update the G17D shader binary version expectation in test-hk-execution-allowance.c from 52 to 53, add AGX_CAP_CDM_OVERLAP_SPLIT and AGX_CAP_CACHED_CMD_MEMORY to AGX_CAPS_G17D_EXCLUDED until measured on J775D, and gate test_cdm_overlap_splits() in test-hk-sync-prior.c on AGX_CAP_CDM_OVERLAP_SPLIT while covering G17D in its excluded list. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
… helper base hk_m5_tile_program() generates G18G general HAL300 tile programs by calling the M5 composer as AGX_CHIP_G17G and then re-encoding the canonical GPU1 output with agx3_transcode_agx3d_ioto(). Because the M5 composer now scales its SR14 helper base by desc->usc_clusters while agx3_transcode_agx3d_ioto() accepts only 0x100/0x200 and doubles it, passing a multi-cluster G18G device's num_clusters_total (2 on J873) shifted the transcoded G18G tile helper base from 0x200 to 0x400, and >2 clusters would fail transcoding. Add agx3_g18g_general_tile_program_generate() to compose the intermediate G17G tile program with usc_clusters = 1, route hk_m5_tile_program()'s G18G branch through it, and verify in test-g18g-reencode-cache that 2- and 4-cluster G18G tile descriptors transcode to SR14 helper base 0x200 and match agx3_g18g_tile_program_generate() byte for byte. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Bring aurora-silicon#363 onto the updated aurora-silicon#362 merge commit (98f96bb) over aurora/aurora-wip (67e2a2f). Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
|
Merged current
Exact-head J775D (
Ready to merge ahead of the |
|
J714s (MacBook Pro 14" M5 Pro, G17S B1) row at
|
|
Thanks, Jeff. One thing has to change before this can merge. #1111 landed on aurora-wip after your last forward merge. It adds MOD3 register-bank RA hasn't been measured on the M5 Ultra, so please merge the current aurora-wip into the branch, then:
That changes nothing on the J714s or J775D, so the rows at this head still apply. Once the merge-result CI is green, #362 and then #363 merge. |
Replace the per-fill VkBufferView and PBE image-store path (08a8a66, extended to native AGX3 in 3ee8572 and M5 in 83eb346) with an 8x-unrolled 256-thread global uint4 store compute shader on native AGX3 and M5 (inside hk_xfer_fillbuffer's existing agx_chip_native_or_m5 branch; AGX2 and G18G stay untouched on libagx_fill). Each workgroup writes 32 KiB (256 threads x 8 uint4 stores). Engage for 16-byte-aligned fills (including sparse and captured-address buffers) at size >= MAX2(8 MiB, agx_get_num_cores() * 32 KiB) so smaller in-cache fills stay on vk_meta_fill_buffer_addr (1 KiB workgroups) without 32 KiB/WG partial-wave tail loss, while large fills benefit from the 8x unroll and alternating forward/reverse sweep order (0bce194) without per-fill buffer view or PBE descriptor setup (-31 net lines). Measured headless A1/B1/B2/A2 on J775D (M5 Ultra, 80 cores, with aurora-silicon#362): +26.6% at 8 MiB (845.7 vs 668.2 GB/s), +29.9% at 16 MiB (896.6 vs 690.4 GB/s), +37.7% at 32 MiB (954.4 vs 693.0 GB/s), and +53.6% at 64 MiB (1301.2 vs 847.4 GB/s), with fills below 8 MiB unchanged. On J714s (M5 Pro, 20 cores, G17S), the same shader measured +26.4% at 8 MiB, +12.6% at 16 MiB, +58.1% at 32 MiB, and -3.1% at 64 MiB (297.5 vs 307.0 GB/s, both near the DRAM limit where base used PBE), while the 8 MiB floor keeps 1-4 MiB unchanged on vk_meta_fill_buffer_addr. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Conflicts: - agx_chip.h: G17C keeps both M5_LAYER_OPERAND (this branch) and TRI_MERGE_ACROSS_SIDE_EFFECTS (aurora-wip). G17D gets neither quirk. - test-chip.c: tri_merge row now on for G17G/G17S/G17C and off for G17D. - agx_state.c: keep .usc_clusters from this branch and take program_va = 0 from aurora-wip (it is set after the allocation now). aurora-wip also added TRI_MERGE_ACROSS_SIDE_EFFECTS and MOD3_REG_BANK_RA to AGX_CAPS_M5. Neither is measured on the M5 Ultra, so both go to AGX_CAPS_G17D_EXCLUDED, and G17D joins the MOD3 comment's "off on" list. That keeps G17D's capabilities exactly as before. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Brings in the forward-merge of aurora-wip into g17d-admission (aurora-silicon#362). No conflicts. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
funkzy's 24 h window on Dj's 11-26 request passed with no push, so as maintainers we merged aurora-wip (fa8970c; still merges cleanly with the newer 29bdd67) into Conflicts and how they were resolved:
Dj's request: Local x86 drm-shim gate (asahi + poly suites) at |
|
Hold: at the forward-merged head, rows are still owed. A regression row on two non-M5 lab Macs is running now (shared code in hk_cmd_dispatch.c / agx_state.c / the IOTO program core changes for every chip). The approvals above are from before the forward-merge. Please don't merge before the row comment lands. |
|
Regression row at
This covers regression on G13S and G16G only. G17D itself needs the M5 Ultra rows. |
|
Merged. Conditions from Dj's 11-26 note: aurora-wip merged in, MOD3 (and TRI_MERGE) added to the G17D exclusions, local gate 338/338, Dj's J714s/J775D rows still valid, and regression rows on J713 + M1 Pro with 0 new failures. aurora-wip tip after #362 gates 338/338. Revert: |
There was a problem hiding this comment.
Post-merge resolution review at 963b466bf069fb85d91f6d67ef4c9c06ffebea62.
I found no revert trigger in the integration reviewed. The G17D measured and excluded capability lists preserve the single-die M5 defaults and exclude MOD3 and cross-side-effect TRI_MERGE on G17D. The program construction keeps the cluster count and the deferred address/relocation path. The landed delta in agx_state.c leaves the resolved graphics block intact. Reviewed the posted J713 and M1 Pro matched-run evidence and the 338/338 gate.
What: Admit the M5 Ultra (G17D, T6050, 2 dies, 8 clusters) as one row of
AGX_CHIPS/AGX_CHIP_CAPSandagx_params_m5_supported(), move M5 layered-store / index-list / profile-loader helper offsets / Gallium-through-zink / multi-die CDM memory-scope decisions onto the chip table and kernel-reported cluster/die counts (keeping G18G general tile programs on the 1-cluster G17G helper base), flush after internal graphics launches on every M5 part, route all Borealis M5 compute program generation and binding (including fused compute and its cached loader) through shared device-seeded helpers, and keep unmeasured M5 capabilities excluded on G17D via chip-table queries.Tested: J775D (Mac Studio, M5 Ultra,
G17D B1) at0bb4666a07efonaurora-wip8c74e92d5162(buildmesa-362m11, standalone, bareaurora-silicon/linuxmainf3bfe5007089, kitpr2884-m1b(windowm5u-mesa362m13@20261125-1814), 27.0 stub, published Auramain7bf44a6374af, default env):vulkaninfo --summaryreportsApple M5 Ultra (G17D B1)/ Borealis / Vulkan1.4.363, 628-case render CTS subset 571 Pass / 57 NotSupported / 0 Fail,dEQP-VK.compute.pipeline.{basic,indirect_dispatch}104 Pass / 13 NotSupported / 0 Fail (all 6 compute barrier cases pass),host_image_copy1-in-8 1,783/3,527/0,ycbcr1-in-8 5,634/2,886/0, Gen10 2D compression sample (render_to_image,clear_color,copy_and_blit,texture.mipmap, 1,200 cases) 496 Pass / 704 NotSupported / 0 Fail, Gen5 LOD bias 17/0,VK_EXT_depth_clip_control17/0,VK_EXT_fragment_shader_interlock192 Pass / 384 NotSupported / 0 Fail,vkcomputeplain & burst 20/20,vkchain300/300 (median 126 us),vktimestamp10/10, 46 concurrent clients 46/46,vkmark24012,0GPU faults/recoveries/oops,1/1baseline failed unit (iwd.service; ALARM has no SELinux). Host aarch64 Lima VM packaged configuration:meson test --suite asahi324/324 OK (0fail, includingasahi-g18g-reencode-cachemulti-cluster G18G tile helper-base checks) plusmeson test --suite zink2/2 OK.Risk: two-way door · commit 2 adds
G17D(shiftsG18Genum value by 1, updating itsoptimalTilingLayoutUUIDonce); commit 3 moves M5 Max (G17C) profile-loader helper offsets from0x200/0x400to0x400/0x800(derived from its 4-cluster count; earlier0a8eda4c78e1ran on J716C); commit 4 adds a flush after internal graphics launches on all M5 parts (G17G/G17S/G17C/G17D; performance impact on single-die M5 is unmeasured); commits 5–6 affect G17D only; commit 7, theaurora-wipmerges, and0bb4666a07efkeep fused M5 compute enabled on all M5 parts with G17D memory scope, keep unmeasured M5 capabilities (COALESCE_PURE_GLOBAL_WORKGROUPS,SIGNED_ZERO_MINMAX_SELECT,CDM_OVERLAP_SPLIT,CACHED_CMD_MEMORY, etc.) excluded on G17D, and keep G18G general tile programs emitting the existing0x200SR14 helper base byte for byte.Not yet: J716C (M5 Max) re-check at
0bb4666a07ef(earlier0a8eda4c78e1J716C row passed multi-draw tessellation 4,512/4,512 and compute pipeline); single-die M5 / M5 Pro row for commit 4 (tessellated draws) and commit 6 (6 compute barrier cases under plain barriers); follow-up unifying.usc_clustersseeding on the remaining 9 graphics/G18 call sites.Details
Problem
The M5 Ultra (T6050, two dies, eight clusters) reports G17 variant D.
aurora-wipmaps that toAGX_CHIP_UNKNOWN, so on the Mac Studio (J775D) every Vulkan, GL, and GBM client fails at device open withUnsupported Apple GPU architecture G17 (variant 0x44, 8 clusters).Why this shape
Since
#588a chip is one row ofAGX_CHIPS(paired withAGX_CHIP_CAPS), and this series makes G17D one row of that table, its variant letter inagx_chip_from_identity(), and its admission contract. After#588, three decisions still named chips: the M5 layered-store form (copied four times), the M5 index-list form, and the profile loader's helper-table offset (a raw byte per chip). A narrower shape would add G17D to every list and keepchip == AGX_CHIP_G17Dtests, forcing the next M5 part to repeat those edits. Instead, chip properties live on the row (AGX_QUIRK_M5_LAYER_OPERAND,AGX_QUIRK_GL_THROUGH_ZINK,AGX_RECORD_CDM_ORDERING_FLUSH_MEMORY) and machine-varying geometry comes from kernel-reportednum_clusters_totalandnum_dies.When merging current
aurora-wip(8c74e92d5162), every Borealis M5 compute dispatch and loader path (hk_dispatch_precomp_m5,hk_dispatch_preamble_cs,hk_dispatch_m5_native,hk_dispatch_g17g_native,hk_emit_fused_compute_dispatch,hk_m5_loader_create, and the cached fused compute loader inhk_cmd_dispatch.c) goes through shared device-seeded helpers so.usc_clustersand.ordering_memory_scopecome from one place. G17D'sAGX_CAPS_M5bits (12 caps) are partitioned intoAGX_CAPS_G17D_MEASURED(ELIDE_APP_DISPATCH_BARRIER,COOPERATIVE_MATRIX,SPARSE_BINDING,GEN10_2D_COMPRESSION) andAGX_CAPS_G17D_EXCLUDED(VDM_INDIRECT_INDEX_BOUNDS,HW_TXF_BOUNDS,DESCRIPTOR_BUFFER,COALESCE_PURE_GLOBAL_WORKGROUPS,CDM_WAR_WEAK_BARRIER,SIGNED_ZERO_MINMAX_SELECT,CDM_OVERLAP_SPLIT,CACHED_CMD_MEMORY) withtest_g17d_partitions_m5()pinning disjointness and full coverage. All 7 runtime callers of M5 NIR preprocessing (6 inhk_shader.c, 1 inagx_state.c) passdev->chipintoagx_preprocess_nir_m5_chip()/agx_preprocess_nir_m5_defer_idiv_chip(), queryingagx_chip_has_cap(chip, AGX_CAP_SIGNED_ZERO_MINMAX_SELECT)from the chip table instead of a compile-timeAGX_CAPS_M5macro. For G18G general tile programs,agx3_g18g_general_tile_program_generate()keeps the intermediate G17G tile program atusc_clusters = 1soagx3_transcode_agx3d_ioto()continues to double0x100to the existing G18G0x200SR14 helper base regardless of G18G's cluster count.Admission (
agx_params_m5_supported()) remains narrow and identity-keyed (SoC ID, variant, dies, clusters), matching the existing M5 admission model until kernel-capability admission replaces it across all M5 parts.Change
Six feature commits, fused-compute helper commit (
0fbe9e82ac28), normal non-force-pushaurora-wipmerges up to8c74e92d5162(4a69a4e255fd), and the G18G general tile helper-base fix (0bb4666a07ef):asahi: read the M5 layered-store form and the M5 index-list form from the chip table(7cc623dba5d, no behaviour change): addAGX_QUIRK_M5_LAYER_OPERANDonG17Cand move the layered-store and index-list checks onto the chip table.asahi: recognise the M5 Ultra (G17D) as one row of the chip table(6d0bcbff3bd): addAGX_CHIP_G17DtoAGX_CHIPSandAGX_CHIP_CAPS, updateagx_chip_from_identity(), and extend chip truth-table and capability tests.asahi: point every M5 program's profile loader at the helper tables the kernel's cluster count lays out(f191c7bb9ba): derive M5 profile-loader helper offsets fromnum_clusters_total(refusingusc_clusters == 0), fixing the 8-cluster G17D and 4-cluster G17C offsets and ensuring everyagx3_g17p_graphics_program_descbuilder populates.usc_clusters.borealis: flush after internal graphics launches on every M5 part(4419ea8fda9): emit a memory-scopedhk_cdm_cache_flush()after internal graphics launches on M5, fixing 66 tessellated render CTS cases on J775D, withhk_internal_stage_flushtest coverage.asahi: admit the M5 Ultra (G17D)(f9622122916): admit G17D (T6050, 2 dies, 8 clusters) inagx_params_m5_supported(), setAGX_QUIRK_GL_THROUGH_ZINKso Gallium refuses G17D while Borealis runs Vulkan/zink, and add the G17Ddrm-shimprofile (hk-g17d-global-priority-allow).borealis: give the compute barriers of a multi-die M5 GPU memory scope(0a8eda4c78e): addAGX_RECORD_CDM_ORDERING_FLUSH_MEMORY(1 << 24, avoiding#438's1 << 23) on G17D andagx_cdm_ordering_memory_scope()(num_dies > 1 && agx_chip_g17_m5() && has_record), routing multi-die M5 compute ordering records and barriers through memory scope.borealis: keep fused M5 compute enabled and scope M5 Ultra fused launches(0fbe9e82ac28, afteraurora-wipmerge9701aa353879): seed.usc_clustersand.ordering_memory_scopefromhk_devicein one place across Borealis M5 compute paths, partitionAGX_CAPS_M5intoAGX_CAPS_G17D_MEASUREDandAGX_CAPS_G17D_EXCLUDED, and add fused M5 / G17D memory-scope / zero-cluster tests intest-hk-compute-pair-cache.c.Merge branch 'aurora-wip' into g17d-admission(e2401a84bd45,98f96bb0df6b, and4a69a4e255fd): normal non-force-push merges up toaurora-wip8c74e92d5162:hk_cmd_dispatch.cthroughhk_m5_compute_launch_bind()andhk_m5_compute_program_generate().AGX_CAPS_M5entries (GEN10_2D_COMPRESSIONinAGX_CAPS_G17D_MEASURED;COALESCE_PURE_GLOBAL_WORKGROUPS,SIGNED_ZERO_MINMAX_SELECT,CDM_OVERLAP_SPLIT, andCACHED_CMD_MEMORYinAGX_CAPS_G17D_EXCLUDED).AGX_M5_SIGNED_ZERO_SELECTmacro inagx_compile.cwith chip-awareagx_preprocess_nir_m5_chip()/agx_preprocess_nir_m5_defer_idiv_chip()queryingagx_chip_has_cap(chip, AGX_CAP_SIGNED_ZERO_MINMAX_SELECT)at all 7 runtime callers (6 inhk_shader.c, 1 inagx_state.c).num_clusters_total(1/1/1/2/4/8, includingG17D) inhk_cpu_upload_bench.c:graphics_launch_replay_correctness()and restore0on teardown.test-hk-execution-allowance.cshader binary version expectation forG17Dfrom52to53, and gatetest_cdm_overlap_splits()intest-hk-sync-prior.conAGX_CAP_CDM_OVERLAP_SPLITwhile coveringG17Din its excluded list.borealis,asahi: keep G18G general tile programs on the 1-cluster G17G helper base(0bb4666a07ef): addagx3_g18g_general_tile_program_generate()(usc_clusters = 1) and routehk_m5_tile_program()'s G18G branch through it so multi-cluster G18G parts keep emitting the existing0x200SR14 helper base afteragx3_transcode_agx3d_ioto()(preventing0x400on 2-cluster J873 or transcode refusal above 2 clusters), covered intest-g18g-reencode-cache.c.Open rows & follow-ups
.usc_clustershelpers to the remaining 9 graphics/G18agx3_g17p_graphics_program_desccall sites (outside this merge's compute path).dEQP-VK.draw.renderpass.multi_draw.*tess*and the 6 compute barrier cases under plain barriers (noASAHI_M5_HOST_ALIAS_STATIC).0a8eda4c78e1J716C row passed multi-draw tessellation (4,512/4,512), compute pipeline (80/81), and indirect dispatch (24/36); re-verify at0bb4666a07efif desired.aurora-silicon/linux#1973,#1173,#1650, and#2185have now merged; our two G17D 27.2 kernel commits remain in draftaurora-silicon/linux#2866.Evidence
Testing
Own row: J775D (Mac Studio, M5 Ultra,
G17D B1) at0bb4666a07efonaurora-wip8c74e92d5162Build
mesa-362m11(standalone, no needs), running on bareaurora-silicon/linuxmainf3bfe5007089, kitpr2884-m1b(windowm5u-mesa362m13@20261125-1814), 27.0 stub, published Auramain7bf44a6374af, default command line and default environment (noASAHI_M5_BRINGUPorMESA_LOADER_DRIVER_OVERRIDE):meson test --suite asahi324/324 OK, 0 FAIL (includingasahi-g18g-reencode-cacheverifying 2- and 4-cluster G18G BG/EOT tile programs transcode to SR14 helper base0x200and matchagx3_g18g_tile_program_generate()byte for byte,hk_sync_prior,hk_cpu_upload,asahi-agx-chip,asahi-agx-chip-capswithtest_g17d_partitions_m5,hk_compute_pair_cache,hk_compute_pair,agx_tests,test-chip-admission,test-agx-ioto-program-core,agx3_m5_programs,hk_internal_stage_flush,hk-g17d-global-priority-allow,test-hk-execution-allowance,test-native-feature-defaults,asahi-egl-priority-*);meson test --suite zink2/2 OK, 0 FAIL.vulkaninfo --summary:Apple M5 Ultra (G17D B1),Borealis, Vulkan1.4.363,Mesa 26.3.0-devel (git-0bb4666a07).dEQP-VK.compute.pipeline.{basic,indirect_dispatch}(117 cases):basic: 80 Pass, 1 NotSupported, 0 Fail (all 6 compute barrier cases pass:copy_image_to_ssbo_{small,large},copy_ssbo_to_image_{small,large},image_barrier_multiple,ssbo_cmd_barrier_multiple).indirect_dispatch: 24 Pass, 12 NotSupported, 0 Fail.dEQP-VK.image.host_image_copy.*(1-in-8 sample, 5,310 cases): 1,783 Pass, 3,527 NotSupported, 0 Fail.dEQP-VK.ycbcr.*(1-in-8 sample, 8,520 cases): 5,634 Pass, 2,886 NotSupported, 0 Fail (2 s).aurora-wipfeature coverage on J775D (G17D B1):#835, 1,200 sampled cases acrossrender_to_image.core.{2d,2d_array,cube,cube_array,3d},clear_color_{image,attachment},copy_and_blit,texture.mipmap): 496 Pass, 704 NotSupported, 0 Fail.#717, 17 cases): 17 Pass, 0 Fail.VK_EXT_depth_clip_control(#1082, 17 cases): 17 Pass, 0 Fail.VK_EXT_fragment_shader_interlock(#1080, 576 cases): 192 Pass, 384 NotSupported, 0 Fail (sample interlock passes; pixel interlock stays unsupported).vkcomputeplain 20/20 exact, burst 20/20 exact;vkchain300/300 exact (median 126 us);vktimestamp10/10 exact and in order; 46 concurrent clients (50 chained submits each) 46/46 PASS, 0 FAIL (3.7 s).vkmark(13 default scenes, Wayland, 3 s each):Apple M5 Ultra (G17D B1), Score 24012.0GPU recoveries,0Error(110),0firmware restarts,0GPU/MMU/UAT faults,0timeouts,0lost devices,0WARNING/BUG/Oops,1/1baseline failed unit (iwd.service; ALARM has no SELinux), peak sensor 45.3 C / 85.8 W.