Skip to content

asahi: admit the M4 Max (T6041) as G17P - #156

Closed
AxxzyWasTaken wants to merge 1 commit into
aurora-silicon:aurora-wipfrom
AxxzyWasTaken:pr/t6041-admit
Closed

AxxzyWasTaken wants to merge 1 commit into
aurora-silicon:aurora-wipfrom
AxxzyWasTaken:pr/t6041-admit

Conversation

@AxxzyWasTaken

Copy link
Copy Markdown

The M4 Max (T6041) runs the M4 Pro's 25G83 GPU firmware build on the same G17 kernel runtime, with four GPU clusters instead of two. Today agx_chip_from_params maps chip 0x6041 (variant C) to G16C and agx_params_driver_supported refuses it, so neither GL nor Vulkan comes up on an M4 Max.

This admits 0x6041 as G17P when the kernel reports the AGX3 USC and HAL 200, with four clusters (a binned part keeps four), and gives the USC window's base-page helper tables entries for clusters 2 and 3: the container lead only holds two.

It is the admission part of #85. That PR also carries a Gen9 linear PBE pitch change, Rusticl local-memory checks and drm-shim coverage, which this leaves out. The same change, on an older aurora-wip, has been in daily use on a J616C since 30 Oct.

Testing, MacBook Pro 16" M4 Max (J616C, T6041), GPU firmware 25G83

aurora-wip 05ddb00f plus this commit only, built with GL (gallium asahi), Vulkan and the overlay layer. The kernel reports chip 0x6041, 4 clusters, AGX3, HAL 200.

  • Unit tests: meson test with -Dbuild-tests=true: 120 passed, 0 failed.
  • GLES CTS (VK-GL-CTS aosp_mustpass/main, surfaceless pbuffer 256x256, every 4th case, 4 jobs, no GPU recoveries):
Pass Fail Flake Warn Skip
GLES2 4,268 0 0 0 24
GLES3 11,137 0 0 10 48
GLES3.1 9,204 185 2 2 58

The GLES3.1 failures are spread over shader built-ins and implicit conversions, SSBO layouts, sampler indexing and texture gathers. The downstream GL tree this machine ran before failed 5, 12 and 190 of the same cases, and 183 of the 185 here. The 2 flakes are sample-mask cases that pass alone, 3 of 3, on both drivers.

  • Vulkan:
    • aurora-tilesubmit: 0 differing texels, native and as an x86-64 build under FEX.
    • vulkan-msaa-mrt sweep: 8,748 of 8,748 cases pass with compression on.
    • A clear-value test and an occlusion-query stress give the same results as the downstream tree.
    • A Roblox-shaped frame (skinning, textures, compute, 2 frames in flight, 1728x1117) takes 1.00-1.10 ms, against 1.49-1.59 ms on our previous, older aurora-wip base.
  • Daily use on the older base: a Hyprland desktop, Firefox and Chromium on GL, Electron, Roblox on Vulkan, and Steam games as x86 under FEX.

Not tested: the 14" M4 Max (J614C), the binned 32-core part, and the 25F84 firmware that #525's kernel admits.

The M4 Max runs the M4 Pro's 25G83 firmware build on the G17 kernel runtime
with four GPU clusters. Admit chip 0x6041 (variant C) with four clusters,
and give the USC window's base page helper tables for clusters 2 and 3:
the container lead only holds two.
@RyanTheTide

Copy link
Copy Markdown

Closing as superseded. aurora-wip already has this admission and the cluster 2/3 helper tables from #85, which was merged at 4371cf8. Thanks for splitting it out!

@RyanTheTide RyanTheTide closed this Nov 6, 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