Skip to content

GPU: A9 firmware recipe and device tree, and the A10 chip specifics split out - #137

Merged
henrikklee merged 3 commits into
mainfrom
gpu-a9-phase1
Nov 14, 2026
Merged

henrikklee merged 3 commits into
mainfrom
gpu-a9-phase1

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

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.

brkosebay and others added 3 commits November 14, 2026 21:24
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
@henrikklee

Copy link
Copy Markdown
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.

@henrikklee
henrikklee merged commit 170b343 into main Nov 14, 2026
11 checks passed
@henrikklee
henrikklee deleted the gpu-a9-phase1 branch November 14, 2026 15:09
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.

2 participants