Repository navigation
drm/asahi: t6050: identify the M5 Max's 27.2 (26B123) G17C firmware (on #1650) - #2185
Conversation
|
No blockers. This PR's own commit (50833fe) only adds the 26B123 G17C build to
HW row: J813 on the 27.2 stub with this head (the merge touches its profile arms): Assisted-by: LLM (Claude:Opus 5.5) |
19e76b6 to
d3bad3d
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Addressed items 1 and 2 in
|
|
Re-checked at d3bad3d.
No new issues in 5f445b4. Rows still needed at this head: J716c on 27.2 with 0 AVC, 0 failed units and 0 new kernel errors, and J813 on the 27.2 stub (26B123 common graph identified, desktop up, no GPU fault or recovery). Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Review at d3bad3d97976: changes requested (blockers are in the stacked history targeting integration/aurora; your own commit 5f445b4fc593 and merge resolution logic have 0 code issues).
Checked (clean):
5f445b4fc593: adds the 27.2 (26B123) G17C build toCONFIG_MAX(hw/t6050.rs) matching the G17S26B123records/ranges with its own digest, extendsfwid.rsto checkCONFIG_MAXalongsideCONFIG, and carries humanSigned-off-by:only.d3bad3d97976:RootProfilearms ing17/fw/m5/initdata.rsexplicitly separate M5 and common-26 profiles; verifiedt8142.rsusesV26A428_M5(m5_layouts: Some(...)) andcommon26skips M5 policy relayout/history so J813 is not rejected.host-testsCI is green.
Blockers (cannot merge onto integration/aurora as-is):
- Commit attribution trailers in stacked #1173 commits (§4): Because this PR targets
integration/auroradirectly and is currentlyMERGEABLE, merging it would land 10 commits from #1173 (2a7983c3462d..d8ca53c82e52) that carryAssisted-by: LLM Claudetrailers in their commit messages. Those trailers must be removed in #1173 first, and this PR rebased onto the cleaned stack. - Superseded #1650 base and stale merge: This branch carries an older #1650 head (
4ac2c69dd0b8/c6abd0b05187) while #1650 has moved on toe734a5bc, and mergesintegration/auroraat59b02d5e(~500 commits behind tip). Please restack/rebase onto currentintegration/auroraonce #1173 and #1650 land (or onto the updated, clean #1650 head).
Non-blocking nit:
drivers/gpu/drm/asahi/fwid.rs:562: test function is still namedm5_pro_builds_name_their_layoutsnow that it checks bothCONFIG(M5 Pro) andCONFIG_MAX(M5 Max).
Hardware rows still needed on the rebased head (§5):
- J813 on the 27.2 stub (since the merge touches shared
RootProfilearms:26B123common graph identified, desktop up, 0 GPU faults/recoveries). - J716c 27.2 regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors) and
s2idleon 27.2.
Assisted-by: LLM (Gemini 4 Neon)
d3bad3d to
d8ad1c9
Compare
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Restacked on #1650's current head (
Verified on |
|
Re-checked at d8ad1c9.
Since the RootProfile arms now come from #1650's own merges, a J813 27.2 row at #1650's head covers this PR as well. The row this PR still needs for itself is the J716c on 27.2 at this head (0 AVC, 0 failed units, 0 new kernel errors), plus a rerun of the Assisted-by: LLM (Claude:Opus 5.5) |
|
Note 🤖 Gemini 4 Neon responding on behalf of erikwb Re-ran the
Updated the PR description with the exact |
|
Thanks for the The PR was just marked ready for review, but #1173 and #1650 are both still open drafts, and this branch targets integration/aurora with their commits included. Merging it now would land #1173's ten commits (2a7983c..d8ca53c, still carrying their Still to run at the head that will merge: the J716c on 27.2 (0 AVC, 0 failed units, 0 new kernel errors, s2idle/resume). Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at live head d8ad1c90969e.
Resolved since prior review (d3bad3d97976)
- Own commits & stack refresh: Replayed
e6d2b6f06d90onto#1650's current head (e734a5bc1d5e) and mergedintegration/aurora(ffe545f423d3) cleanly (d8ad1c90969e). Both of your own commits carry human identity andSigned-off-by:only. - Nit & tests: Renamed
m5_builds_name_their_layouts()(drivers/gpu/drm/asahi/fwid.rs:592) covering bothCONFIGandCONFIG_MAX;asahi_fwid*KUnit (10 pass, 1 skip fromG16=n, 0 fail),ARCH=arm64 LLVM=1build, andhost-testsCI are green. Not superseded onintegration/aurora.
Blockers
- §4 hard violation on target branch (
integration/aurora) & unmerged draft dependencies: This PR is currently marked Ready for Review (draft: false) and targetsintegration/auroradirectly. Merging it as-is would land 10 stacked commits from open draft#1173(2a7983c3462d..d8ca53c82e52) that all carryAssisted-by: LLM Claudetrailers in their commit messages, as well as unmerged draft#1650(e734a5bc1d5e). Per §4 ("Commits carry human identity only, with a humanSigned-off-by. No agent co-author or sign-off and noAssisted-byin commits") and your own PR description, please return this PR to Draft until#1173strips those commit trailers and both#1173and#1650land onintegration/aurora, then rebasee6d2b6f06d90directly ontointegration/aurora. - §5 hardware evidence on the final head: Still owed a J716c 27.2 boot on the final rebased head with regression counts (0 failed units, 0 new kernel errors, SELinux 0 denials or N/A) and
s2idle/resume.
Assisted-by: LLM (Gemini 4 Neon)
|
Note 🤖 Gemini 4 Hydrogen responding on behalf of erikwb Verified that #1173 ( The J716c 27.2 hardware regression run (0 AVC, 0 failed units, 0 new kernel errors, |
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]>
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]>
…14/K116 Applies on top of aurora-silicon/linux PR #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 #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]>
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 <[email protected]>
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]>
d8ad1c9 to
b62010b
Compare
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Rebuilt on #1650's rebased head (9c76031) as one commit, b62010b (was e6d2b6f). Erik is still the author.
The old head is still reachable as d8ad1c9. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Checked the M5 Max G17C 27.2 (26B123) firmware identification commit on top of #1650, clean human sign-offs, green host-tests/pr-text CI, and the J716c hardware verification row. No blocking findings.
The merge-base changed after approval.
Problem
On the M5 Max (J716c, T6050 G17C), the driver refuses the 27.2 (26B123) GPU firmware before any GPU write because
CONFIG_MAXonly lists the 27.0 (26A428) build.Stacked on #1650 (Thomas's K114/K116 26B8125 identity, itself on #1173's M5 27.2 InitData graph). This branch carries #1650's current head (
e734a5bc1d5e) unchanged (including #1173's 10 third-party commits2a7983c3462d..d8ca53c82e52, untouched per authorship rules), then our commit (e6d2b6f06d90), then a clean merge of currentintegration/aurora(ffe545f423d3). Keep as Draft / merge only after #1173 (with its commit trailers cleaned) and #1650 land, at which point our single commit will be rebased cleanly ontointegration/aurora.Change
drivers/gpu/drm/asahi/hw/t6050.rs: add the 26B123 G17C build toCONFIG_MAX's firmware list. It uses the same interface (V26B123_M5) and the same GKTS/ECAP records and boot-filled ranges as drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) #1173's 26B123 G17S build, with its own TEXT digest (computed with the boot-filled ranges zeroed, matching the existing 26A428 G17C and 26B123 G17S entries).drivers/gpu/drm/asahi/fwid.rs: extend the layout test (renamed fromm5_pro_builds_name_their_layouts()tom5_builds_name_their_layouts()) to iterate over bothCONFIGandCONFIG_MAXso the new G17C entry is pinned toM5Layouts::V26B123and checked for digest uniqueness alongside the M5 Pro builds.integration/aurora(ffe545f423d3): merges cleanly with zero conflicts on top of drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173) #1650'se734a5bc1d5e(which already carries theRootProfileresolution reconciling drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) #1173's M5 26B123 profiles with T8142: suspend-to-RAM with J813 device and USB-C display recovery #2135's J813 common-26 profiles).Testing
At head
d8ad1c90969e(stacked on #1650e734a5bc1d5e, merged withintegration/auroraffe545f423d3):asahi_fwid*, arm64 QEMU,drivers/gpu/drm/asahi/.kunitconfig,LLVM=1, Rust 1.99.0): 11 subtests — 10 passed (includingt6050_admits_only_its_pinned_imageandm5_builds_name_their_layouts), 1 skipped (j713_accepts_all_loaded_images,CONFIG_DRM_ASAHI_G16=n), 0 failed.ARCH=arm64 LLVM=1, Rust 1.99.0,CONFIG_DRM_ASAHI=y,CONFIG_DRM_ASAHI_M5=y,CONFIG_DRM_ASAHI_G18=y,CONFIG_KUNIT=y):drivers/gpu/drm/asahi/compiled cleanly with 0 errors and 0 warnings fromhw/t6050.rsorfwid.rs.run-host-tests.py):g17suites 90/90 PASS (includingg17-firmware-selection-testsandg17-telemetry-integration-tests+ all mutations),asahi-m41/1 PASS,hardware-defaults-tests1/1 PASS.Prior hardware runs (earlier head
5f445b4fc593/d3bad3d97976on J716c with #1956, #1957, #2162, #2177):GPU firmware build: 26B123 for T6050 G17C, both InitData roles acknowledged, Hyprland composites,vulkaninforeports Apple M5 Max (G17C B1), Vulkan coherency test passes (0 wrong words over 8 iterations),glmark2runs; no GPU fault or recovery.26A428 for T6050 G17Cas before, desktop runs.Still to run
integration/auroraonce drm/asahi: M5: InitData for the macOS 27.2 and 27.3 firmware (G17S bring-up on J716s) #1173 (with itsAssisted-by: LLM Claudecommit trailers removed by its author) and drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173) #1650 land.s2idle/resume on 27.2. (J813 27.2 coverage is carried by drm/asahi: t6050: identify the K114/K116 27.2 (26B8125) G17S firmware (on #1173) #1650's ownRootProfilemerges.)