Repository navigation
drm/asahi: g16: accept the 8-core J713 loaded 25G83 image - #442
Merged
Merged
Conversation
The 8-core M4 (J713, 13-inch MacBook Air) runs the same 25G83 G16 firmware as the qualified 10-core image: build 2 of the 26.6.2 armfw_g16g.im4p. iBoot patches the TEXT segment per device, so the loaded image differs from the qualified hash only in the block iBoot fills in after the entropy records (0x5c999-0x5d158: chip and revision records and a register tunables table) plus one header word at 0x23d. The firmware code is byte-identical, and the driver never reads that block: performance states come from the ADT and the core mask from hardware. Add the normalized SHA-256 of the 8-core loaded image as a second FirmwareBuild so the driver accepts it. Measured on one 8-core J713 over two boots, with the gpu-fw-text reservation dumped from the initramfs (aligned 64-bit loads from /dev/mem) and normalized as the driver does. Signed-off-by: Erik Bourget <[email protected]> (cherry picked from commit 17f0429)
This was referenced Oct 25, 2026
RyanTheTide
added a commit
to jgoyvaerts/linux
that referenced
this pull request
Oct 25, 2026
Resolve the conflict with aurora-silicon#442 in drivers/gpu/drm/asahi/g16/hw.rs. The 8-core J713 entry from aurora-silicon#442 moves to the shared FirmwareBuild and names both entropy records at the same offsets as the first T8132 entry. The old G16 identity zeroed the same two records at those offsets before hashing, so its recorded digest stays valid. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
erikwb
pushed a commit
to erikwb/linux
that referenced
this pull request
Oct 26, 2026
Keep a list of admitted images on each versioned firmware Build and pass that list to fwid::identify(). Version selection uses the first matching Build, so another Build for macOS 26.6.2 would leave its image unreachable. Add the second normalized T6040 identity measured over two J616s boots. The boots differ only in their entropy payloads. Compared with the qualified 25G83 image, the remaining differences are the field at 0x23d and the iBoot-filled patchbay/tunables area. The executable code outside those areas and DATA are unchanged. This follows the J713 precedent in aurora-silicon#442, while keeping whole-TEXT hashing and exact identity checks. Factor the existing lookup so KUnit can exercise the real T6040 and J713 lists with digest measurements, without embedding firmware. Cover both T6040 identities, both J713 identities, unknown digests and size/offset mismatches. Keep the entropy-normalization tests. Link: aurora-silicon#442 Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
This lands #389 on integration/aurora. #389 was opened against m4/pr2-gpu-dcp, which is now far behind integration/aurora, so retargeting it pulled in that branch's 40 older commits. This branch carries only Erik's commit 17f0429, cherry-picked onto integration/aurora d3cf19b with his authorship, date and sign-off kept.
The change adds a second FirmwareBuild to the t8132 table: the normalized hash of the same 25G83 G16 image as iBoot loads it on an 8-core J713. Only the block iBoot fills in after the entropy records differs, and the driver doesn't read it. Other chips are unaffected, since the table is t8132 only.
Evidence is Erik's measurement on his J713 over two boots, described in the commit message. We have no J713 here, so the gates on our side are a build of the driver.