Repository navigation
drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173) - #1650
Conversation
fc0abd9 to
4ac2c69
Compare
The G17S hand-off admits one firmware build, 26A428 (27.0). On a K116s
(Mac17,12, 16-inch M5 Pro) booted from a 27.2 stub, iBoot loads the a010
images of the K114/K116 restore image, 26B8125, so t6050_gpu_check()
returns 1 and the GPU stays disabled. 26B8125 has 26A428's TEXT and DATA
sizes and records, but its boot-filled ranges are not 26A428's: the
entropy records sit 0x44 (primary) and 0x14 (secondary) bytes further in.
Make the build a table of boot-filled ranges and digest, and add
26B8125 with the values of Linux's drivers/gpu/drm/asahi/hw/t6050.rs
entry for it: commit 4ac2c69dd0b8 ("drm/asahi: t6050: identify the 27.2
(26B8125) G17S firmware of the K114/K116") by Jens Axboe, in
aurora-silicon/linux#1650 on top of #1173 (d8ca53c82e52); digest
af68d034...9f38f6cb. As for 26A428, each role's GKTS and ECAP entropy
bytes lie inside these ranges, so zeroing the ranges gives the digest of
Linux's fwid rule.
The enable line now names the build that matched ("FDT: GPU: T6050 G17S
26B8125 enabled, fw-text at ..."), so a boot log shows which entry
admitted the firmware.
Jens's own hand-off (on aura-internal) enables the GPU without checking
the build; booted by it, the kernel driver identifies 26B8125 and
initialises, and Vulkan and Plasma run on the GPU. This check itself has
not run on a K116s yet.
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Written by Claude (an AI agent) working for the owner of the Mac below and posted from the owner's account at his direction. A K114s data point for the K114/K116 27.2 (26B8125) G17S firmware this PR identifies. Board: MacBook Pro 14-inch, M5 Pro (K114s, Mac17,13), G17S B1, firmware 26B8125, kernel 7.3.0-17 plus our patches, mesa-aurora 26.3.0_devel.20261109.j714s2. Seen on hardware, read by the agent:
Questions:
🤖 Generated with Claude Code |
|
@chrisohearn on your second question, the K116s run was nothing special:
For comparison with your |
|
Refreshed: merged integration/aurora 0abc2f3. The branch is now 2dd5095 (was c6abd0b); no original commit is rewritten.
@chrisohearn on your first question: not in this PR. It only adds the K114/K116 26B8125 firmware identity. Power and DVFS reporting for G17S would come with the InitData and power-policy work, and #1173 is @rolotrealanis98's, so he is the one to say whether it's planned there. axboe's K116s |
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
|
@RyanTheTide thanks.
Assisted-by: LLM (Claude:Opus 5.5) |
|
Thomas, yes, please reword my commit message as you describe; the kernel extension paragraph and the local tool paths should go. The line "no 27.2 firmware has run this graph on hardware" is also out of date: the K116s has run it daily since mid-November. Ryan, on the default environment: my K116s (firmware 27.2) runs this on |
385151e to
e734a5b
Compare
|
@axboe thanks, done. @RyanTheTide both points from your note are covered now. Head
Assisted-by: LLM (Claude:Opus 5.5) |
|
The tip, integration/aurora 110861f, does not have #1173's M5 27.2/27.3 profiles or this 26B8125 entry yet, so this is still needed. The branch head merges into 110861f without conflicts, so no rebase is needed for a merge. A linear replay of #1173's commits does conflict in the M5 InitData files, but that is #1173's rebase, and the merge commits here already resolve it. Both points from the earlier note are addressed in e734a5b (variant justified from the shared layout and the K116s runs, and the default-environment run). It still waits on #1173 being reviewed and leaving draft. |
From macOS 27.2 on, the M5 GPU firmware takes a different InitData graph than the 26A428 (27.0) one the M5 path builds: - the root version word gains bit 46 (0x0c8e_0339_8728_04c0 -> 0x0c8e_4339_8728_04c0); - the power policy grows from 0x126b0 to 0x12728 bytes and the status config from 0x780 to 0x790. The words above each insert move with it: the policy's state and AON PTD pointers (0x8254 -> 0x8284, 0x11a1c -> 0x11a4c), its controller words, and the status config's link word and pointer (0x774/0x778 -> 0x784/0x788) and submission history; - the HW data is the 26A428 one. Name the InitData layouts a firmware build needs (Variant::m5_layouts: M5Layouts::V26A428 or V26B123) and build the graph in the layouts the identified build names, from a per-build table (M5Layout, M5PolicyMap, M5StatusConfigMap) instead of the board's. The 26A428 encoders write their words at the 26A428 offsets; the power policy and the status config of another build are laid out from those with LayoutBands. The common26 boards keep their own graph. Gpu::new() refuses an M5 build that names no layouts right after identifying it, before anything is written to the GPU. Every M5 build in the tree today is 26A428 and names V26A428, so nothing changes for the M5 Pro, Max and Ultra. No 27.2 build is identified yet; the next commit does that. Observed in InitData captured from macOS 27.2 (26B123, the public Mac17,8 restore image) running as a guest under the m1n1 hypervisor on a J716s (M5 Pro, G17S): the version word on both roots; the spacing of eight objects that depends on the two sizes, matching these and not the 26A428 ones; the moved policy pointers; the status config's link pointer at 0x788 and its inserted words (0x5dc = 0, 0x60c = 5000, 0x640 = 0, 0x670 = 0); the policy controller words 0x492c = 5000 and 0x4a14 = 1600; and a HW data that sits where 26A428's does. The capture does not separate a status-config controller block of 0x64 bytes from one of 0x5c, so the block stride and the history offsets that follow from it are not confirmed, and the G17D controller words are not covered (the part was a G17S). Signed-off-by: rolotrealanis98 <122947376+rolotrealanis98@users.noreply.github.com> Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com>
…uild The M5 Pro admits only the 27.0 (26A428) G17S build. Admit the 27.2 (26B123) G17S build of both roles as well, identified the way fwid defines a build, as the 27.0 entry already is. 27.2 needs an entry of its own, because its primary's entropy record is not where 26A428's is. 27.0 keeps the 26A428 graph. 27.2 names a new variant, V26B123_M5: the 26A428 M5 protocol with the 26B123 InitData layouts the previous commit builds. The layouts follow from the firmware build the GPU identifies, and that is the only thing that can select them: the firmware's version word is identical for the builds involved, no ADT or DT property or hardware register distinguishes their InitData layouts, and the layout belongs to the firmware, not to a board or a chip. No board or compatible check is involved. The fwid KUnit test checks that every M5 Pro build names the layouts of its OS release and that no two builds share a digest. Signed-off-by: rolotrealanis98 <122947376+rolotrealanis98@users.noreply.github.com> Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com>
Resolve drivers/gpu/drm/asahi/g17/initdata/m5.rs: keep set_m5_policy_layouts() from this branch and drop InitData::m5_policy_telemetry_word(), which main removed as unused in f4db4c4 ("drm/asahi: remove the items rustc reports as never used"); nothing on this branch calls it. Signed-off-by: Diljit Singh <hey@djdev.me>
…14/K116 Applies on top of aurora-silicon/linux PR aurora-silicon#1173. The 16-inch M5 Pro OLED (K116s, Mac17,12) restores from the 27.2 (26B8125) image, not from the 26B123 image of the Mac17,8 that aurora-silicon#1173 pins. Its a010 (G17S) firmware images carry LC_UUIDs that are the uuid of the K116s ADT's iop-gfx-nub and iop-gfx1-nub (8A2891FC-D479-37E8- 895D-71B4D88ECB51, 58FF964E-F74B-31C2-8179-3837D6ADA9C2), so this is what iBoot loads. TEXT 0x50000 + 0x54000, DATA 0x184000, the GKTS/ECAP records and the _rtk_tunables/_rtk_patchbay sections sit at 26B123's offsets, but the firmware identity digest differs: 26B8125 G17S af68d034a3f006b43dab661b825f12598cb86e4d2a0e3844f14fa5059f38f6cb 26B123 G17S 2b4613c62a8a007f22a94101702c9ac6c4e90f2e123f3b36fbe6ffea913f0fd9 Without this entry the driver refuses the K116s firmware before any GPU write. It names V26B123_M5, the InitData of the 26B123 firmware, whose layout this build shares. On the K116s both firmware roles accept that InitData and run it: the machine has run this graph daily since mid-November. The kernel logs "GPU firmware: 27.2 (26B8125), G17S", KWin, Plasma and Xwayland render on the GPU ("Apple M5 Pro (G17S B1)") with no Mesa environment variable set, and the GPU comes back after each deep sleep. Signed-off-by: Jens Axboe <axboe@kernel.dk>
The K116s 26B8125 entry named V26B123_M5 for what the 26B8125 kernel side builds. State instead what the driver itself sees: the firmware's records and sections sit at 26B123's offsets (the driver's boot-time layout checks), and on the K116s both firmware roles accepted the 26B123 InitData and ran it (driver up, Vulkan, a Plasma session). Comment only. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
e734a5b to
9c76031
Compare
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
#1173 has been rebased onto I rebuilt the branch by cherry-picking this PR's two commits onto #1173's merged head (5d9e899):
Authors and messages are unchanged. The old head is still reachable as e734a5b.
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Checked the 26B8125 G17S firmware identification commits on top of #1173, clean human sign-offs, green host-tests/pr-text CI, and the K116s hardware verification row. No blocking findings.
The merge-base changed after approval.
drm/asahi: t6050: identify the M5 Max's 27.2 (26B123) G17C firmware (on #1650)
What: drm/asahi's t6050 firmware table identifies the K114/K116's macOS 27.2 (26B8125) G17S GPU firmware and uses the 26B123 InitData layout for it. Two commits on #1173's two-commit 27.2 series.
Tested: K116s M5 Pro (Jens Axboe's) on integration
a84637dca209plus the old stack (e734a5bc1d5e): the firmware is identified as 27.2 (26B8125) G17S, KWin, Plasma and Xwayland run on the GPU, and the GPU came back after five deep sleeps. The current head (the same added lines on #1173's new head;run-host-tests.py --only g1790/90) has not been booted.Risk: two-way door · K114/K116 (T6050) on the 27.2 firmware only.
Not yet: a K116s boot of the current head; #1173 merging first.
Details
Since 11-24 the branch is this PR's two commits cherry-picked onto #1173's head
5d9e8993d7ddas8d7770f82a0dand9c7603184044(the old heade734a5bc1d5eis still reachable). The stacking, merge and validation notes below describe the old base.Stacked on #1173 (Rolando's M5 27.2/27.3 InitData, draft). The branch preserves #1173's head d8ca53c and Jens's firmware-identity commit, followed by a merge of integration/aurora a7dd26e on 2026-11-17. Please merge after #1173; the firmware-identity change is Jens's commit, with its message reworded on his OK. The same arrangement as #1602.
drm/asahi: t6050: identify the 27.2 (26B8125) G17S firmware of the K114/K116. The 16-inch M5 Pro OLED (K116s, Mac17,12) restores from UniversalMac_27.2_26B8125, not from the 26B123 image #1173 pins. Its a010 G17S images are the ones iBoot loads: their LC_UUIDs are the K116s ADT's iop-gfx-nub and iop-gfx1-nub uuid. TEXT, DATA, the GKTS/ECAP records and the tunables/patchbay sections sit at 26B123's offsets, but the fwid digest differs (af68d034...f38f6cb against 26B123's 2b4613c6...913f0fd9). Without this entry the driver refuses the K116s firmware before any GPU write. It uses
V26B123_M5. The firmware's records and sections sit at 26B123's offsets, which the driver's boot-time layout checks confirm, and on the K116s both firmware roles accepted that InitData and ran it (below).Tested by Jens on the K116s: the kernel driver initialises on 26B8125, Vulkan works (vkcube) and Plasma composites on it. The first test ran with
ASAHI_M5_BRINGUP=1, which only Mesa reads. Since then the K116s has run this graph daily on the default environment (integration/aurora a84637d plus his stack, no Mesa variable set for the session or system-wide):GPU firmware: 27.2 (26B8125), G17S;Apple M5 Pro (G17S B1)on Mesa 26.3.0~aurora.20261116;V26B123_M5is now the shared layout and his K116s runs, without the kernel-extension paragraph or local tool paths, and the outdated "no 27.2 firmware has run this graph on hardware" is gone.Not included: Jens's "K116s board tables, selected by apple,agx-g17s-k116". It says itself that it is a local bring-up patch: the K116s voltages are most likely per unit, and the right fix is a loader hand-off of the ADT tables. Without it the K116s uses the J714 tables. The K116s DT PR #1648 leaves the GPU compatible at
apple,agx-g17sto match.The 2026-11-17 target merge resolves the overlapping M5 InitData and variant changes. Firmware-version layouts now select the current Graph representation; the target’s J813 common-26 encoding, board offsets, controller defaults and cached submission-history reads are retained. The 27.2/27.3 status-history fields use their firmware-specific relocation. Apart from the message of Jens's commit, no original commit was rewritten; the trees are unchanged.
This touches the same
Buildlist in hw/t6050.rs as #1602 (Joshua's 27.3 26C5035r entry, also on #1173). The two entries are independent, but whichever lands second needs a trivial rebase.Validation of merge c6abd0b against integration/aurora a7dd26e: ARM64 LLVM 22.1.8/Rust 1.98.1
drivers/gpu/drm/asahi/build passes with bothCONFIG_DRM_ASAHI_M5=yandCONFIG_DRM_ASAHI_G18=y; 90/90 G17 host runs and the asahi-m4 host suite pass. A Rust parity harness checks 18 byte-identical artifacts: current-target J714/J716C/J775D/J813 default hardware/private/policy encodings, and original #1173 26A428/26B123/26C5035 private/policy encodings. It also checks Graph offsets, submission-history relocation, kick pointers and enabled-core fields. Existing unused-code warnings remain. The refreshed merge has not been booted on K116s or J813; Jens’s hardware results above apply to his earlier tree, not this refresh.Authorship. Jens Axboe wrote the new commit and runs it on his K116s (16-inch MacBook Pro, M5 Pro, OLED; Mac17,12; stub macOS 27.2 26B8125). It comes from his K116s bundle of 2026-11-11 (integration/aurora 254c9bd plus 34 commits, kernel 7.3.0 running on the machine). I rebased it onto #1173's head d8ca53c and removed the LLM co-author and session trailers. Jens has given his OK: the commit carries his Signed-off-by. The #1173 commits are Rolando's, unchanged.
Follow-up commit:
drm/asahi: t6050: give the 26B8125 variant's reason from the K116s runrewords the code comment from what the driver and the K116s run show.