Repository navigation
GPU: A9 firmware recipe and device tree, and the A10 chip specifics split out - #137
Merged
Merged
Conversation
The A9's GPU (G5P) runs Apple's firmware on its own META processor. The agx-g5p-ldr-from-kernelcache@1 step takes that firmware, a META LDR, from AGXFirmwareKextG5P in the user's kernelcache and accepts only the C0 image of iPadOS 16.7.10 (size and SHA-256 pinned). From Berkay Kösebay's G5P work (#74, 557ef01). Integrated next to the A10 step in orchard.apple.agx, and the J71t recipe writes the image as lib/firmware/apple/gfx-s8003.bin, the name the GPU driver will request (the A10's is gfx-t8010.bin). Only J71t gets the output: the image is qualified on that board. Assisted-by: LLM
The A9's GPU gets its binding and its node: the Rogue core's registers, Apple's Fender block, the gfx power domain, five interrupts and the firmware file the J71t recipe produces (apple/gfx-s8003.bin). The node is disabled and no driver matches it yet, so no board changes. From Berkay Kösebay's G5P work (#74, 557ef01): the register ranges, power domain and interrupts are his node's, unchanged. Reworked for the powervr driver's Apple firmware path, which will take the node: the compatible and register names already follow the A10's node; the label is gpu, the firmware name is set, and boards enable the node once that driver binds it. Assisted-by: LLM
The A9's GPU runs the same family of Apple firmware as the A10's. The driver's Apple path is now two parts: what the chips share (job submission and ordering, completion, power and performance states, runtime PM, sleep, recovery) and the A10's own side (its coprocessor, its firmware memory layout and commands), chosen by the device tree compatible. An A9 implementation can be added next to the A10's. Nothing changes on the iPad 6 and 7: the GPU gets the same register writes and firmware messages in the same order. Not built or run yet. Assisted-by: LLM
Contributor
Author
|
Checked on the iPad 6 (J71b): this build's powervr.ko loaded in place of the installed one, the login screen and the logged-in desktop (labwc, GLES via zink) render on the GPU, 30 screenshot readbacks went through, and the kernel log shows no faults. Merging. |
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.
Phase 1 of the A9 GPU (Berkay's #74) as a backend of the shared powervr Apple path: his firmware recipe (gfx-s8003.bin for J71t) and S8003 GPU node (disabled), plus a behaviour-neutral split of pvr_apple into shared code and A10 chip ops (pvr_apple_t8010.c, struct pvr_apple_chip). Builds for j71b. Not merging before a J71b GPU desktop check.