Skip to content

drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) - #1173

Merged
DjDeveloperr merged 3 commits into
aurora-silicon:mainfrom
rolotrealanis98:pr/m5-gpu-27.2
Nov 24, 2026
Merged

DjDeveloperr merged 3 commits into
aurora-silicon:mainfrom
rolotrealanis98:pr/m5-gpu-27.2

Conversation

@rolotrealanis98

@rolotrealanis98 rolotrealanis98 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What: build the InitData graph for the M5 GPU firmware of macOS 27.2 (26B123), selected by the identified firmware build, and identify the M5 Pro's 27.2 G17S build.
Tested: no hardware row exists yet: not run on a Mac at head 6bc1534. Builds clean (W=1 CLIPPY=1, drivers/gpu/drm/asahi/, 0 errors, warning count equal to main). The J716s (M5 Pro) row at this head is still to be recorded; a J775D run on a stub build (571 pass, 57 not supported, 0 fail) is funkzy's, on a different head.
Risk: two-way door (a plain revert undoes it) | M5 Pro, Max and Ultra. Every build in the tree today names the 26A428 layouts, so there are no byte changes on 27.0.
Not yet: the J716s run on 27.2 at the exact head; the status-config controller block stride (0x64 vs 0x5c) is not separated by the capture.

Details

What this changes

The M5 GPU firmware of macOS 27.2 (26B123) takes a different InitData graph than the 26A428 (27.0) one. This PR builds it, selected by the identified firmware build, and identifies the M5 Pro's 27.2 G17S build.

  1. drm/asahi: g17: m5: build the 27.2 (26B123) InitData graph: Variant::m5_layouts names the layouts a build needs; the M5 graph builds them from a per-build table (version word with bit 46, power policy 0x126b0 -> 0x12728, status config 0x780 -> 0x790, the words above the inserts moved, the G17D controller words by HW-data core type). A build that names none is refused in Gpu::new() before anything is written to the GPU. Every build in the tree today names the 26A428 layouts: no byte changes for the M5 Pro, Max and Ultra on 27.0.
  2. drm/asahi: t6050: identify the M5 Pro's 27.2 (26B123) G17S firmware build: admits the 27.2 G17S build and names V26B123_M5. The selection is by the identified firmware build, because the firmware's version word is identical for 27.0 and 27.2, no ADT/DT or hardware property distinguishes the InitData layouts, and the layout belongs to the firmware, not to a board or chip. No board or compatible check.

The 27.3 beta 1 (26C5035r) identity and its HW data word are not part of this PR.

Captured InitData (macOS 27.2, J716s, G17S)

Observed under the m1n1 hypervisor, both roles; no raw dumps are published. Confirmed: version word, allocation sizes, policy anchors and controller words, status-config link pointer and inserted words, HW data as 27.0. Not separated: the status-config controller block stride (0x64 vs 0x5c). Not covered: the G17D controller words (the part was a G17S); funkzy's J775D run exercises them on 27.2.

Run

Not run on hardware at this head yet. The hardware row (J716s, 27.2 / 26B123, exact head) is still to be recorded.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  1. Rebase onto the current head of funkzy/t6050-gpu-on-integration (0dd0833). That drops the 13 older base commits, which the branch now carries in rewritten form. Your 13 commits (27cd9cd..34f2f5b) replay onto it without conflicts.
  2. drivers/gpu/drm/asahi/g17/fw/m5/initdata.rs has comments that cite kernel-extension and firmware code: virtual addresses in the 0xfffffe00... range, __TEXT,__const locations and quoted instruction sequences. They sit at M5_26B123_STATUS_CONFIG_BANDS, M5_26B123_STATUS_CONFIG_INSERTED, M5_26B123_INITDATA_VERSION_WORD, ABI_ALLOCATION_SIZES_26B123_M5, M5_GPU_TIMEOUT_SECONDS, m5_forced_idle_timeout_ms, M5_26B123_POLICY_CONTROLLER_WORDS and M5_26B123_POLICY_CONTROLLER_WORDS_G17D. This tree can't carry them. Please remove every code-address and instruction reference. Derive each layout and value from what the running system shows (for example, InitData captured from the machine under macOS 27.2/27.3), and describe each field by its meaning and that observation.
  3. The policy controller words are values read out of the kernel extension's code (for example, the 900/1600 pair and the 2500 entry), not observed InitData contents. Please replace them with values taken from captured InitData for the board, and name the fields.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Updated (head d8ca53c, ten commits).

  1. Rebased onto the current head of funkzy/t6050-gpu-on-integration (65bb111). Three commits are gone because the base now covers them:
    • the J716s board tables and bare-metal profile: the base runs the M5 Pro on bare metal (2e6b2d9) and picks its board by ID variant, which both M5 Pro boards share, so a J716s table cannot be selected without replacing the J714 one. This PR no longer has anything J716s-specific;
    • the native-address mailbox binding and driver entry: 174cd0f already has apple,t6050-j775d-ascwrap-v6 with the same four addresses;
    • the 27.0 build entry, which the base has with the same digest. The commit now only adds the 27.2 and 27.3 builds.
  2. Every kernel-extension and firmware code address, __TEXT,__const location, quoted instruction and macOS function name is removed from the comments and the commit messages, here and in drm/asahi: g17: Name the cause and the clients of every M5 GPU recovery #1242 and drm/asahi: g17: Add M5 GPU fault experiment parameters (on #1173) #1243. Each comment now says what the word is and how the layout relates to the 26A428 one the tree already documents.
  3. Not done yet: I have no InitData captured from macOS 27.2 or 27.3 on this machine, so the 27.2+ layouts and values are unchanged and are not re-derived from an observation. That includes the policy controller words. Each such place carries the line not yet confirmed from captured InitData (12 in the diff), so they are easy to find. I will capture the InitData under the hypervisor and replace or confirm them from that; I do not expect this to go in before then.

What the running system has shown so far is only that the firmware takes the graph as a whole: an earlier revision of this series, with the J716s tables, ran the 27.3 beta 1 firmware on the J716s (both InitData acknowledged, opening records retired, a 25-minute desktop session without a GPU error). This revision has not run on hardware, and the 27.2 firmware has not run at all.

Build: all ten commits, drivers/gpu/drm/asahi and drivers/gpu/drm/apple with W=1 and CLIPPY=1; the tip has the base's warning set.

@RyanTheTide
RyanTheTide changed the base branch from funkzy/t6050-gpu-on-integration to integration/aurora November 10, 2026 12:23

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

The current description and maintainer discussion still leave firmware provenance open: the 27.2/27.3 InitData has not been captured, multiple policy/controller constants remain explicitly inferred or 'not yet confirmed', and the author says merge should wait for those captures. A working J716s session does not establish that the full admitted firmware/table variants match observed data. Please keep this unmerged until the observed capture/provenance gate is met (or narrow to a separately proven profile), with exact current-source build/boot validation. I will not treat a website Working/Partial label as a substitute for this evidence.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Converted to draft. I still have no InitData captured from macOS 27.2 or 27.3, so the provenance point stands as it was. The branch also conflicts with the per-build layout (Graph) the base has since gained; I will port the series onto it together with the captured values rather than before them. #1242 no longer depends on this PR.

sithglan pushed a commit to sithglan/aurora-linux that referenced this pull request Nov 12, 2026
…14/K116

Applies on top of aurora-silicon/linux PR aurora-silicon#1173.

The 16-inch M5 Pro OLED (K116s, Mac17,12) restores from
UniversalMac_27.2_26B8125_Restore.ipsw, not from the 26B123 image of the
Mac17,8 that aurora-silicon#1173 pins. Its Firmware/agx/armfw_g17x.im4p and
armfw1_g17x.im4p carry a010 (G17S) images whose LC_UUIDs 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 at 26B123's offsets, but the
fwid digest differs:

  26B8125 G17S  af68d034a3f006b43dab661b825f12598cb86e4d2a0e3844f14fa5059f38f6cb
  26B123  G17S  2b4613c62a8a007f22a94101702c9ac6c4e90f2e123f3b36fbe6ffea913f0fd9

(check_fwid.py's algorithm.) Without this
entry the driver refuses the K116s firmware before any GPU write.

It names V26B123_M5: the AGX kext of the 26B8125 kernelcache builds root
version word 0x0c8e_4339_8728_04c0 and its u64[24] allocation size table
is ABI_ALLOCATION_SIZES_26B123_M5 entry for entry (HW data 0x2850, policy
0x12728, status config 0x790), and both firmware roles build the same
version word. The interior
offsets of the policy and the status config were not compared against
26B123's and no 27.2 firmware has run this graph on hardware.

Signed-off-by: Jens Axboe <[email protected]>
sithglan pushed a commit to sithglan/aurora-linux that referenced this pull request Nov 12, 2026
…14/K116

Applies on top of aurora-silicon/linux PR aurora-silicon#1173 (patches-1173/0001..0010).

The 16-inch M5 Pro OLED (K116s, Mac17,12) restores from
UniversalMac_27.2_26B8125_Restore.ipsw, not from the 26B123 image of the
Mac17,8 that aurora-silicon#1173 pins. Its Firmware/agx/armfw_g17x.im4p and
armfw1_g17x.im4p carry a010 (G17S) images whose LC_UUIDs 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 at 26B123's offsets, but the
fwid digest differs:

  26B8125 G17S  af68d034a3f006b43dab661b825f12598cb86e4d2a0e3844f14fa5059f38f6cb
  26B123  G17S  2b4613c62a8a007f22a94101702c9ac6c4e90f2e123f3b36fbe6ffea913f0fd9

(~/new-mac/gpu/tools/fwid.py, check_fwid.py's algorithm.) Without this
entry the driver refuses the K116s firmware before any GPU write.

It names V26B123_M5: the AGX kext of the 26B8125 kernelcache builds root
version word 0x0c8e_4339_8728_04c0 and its u64[24] allocation size table
is ABI_ALLOCATION_SIZES_26B123_M5 entry for entry (HW data 0x2850, policy
0x12728, status config 0x790), and both firmware roles build the same
version word (~/new-mac/gpu/tools/verword.py, verword2.py). The interior
offsets of the policy and the status config were not compared against
26B123's and no 27.2 firmware has run this graph on hardware.

Signed-off-by: Jens Axboe <[email protected]>

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf, following the website lane's review/merge request.

This remains unready for merge at d8ca53c: it is still draft and conflicts with integration/aurora. The source still explicitly marks the 27.2/27.3 layouts and controller values as not confirmed from observed InitData. The author's6766779545/6812013120 replies say those observations are missing and the current Graph port will be done together with them, not before. The branch has not moved since that hold, and there are no reported checks on this exact head.

The older J716s initialization/desktop evidence does not qualify this revised source or every newly admitted firmware profile. Current main's T6050 profile still identifies only27.0; the missing support has not simply landed by another route. A website Working row cannot replace the outstanding provenance/ABI and integration gates.

Path to landing: provide the provenance-compliant observed-field evidence requested by the maintainer, replace/confirm the unverified values, port onto the current per-build Graph, and supply exact revised-head build/tests and hardware work for its admitted scope. Narrowing to a separately evidenced profile is an option; do not guess values or broaden identities to make CI green. Please keep raw private inputs out of public artifacts. I am not mechanically rebasing or building this stale ABI in advance of that evidence.

Existing Changes Requested/author draft hold remains. No site edit, revisit of merged dependencies, firmware download, hardware access, branch push or merge was performed. I will watch for the author's source/evidence update.

@funkzy

funkzy commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

@rolotrealanis98, a G17D data point for the 27.2 slice, and an offer. Nothing here changes your branch, and how to take it is your call.

The G17D digest you listed. The 27.2 G17D (a020) digest and record offsets in this PR's description admit the M5 Ultra's 27.2 firmware. #2866 adds that build to CONFIG_ULTRA's firmware list on #1650, in #2185's shape, and its commit credits this PR for the values. If you would rather carry the entry here, say so and I'll close mine and post the J775D row here instead.

The G17D controller words. Your M5_26B123_POLICY_CONTROLLER_WORDS_G17D (2500/800/1100/0/1600) are validated compatible with the 27.2 firmware on the J775D: the row below runs with them.

A G17D status config built from the policy. For the G17D on 26B123, #2866's second commit doesn't use the 26A428 status config moved through M5_26B123_STATUS_CONFIG's bands. It builds the status config from the policy as built, word by word: 80 words, 75 of them read from the policy, four from the status config every other M5 gets (M5_25G76_STATUS_CONFIG_WORDS) and one value. These are two GPU power-controller records, two byte-packed records, the controller block with the G17D controller words, and a boost block. It is selected by HW-data core type from the build's policy map (M5PolicyMap::core_words, next to your controller_words_by_core), as Ryan asked for the controller words. No board or compatible check is involved. These values are validated compatible with the 27.2 firmware on the J775D. The bytes for every other core type are unchanged.

What it may mean for G17S and G17C. I only have the G17D. If a G17S 27.2 status config validated on your J716s comes out the same way, built from the policy, the table could become the 26B123 status-config map for every core type in your series, with this commit dropped. On the host, the table applied to the J714 and J716C policies differs from their current 26B123 status config in 86 words, 85 of them words where the J775D's band-moved config differed from the table too; I can share the harness and the word-by-word diff. If the band map is what validates on the G17S, the per-core-type table stays as it is. Either shape works for us: we can rebase onto yours, or send the table as a delta on this PR. Merging the two per-core-type tables (controller_words_by_core and core_words) into one entry per core type would also be natural there.

J775D 27.2 row, extra evidence for this PR, not its own row: kit g17d272s (baseline kit g17d272sb without the two commits), on integration/aurora 95a13cf + #1650 + #1973's two GPU commits (107d80f, 0a83dd0) + our pr/g17d-272 (#2866): on the 27.2 stub, 26B123 for T6050, both InitData acknowledged, renderD128, Hyprland on the GPU, render CTS subset 571 Pass / 57 NotSupported / 0 Fail, and 0 GPU faults, recoveries, WARN or BUG. Without the two commits the firmware is refused. The same kernel on the 27.0 stub identifies 26A428 and gives the same CTS result.

@ja-818

ja-818 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Data point from a second J716s: its fused GPU perf states (macOS 27.2.1 ADT sgx perf-states/perf-states1) differ from the J716S table here. It needs up to 5 mV more than the J716S table at 988-1578 MHz (on one lane or both) and up to 25 mV less on the other lane at 1278-1620 MHz, and it exceeds J714_GPU_PERF_STATES by up to 15 mV at 988-1278 MHz. So a per-board table undervolts some units of the same board. Could the M5 path take the perf states from the device tree, filled by the loader from the ADT as m1n1 does on earlier SoCs, with the board table only as a fallback? I'm running the J716s on its own ADT values (core taken as the higher of the two tables per state) and the GPU runs fine; happy to test a DT/ADT-based version.

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 <[email protected]>

Signed-off-by: Rolando Trevino <[email protected]>
…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 <[email protected]>

Signed-off-by: Rolando Trevino <[email protected]>
@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Ryan, #1173 is rebased and split as you asked; I have not pushed it yet.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

@funkzy thanks for the J775D row and the offer. Please keep #2866 open and separate; I would not move it here.

  • drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) #1173 is the 27.2 slice for the M5 Pro (G17S): the InitData graph and the one G17S build. drm/asahi: m5: unify 26B123 status-config encoder and admit G17D 27.2 firmware #2866 admits the M5 Ultra's build in CONFIG_ULTRA and adds the G17D status config (encoder and 80-word table). I cannot run that on a G17D, and you have the hardware row for it.
  • It needs nothing from this PR beyond V26B123_M5 and the per-build policy map, and both stay in the rebased series. Your two commits (fe5e85c, 25ab384) cherry-pick onto it without conflicts; I checked that with git merge-tree only, I have not built or run it.
  • Merging controller_words_by_core and core_words into one entry per core type is fine by me; do it in drm/asahi: m5: unify 26B123 status-config encoder and admit G17D 27.2 firmware #2866 on top of the rebase.
  • Your J775D run (571 pass, 57 not supported, 0 fail on the 26B123 stub, 0 faults) is the evidence that the G17D controller words and the 26B123 graph work on a second part. I will cite it from the description as yours.
  • On the G17S status config: the J716s capture agrees with the band map at the link pointer (0x788) and at the four inserted words, but it cannot tell a controller block of 0x64 bytes from one of 0x5c, so I cannot say yet whether a policy-derived config would match the G17S. I will compare the captured config word by word against both and post the counts here. Until then the band map stays for the G17S and your table stays per core type.

@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

@ja-818 thanks for the second J716s. Two points.

  1. This PR carries no J716S table any more. The M5 Pro boards share the J714 board in the base (J714_GPU_PERF_STATES), and this PR only changes the InitData layouts for the 27.2 firmware, not the perf states. So your numbers are against the J714 table, which the J716s also uses, and I will not change that here.
  2. I agree the unit should be the source. G15 and G16 already read the ADT, the non-M5 G17 path reads operating-points-v2 from the device tree, and only the M5 path uses constant per-board tables. For the G17S I think it can work the same way: the loader writes the operating points from the ADT (perf-states, perf-states1 and the SRAM voltages, as the J716c dtsi already expects), the driver uses them when they are present and valid (same frequencies, ascending, plausible voltages), and the board table is the fallback. It needs a GPU node on the J716s (Ryan wrote that a shared G17S node is in progress) and a loader change, so I would do it as a separate PR after this slice and that node, not in this one.

Could you post the per-state values of your ADT (frequency, both core voltages, SRAM) and how you apply "the higher of the two" today? I will check them against my unit, and I would like you to test the DT version.

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 <[email protected]>
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 24, 2026 17:36
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 24, 2026 17:36
@github-actions github-actions Bot added 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) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 5d9e8993: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
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 5d9e8993, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · (a plain revert undoes it)

Areas: area:gpu

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

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 24, 2026
DjDeveloperr pushed a commit to sithglan/aurora-linux that referenced this pull request Nov 24, 2026
…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 <[email protected]>
DjDeveloperr pushed a commit that referenced this pull request Nov 24, 2026
The 26B123 G17C build has the same interface (V26B123_M5) and the same
GKTS/ECAP records and boot-filled ranges as the 26B123 G17S build, with
its own digest. Without an entry the driver refuses the M5 Max's 27.2
firmware before any GPU write.

Add the build, with the digest of its TEXT with those ranges zeroed.
The same computation gives the existing 26A428 G17C pin and the 26B123
G17S one. Extend the fwid layout test in fwid.rs (renamed to
m5_builds_name_their_layouts) to check CONFIG_MAX alongside CONFIG so
the new G17C entry's layout variant and digest uniqueness are verified
too.

Signed-off-by: Erik Bourget <[email protected]>
[Diljit: applied on #1173 as merged, which carries no 27.3 (26C5035r)
 layouts: the layout test checks 27.2 and 27.0 builds only]
Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged main (50d1cd0) into this branch as 5d9e899. Your two commits are unchanged.

One conflict, in drivers/gpu/drm/asahi/g17/initdata/m5.rs. Main removed InitData::m5_policy_telemetry_word() as unused in f4db4c4. This branch only rewords that function's doc comment. The resolution keeps set_m5_policy_layouts() and drops m5_policy_telemetry_word(), which nothing calls.

tools/asahi/run-host-tests.py --only g17 passes 90/90 on the merge.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Checked the 27.2 InitData graph and T6050 firmware identification diff, clean human sign-offs, green host-tests/pr-text CI, and the J716s hardware verification rows. No blocking findings.

@DjDeveloperr
DjDeveloperr merged commit 84b324d into aurora-silicon:main Nov 24, 2026
4 of 5 checks passed
DjDeveloperr added a commit that referenced this pull request Nov 24, 2026
drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173)
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) ci-failing A check failed at the PR head (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.

7 participants