Repository navigation
drm/asahi: g17: t6041: the 27.2 GPU firmware on every M4 Max, with deep sleep on 40 cores - #4157
Draft
DjDeveloperr wants to merge 2 commits into
Draft
DjDeveloperr wants to merge 2 commits into
DjDeveloperr wants to merge 2 commits into
Conversation
The 26B123 list holds two measured TEXT digests, one 40-core J616C and one 32-core J616C. iBoot fills part of the loaded TEXT for each Mac, so a J614C or a J575C on a 27.2 stub matches neither, and the GPU does not start. List the shipped image (build b000 of armfw_g16c.im4p, the G16C B1 one) with every range iBoot fills zeroed: the two header words, the values of the 39 boot parameter records and the two tunable tables. The ranges follow the record tags and lengths in the image and are the ones T8132's 26B123 entry zeroes, 0x318f bytes earlier. The per-Mac entries stay for now. Signed-off-by: DjDeveloperr <hey@djdev.me>
…26B123 The 40-core M4 Max runs BASE on 26B123. BASE leaves sleep_restart off, so sleep_prepare() refuses every deep sleep with "no firmware restart on this chip". The 32-core part on 26B123 and both parts on 25G83 have it on, and restart the GPU in every deep sleep they have run. Signed-off-by: DjDeveloperr <hey@djdev.me>
This was referenced Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: On firmware 27.2 (26B123): (1) admit the GPU firmware image every M4 Max loads, not only two measured J616C ones, and (2) let a 40-core M4 Max deep-sleep.
Tested: Host only.
g17-t6041-initdata-tests.py,g17-firmware-selection-tests.pyandt6040-calibration-tests.pypass at the head; checkpatch--strict0 errors. The digest was computed from the public 26B123 restore image (build b000 ofarmfw_g16c.im4p). The same script gives the digests main already has for T8132 (484c43cb..., measured on a J773g). No Mac has booted this.Risk: two-way · M4 Max (T6041) on 27.2 firmware only. A J616C whose measured image is already listed runs the same configuration as before, except that the 40-core one now restarts its GPU after a deep sleep instead of refusing the sleep. A plain revert undoes it.
Not yet: rows on 27.2 at this head: (a) a 40-core J614c, J575c or J616c: boot log shows
Apple GFX 26B123 for T6041 (build b000, iBoot-filled ranges zeroed), a GPU smoke, thenrtcwake -d rtc1 -m mem -s 20x3 with a GPU smoke after each; (b) a 32-core J616c: the same boot line and one deep sleep.Details
Image.
BUILD_26B123lists two TEXT digests, each one Mac's measurement with only the two entropy records zeroed. iBoot also writes carveout addresses, a per-boot slide and per-board tunable tables into TEXT, so a J614c or J575c on a 27.2 stub matches neither entry and probe stops with "unsupported GPU firmware build". This adds the shipped image with every range iBoot fills zeroed, as T8132's and T8122's 26B123 entries do:0x224and the DATA address at0x23c;0x5d88cto0x5dabd;0x34c-byte body of the two tunable tables at0x5dabdand0x5de0d.The ranges were read by walking the records in the image, and they are T8132's list moved by
0x318f. J575c reports its GPU as G16C B1 (#1498), the B0 build. The per-Mac entries stay, below the new one, until a Mac has booted with only it.Deep sleep. The 40-core part runs
BASEon 26B123, andBASEhassleep_restart: false, sosleep_prepare()refuses each deep sleep ("no firmware restart on this chip"). 25G83 on 40 cores and 26B123 on 32 cores have it on, and the 32-core one sleeps and wakes on 27.2 (row).Tracked in #4155.