Skip to content

drm/asahi: admit a third loaded T6040 25G83 image - #500

Closed
fbalazsy wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
fbalazsy:j616s/asahi-t6040-image3
Closed

fbalazsy wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
fbalazsy:j616s/asahi-t6040-image3

Conversation

@fbalazsy

Copy link
Copy Markdown
Contributor

Follow-up to #453. A J616s (MacBook Pro 16" M4 Pro, 20-core GPU, 26.6.2 boot firmware, iBoot mBoot-18000.161.10) loads a third normalized T6040 TEXT identity. With the two admitted by #453 the probe stops:

asahi 28a600000.gpu: unsupported GPU firmware build: TEXT 0x60000 DATA 0x138000 entropy 0x59839/0x5991c sha256 d725264d4831b95a5b8a375abf2fb5cdfbd6d7cbc7f1baa2cc8b37ee5d6e5e98
asahi 28a600000.gpu: GPU firmware image not admitted: Error(22)

and the device has no render node (the compositor falls back to no renderer).

Build.images already takes a list: this adds d725264d…5e98 to the 26.6.2 T6040 list. TEXT and DATA sizes and the entropy offsets still have to match exactly; the 25G83 variant and everything else are unchanged. The KUnit test that runs every listed T6040 image through the lookup used by identify() gets the third digest (renamed t6040_accepts_all_loaded_images). Only the digest is added: no Apple bytes or code.

Evidence. Hardware: this J616s. Three boots of kernels with this entry (7.3.0-m4.114, .115 and .116, each on current integration/aurora) admit the image: GPU firmware build: Apple GFX 25G83 for T6040 (normalized loaded image, …), /dev/dri/renderD128 is present, vulkaninfo lists Apple M4 Pro (G16S B1) with the Borealis driver, and the Hyprland session (EGL on the GPU) runs on it, including HDMI and USB-C DisplayPort displays. The kernel without the entry (7.3.0-m4.113, one boot) shows the error above. The daily kernels of this machine carried an equivalent local entry for days before.

Not done: KUnit and the Buildbox gates were not run (the test edit is formatted with the pinned rustfmt but was not compiled in a KUnit build); I did not compare the image against the IPSW firmware as #453 did, so I cannot say which fields differ from the other two.

A J616s with 26.6.2 boot firmware (25G83, iBoot mBoot-18000.161.10) can load
a third normalized T6040 TEXT identity: TEXT 0x60000, DATA 0x138000, the same
entropy offsets, sha256 d725264d4831b95a5b8a375abf2fb5cdfbd6d7cbc7f1baa2cc8b37ee5d6e5e98.
Without it the GPU probe stops with "GPU firmware image not admitted" and the
device has no render node.

Add the digest to the 26.6.2 T6040 image list next to the two existing
identities and to the KUnit test that exercises every listed image through
the lookup used by identify().

Signed-off-by: František Balázsy <[email protected]>
@fbalazsy

Copy link
Copy Markdown
Contributor Author

Folded into #451 (commit 6 of that series), so there is one PR for the J616s work in this repository. Closing this one in favour of #451.

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