Skip to content

drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173) - #1650

Merged
DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
sithglan:thomas/k116s-gpu-26b8125
Nov 24, 2026
Merged

DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
sithglan:thomas/k116s-gpu-26b8125

Conversation

@sithglan

@sithglan sithglan commented Nov 12, 2026 •

Copy link
Copy Markdown

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 a84637dca209 plus 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 g17 90/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 5d9e8993d7dd as 8d7770f82a0d and 9c7603184044 (the old head e734a5bc1d5e is 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):

  • the kernel logs GPU firmware: 27.2 (26B8125), G17S;
  • KWin, Plasma, Xwayland and Thunderbird are clients of the GPU node, with renderer Apple M5 Pro (G17S B1) on Mesa 26.3.0~aurora.20261116;
  • five deep sleeps on one boot, with the GPU back after each. Jens's commit message is reworded with his OK: the reason for V26B123_M5 is 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-g17s to 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 Build list 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 both CONFIG_DRM_ASAHI_M5=y and CONFIG_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 run rewords the code comment from what the driver and the K116s run show.

@sithglan
sithglan force-pushed the thomas/k116s-gpu-26b8125 branch from fc0abd9 to 4ac2c69 Compare November 12, 2026 14:30
sithglan added a commit to sithglan/aura that referenced this pull request Nov 13, 2026
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>
@chrisohearn

Copy link
Copy Markdown

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:

  • The GPU runs (Hyprland on the render node, Mesa GLES 3.2). The mailbox interrupt arrives at an idle rate in the hundreds per second.
  • vulkaninfo enumerates one Vulkan 1.4.363 device (driver Borealis, conformanceVersion 0.0.0.0) with a graphics+compute queue family and VK_KHR_wayland_surface.
  • agx_stats reports pstate, requested and achieved frequency, power_mw and temperature_raw as unsupported, and power/runtime_status reads unsupported.

Questions:

  1. Is G17S power and DVFS reporting planned with the 27.2 InitData work in drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) #1173? We can test a branch on the K114s.
  2. Could you share the vkcube setup and the Mesa build and flags used in the K116s run, so we can compare on the K114s?

🤖 Generated with Claude Code

@axboe

axboe commented Nov 16, 2026

Copy link
Copy Markdown

@chrisohearn on your second question, the K116s run was nothing special:

  • Mesa: aurora-silicon/mesa aurora-wip at 7f7a7ffa76bb, built as Debian packages with Debian's stock Mesa packaging (release build, no extra options). At the time it needed ASAHI_M5_BRINGUP=1 in the environment; since mesa usb: typec: tipd: cd321x: don't race the resume read in the IRQ test #348 that is gone. I now run plain aurora-wip (1e6f14ca) the same way.
  • vkcube: Debian's vulkan-tools (1.4.341), run with no arguments from a Plasma Wayland session, KWin compositing on the same render node.

For comparison with your agx_stats, on the K116s today (integration/aurora c33c5fd plus #1173 and this PR): pstate_status valid, pstate 0, requested_frequency_hz, power_mw and temperature_raw unsupported, power/runtime_status unsupported. So the same picture on power and DVFS reporting; I'll leave your first question to the series' authors.

@sithglan

Copy link
Copy Markdown
Author

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 agx_stats above shows the same picture as yours.

@RyanTheTide

Copy link
Copy Markdown

Early note on this draft (no full review yet):

  1. drivers/gpu/drm/asahi/hw/t6050.rs:81 and the commit "drm/asahi: t6050: identify the 27.2 (26B8125) G17S firmware of the K114/K116" (and the PR description) justify V26B123_M5 from what the macOS GPU kernel extension in the 26B8125 kernelcache builds. That is analysis of a macOS binary and should not be in public code, commit messages or the PR. Please justify the variant choice from our own observations only (for example the InitData the firmware acknowledged and ran on the K116s, and the boot-time layout checks the driver already does), and reword the comment, the commit message (with the author's OK) and the description accordingly.
  2. The hardware test in the description ran with ASAHI_M5_BRINGUP=1. If the K116s path needs that variable to work, it is a gate the feature should not depend on; please re-run on the default environment and command line, or state what it changes and that the driver path here does not rely on it.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Author

@RyanTheTide thanks.

  1. Variant reason:
    • 385151ee8071 (my commit on top) rewords the hw/t6050.rs comment: the firmware's records and sections sit at 26B123's offsets, and on the K116s both firmware roles accepted the 26B123 InitData (V26B123_M5) and ran it.
    • The PR description now gives the same reason.
    • Jens's commit message still has the earlier reasoning. It is his commit, so I'll ask him for his OK and then reword it to the same observations: the a010 images iBoot loads (by the ADT's nub uuids), the records and sections at 26B123's offsets, the fwid digest, and the K116s run.
  2. ASAHI_M5_BRINGUP=1: this variable is read by the Mesa build Jens ran, not by the kernel. Nothing under drivers/gpu/drm/asahi reads it. Firmware identity, InitData selection and both roles' boot all happen at probe, before userspace. A re-run on the default environment and command line has to come from his K116s. The description says so now.

Assisted-by: LLM (Claude:Opus 5.5)

@axboe

axboe commented Nov 21, 2026

Copy link
Copy Markdown

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 integration/aurora a84637d plus my stack with no ASAHI_M5_BRINGUP or any other Mesa variable set, for the session or system-wide. The kernel logs GPU firmware: 27.2 (26B8125), G17S; KWin, Plasma, Xwayland and Thunderbird are clients of the GPU node, and the renderer is Apple M5 Pro (G17S B1) on Mesa 26.3.0~aurora.20261116. Five deep sleeps on that boot today, GPU back after each.

@sithglan
sithglan force-pushed the thomas/k116s-gpu-26b8125 branch from 385151e to e734a5b Compare November 21, 2026 16:59
@sithglan

Copy link
Copy Markdown
Author

@axboe thanks, done. @RyanTheTide both points from your note are covered now. Head e734a5bc1d5e; every tree is unchanged.

  1. Commit message: Jens's commit is reworded with his OK (now 012d44418f8f). Changes:

    • the kernel-extension paragraph is gone;
    • the restore-image and local tool paths are gone;
    • the outdated "no 27.2 firmware has run this graph on hardware" is gone;
    • the reason for V26B123_M5 is now the layout this build shares with 26B123, plus his K116s runs.

    Because of that, the two integration merges and my comment commit on top were recreated with the same trees, messages and parents.

  2. Default environment: Jens's run above covers it. integration/aurora a84637d plus his stack, with no ASAHI_M5_BRINGUP or other Mesa variable set:

    • GPU firmware: 27.2 (26B8125), G17S;
    • KWin, Plasma, Xwayland and Thunderbird on the GPU node (Apple M5 Pro (G17S B1));
    • five deep sleeps with the GPU back after each.

    The PR description now says so.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

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.

rolotrealanis98 and others added 5 commits November 24, 2026 10:13
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>
@DjDeveloperr
DjDeveloperr force-pushed the thomas/k116s-gpu-26b8125 branch from e734a5b to 9c76031 Compare November 24, 2026 17:39
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 24, 2026 17:40
@DjDeveloperr
DjDeveloperr requested review from a team and DjDeveloperr as code owners November 24, 2026 17:40
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 9c760318: not ready yet

Check Detail
CI at head ok 6 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 9c760318, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · K114/K116 (T6050) on the 27.2 firmware only.

Areas: area:gpu

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr

Copy link
Copy Markdown

#1173 has been rebased onto main as a two-commit series that covers 27.2 only. This branch was built on #1173's old head (d8ca53c): its ten commits and the two integration/aurora merges. That base no longer applies.

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.

tools/asahi/run-host-tests.py --only g17 passes 90/90. m5_pro_builds_name_their_layouts holds for the entry: 27.2 maps to V26B123, and the digest is unique among CONFIG's builds.

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) and removed needs-template PR body lacks Tested or Risk (bot) needs-hw-row No hardware row at the PR head (bot) labels Nov 24, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@sithglan
sithglan dismissed DjDeveloperr’s stale review November 24, 2026 18:37

The merge-base changed after approval.

@DjDeveloperr
DjDeveloperr merged commit d3a2a66 into aurora-silicon:main Nov 24, 2026
11 checks passed
DjDeveloperr added a commit that referenced this pull request Nov 24, 2026
drm/asahi: t6050: identify the M5 Max's 27.2 (26B123) G17C firmware (on #1650)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants