Skip to content

asahi: drop legacy T6041 X and upstream UAPI compatibility - #186

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
astaff:asahi/drop-t6041-legacy-uapi
Nov 19, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
astaff:asahi/drop-t6041-legacy-uapi

Conversation

@astaff

@astaff astaff commented Nov 7, 2026 •

Copy link
Copy Markdown

The Aurora M4 Max (T6041) kernel reports variant C, USC 3 and HAL 200 directly. Remove the out-of-tree asahi_m4 variant-X alias and zero-USC UAPI conversion from #85, following Ryan's review follow-up.

This removes agx_params_fixup_upstream_uapi(), its declaration and call, the T6041 X display-name case, and the t6041x drm-shim / Gallium test matrix entries. Native C admission, the four-cluster USC implementation, and native t6041 shim coverage remain intact, and test-chip-admission now explicitly rejects T6041 X.

Exact-head compiler, Gallium drm-shim, & driver unit tests

Built with both Gallium + drm-shim and Honeykrisp (-Dgallium-drivers=asahi -Dvulkan-drivers=asahi -Dtools=drm-shim -Dbuild-tests=true -Dbuildtype=release):

  • Baseline (57df4db849a): meson test -C build --suite asahi passed 193 / 193 (0 failures).
  • Candidate (b45e4ec54c4): meson test -C build --suite asahi passed 189 / 189 (0 failures — exact -4 delta from removing the 4 asahi-t6041x-gallium-{vs,query,submit,blit} shim cases; all 4 native asahi-t6041-gallium-{vs,query,submit,blit} cases and asahi-chip-admission pass).
  • Zero remaining t6041x or agx_params_fixup_upstream_uapi references in src/.

Hardware benchmarks (T6041 Apple M4 Max)

  • Hardware & OS: MacBook Pro 16" (J616c / T6041, 40-core G16C B1 native variant 'C' on G17P / AGX3B profile, 64 GB UMA, firmware 26B131), Linux 7.3.0-j616c-daily27+ (aarch64), GCC 15.3.0, same boot session, private ICD per arm, MESA_SHADER_CACHE_DISABLE=true, 0 GPU faults in dmesg.
  • Revisions compared:
    • Target-branch baseline (aurora-wip): 57df4db849a
    • Candidate (#186 HEAD): b45e4ec54c4
  • Benchmark sources & raw outputs:

Exact commands

env VK_DRIVER_FILES="$ICD" MESA_SHADER_CACHE_DISABLE=true \
  taskset --cpu-list 0,5-15 ./agx3_vk_bench chain ./barrier_chain.spv 16

env VK_DRIVER_FILES="$ICD" MESA_SHADER_CACHE_DISABLE=true \
  taskset --cpu-list 0,5-15 ./llama-bench -m "$MODEL" -ngl 99 -fa 1 -t 11 -p 512 -n 128 -r 5

Side-by-side results

Workload / Metric Baseline (57df4db849a) Candidate (b45e4ec54c4) Change
Device name reported on native T6041 'C' Apple M4 Max (G16C B1) Apple M4 Max (G16C B1) identical
agx3_vk_bench chain GPU span (median of 16, lower is faster) 1,738.563 µs 1,737.792 µs -0.04%
Upstream llama-bench pp512 (mean ± SD of 5, higher is faster) 595.44 ± 3.61 tok/s 595.08 ± 3.42 tok/s -0.06%
Upstream llama-bench tg128 (mean ± SD of 5, higher is faster) 66.67 ± 0.09 tok/s 66.30 ± 0.19 tok/s -0.55%

Steady 16-sample GPU command spans (µs, capture order, exact checksum 0xdc1d225add1a3da7 on both arms):

baseline (57df4db849a):   1736.084 1738.834 1737.000 1732.500 1760.875 1745.000 1757.208 1743.000 1732.792 1744.583 1738.584 1752.625 1736.000 1738.542 1735.917 1731.000
candidate (b45e4ec54c4):  1743.167 1742.875 1753.584 1698.792 1736.042 1739.542 1740.875 1731.125 1741.084 1733.416 1683.250 1744.042 1743.042 1735.875 1731.750 1733.041
  • Variability & trade-offs: Removing the dead out-of-tree T6041 'X' / zero-USC fixup does not alter the runtime path on the Aurora kernel (< 0.6% run-to-run noise across all measurements, 0 regressions). Users pairing Mesa with pre-Aurora out-of-tree T6041 kernels must move to the Aurora kernel.

The Aurora T6041 kernel reports variant C, USC 3 and HAL 200 directly.
Remove the out-of-tree asahi_m4 X identity and the zero-USC parameter
fixup introduced by 53b30c6; the compatibility path last ran against
an earlier Mesa base and is not used by the Aurora kernel.

Drop the t6041x shim and test matrix entries, and explicitly reject the
T6041 X identity in the chip-admission test. Keep native T6041 admission,
the four-cluster USC implementation and its coverage.

Signed-off-by: Artyom Astafurov <artyom.astafurov@gmail.com>
Assisted-by: LLM
@astaff
astaff force-pushed the asahi/drop-t6041-legacy-uapi branch from dbd0d63 to b45e4ec Compare November 18, 2026 15:31
@astaff
astaff marked this pull request as ready for review November 18, 2026 15:49
@RyanTheTide
RyanTheTide merged commit f3b5063 into aurora-silicon:aurora-wip Nov 19, 2026
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.

2 participants