Repository navigation
drm/agx: recognise the GPU firmware by its RTKit version - #114
Merged
Merged
Conversation
On the iPhone XR the loaded __TEXT did not hash to the IPSW file's
digest ("GPU firmware not one this driver knows"): iBoot does not load
the segment byte for byte. It still picked the right backend only
because 20G81 is the default. Look for the firmware's RTKit version
string instead, which iBoot leaves as it is: RTKit-2062.142.1.release
in 20G81, RTKit-2413.42.1.release in 21B91 (one occurrence each, in
__TEXT), and log it.
Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
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.
Found on the first XR GPU round (xr-audio): the loaded __TEXT hashed differently from the IPSW file ("GPU firmware not one this driver knows (__TEXT 40681a887a1750ed)"), because iBoot doesn't load the segment byte for byte; the right backend was picked only because 20g81 is the default. The driver now looks for the firmware's RTKit version string, which iBoot leaves unchanged: RTKit-2062.142.1.release (20G81) and RTKit-2413.42.1.release (21B91), one occurrence each in __TEXT (checked in both IPSW files), and logs it. SHA-256 dependency dropped. Checked: apple-16k kernel build, agx module, no warnings.