Skip to content

drm/asahi: admit the alternate T6040 loaded 25G83 image - #453

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/t6040-loaded-image-list
Oct 25, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/t6040-loaded-image-list

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

A J616s with 26.6.2 boot firmware has a second loaded T6040 TEXT identity. Build currently holds one image, and version selection stops at the first matching build, so adding another 26.6.2 Build would not admit it.

This makes Build.images a slice and passes the whole list to fwid::identify(). The 26.6.2 T6040 list keeps the existing 03df7548…63876dcd identity and adds 190cef1946a23dfbde180592629631c3b28d0509a17eb76108b7c9a52accd9ac. TEXT and DATA sizes and entropy offsets still have to match exactly. The J713 table is unchanged.

The evidence is two J616s boots with the same normalized digest. Between boots, only the two entropy payloads differ. Against build 2 of the 25G83 IPSW firmware, the other differences are the field at 0x23d and the iBoot-filled patchbay/tunables area. There are no executable-code differences outside those areas and no DATA differences. This follows #442, which admitted the corresponding loaded-image case on J713. Only entropy is normalized; the patchbay/tunables remain part of the exact hash.

KUnit exercises both T6040 identities, both J713 identities, rejection of unknown digests and size/offset mismatches through the lookup used by identify(). It uses digest facts and the existing synthetic entropy fixture. No Apple bytes or code are included.

Buildbox gates are queued through a normal buildslot, at most eight CPUs/jobs and nice 10 from buildslot. They cover arm64 defconfig + asahi.config, the Fedora Asahi base + asahi.config, Image/modules/dtbs with W=e and DRM_WERROR=y, and drm/asahi KUnit under QEMU. This stays draft until the results are in. J616s boot admission and GPU smoke will be checked before merge.

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
#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: #442
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

RyanTheTide commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Gate results for 26f5eb6, based on integration/aurora ff1510c.

  • arm64 QEMU KUnit passed 109/109. asahi_fwid passed all four cases, covering both T6040 identities, unknown digest and size/offset rejection, and both J713 identities.
  • Universal defconfig + asahi.config WERROR Image modules dtbs passed. Actual C -Werror and Rust -Dwarnings compiler commands were checked. All 127 fragment requests survived configuration.
  • Fedora-base WERROR Image modules dtbs is incomplete. The stock base first failed configuration because NETFILTER_NETLINK and MULTIPLEXER used legacy m values for options that are now booleans. A retry with those enabled values normalized to y, with all warning flags retained, remained in the normal buildslot queue until the 200-minute worker limit and was cancelled before compilation.

The builds use W=e and DRM_WERROR=y, through a normal buildslot with eight CPUs/jobs. The initial minimal KUnit config hit an existing core Rust lint with AUXILIARY_BUS off. Enabling standard arm64 ACPI support selected that bus, with all fatal-warning flags retained. No source changes or warning suppressions were needed.

The remaining Fedora gate must pass before these results can be called all green. This PR remains draft. No hardware testing or integration merge was performed by this worker.

@RyanTheTide
RyanTheTide marked this pull request as ready for review October 25, 2026 22:55
@RyanTheTide
RyanTheTide merged commit 421e314 into integration/aurora Oct 25, 2026
@RyanTheTide
RyanTheTide deleted the fix/t6040-loaded-image-list branch October 25, 2026 22:55
erikwb pushed a commit to erikwb/linux that referenced this pull request Oct 28, 2026
Treat the OS version as a candidate-order hint. Continue to require an
exact admitted loaded TEXT image and preserve aurora-silicon#453's images list. This
extends Jonathan Goyvaerts' shared identity work.

Originally-by: Jonathan Goyvaerts <[email protected]>
Link: aurora-silicon#428

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant