Skip to content

drm/imagination: apple: Add the A10X (T8011) GPU - #174

Merged
henrikklee merged 6 commits into
OrchardLinux:mainfrom
johannSo:t8011-a10x-gpu
Dec 5, 2026
Merged

henrikklee merged 6 commits into
OrchardLinux:mainfrom
johannSo:t8011-a10x-gpu

Conversation

@johannSo

@johannSo johannSo commented Dec 4, 2026

Copy link
Copy Markdown

The iPad Pro 12.9" (2nd generation, J120) had no GPU under Orchard: the A10X's GPU was not described and the driver did not know it. With this series it runs the Omarchy A desktop on the GPU.

What was in the way. The A10X's GPU is the A10's Rogue core grown to twelve clusters (CORE_ID 0x011b0c02, BVNC 13.7.12.2), at the A10's addresses, but run by Apple's G9G firmware instead of the A10's G9P. Three things kept it from working:

  1. Power. With PMGR's dwi power state off, the GPU rail never comes up: the firmware boots and answers, but the first AP access to RGX (CORE_ID) hangs the bus and the iPad reboots. DWI carries voltage requests to the PMIC; iBoot and iPadOS keep it on. Marked always-on.
  2. Firmware data. The G9G's data ends at 0x8ff04, 0x1000 past the G9P's, so with the A10's PVR_APPLE_FW_RUNTIME the RTKit buffers landed on the firmware's own data and it stalled after the crashlog request. The chip now gives its own offset (0x90000).
  3. Job records. G9G's StartTA and Start3D load their per-cluster registers for 12 clusters and RGX 0xfc0 for 3 pipes (A10: 6 and 2), so StartTA takes 34 words and every Start3D word after 0xfc0 moves one slot (42 words). With the A10's layout the fragment job hung. The lists are now built from the chip's cluster and pipe counts; the A10's come out the same as before.

The A10X also reports 12 clusters to userspace, so Mesa plans three phantoms, one per pipe, and its BVNC is marked experimental (exp_hw_support=1).

Commits

  1. arm64: dts: apple: t8011: Keep the DWI power state on
  2. drm/imagination: apple: Let a chip place its firmware's runtime data
  3. drm/imagination: apple: Size the A10's job register blocks per chip
  4. drm/imagination: apple: Add the A10X (T8011) GPU
  5. arm64: dts: apple: t8011: Add the GPU

Testing. On the J120 under Omarchy A (RAM-booted kernel, installed root), with Orchard's Mesa plus an A10X device-info entry (13.7.12.2, separate Mesa PR): Mesa's gpu-probe passes (renderer=zink Vulkan 1.2 (PowerVR Apple A10X)), labwc composites on the GPU (WLR_RENDERER=gles2 through Zink) and the GPU runtime-suspends and resumes. That testing was on the same code on an older base (0a808a7) with extra bring-up logging, which is dropped here. Rebased onto current main, the series builds with orchard build for the J120; that exact build has not been booted yet. Not tested on the A10 (the A10's job lists should be unchanged).

Not in this PR / limits

  • The J120 still needs pd_ignore_unused clk_ignore_unused: some power domain switched off as unused freezes the board, separate from the GPU. Not found yet.
  • The firmware (apple/gfx-t8011.bin, from the device's own kernelcache) is not included. Orchard's side (the J120's firmware recipe and the kernel bump) is a follow-up PR in orchard once this merges.
  • Mesa needs the A10X device info (a copy of the A10's with 12 clusters and BVNC 13.7.12.2) for the driver to work without gpuid=13.10.6.2; that is a separate PR to OrchardLinux/mesa.
  • No dt-binding change: like the A10's apple,t8010-gpu, apple,t8011-gpu has no schema yet.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

johannSo and others added 5 commits December 4, 2026 22:23
DWI carries the voltage manager's requests to the PMIC. With its power
state off, the GPU rail never comes up: the GPU firmware boots and
answers on its mailbox, but the first access from the AP to the Rogue
core's registers (CORE_ID) hangs the bus and the iPad reboots. iBoot
and iPadOS keep DWI on; the boot chain can hand it over off.

Mark it always-on.

Tested on the iPad Pro 12.9" (2nd generation, J120): with DWI on,
CORE_ID reads 0x011b0c02 (BVNC 13.7.12.2) and the GPU runs.

Assisted-by: LLM
Signed-off-by: johannSo <jzeug@soppa.de>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The A10's G9P firmware keeps its data up to 0x8ecc4 in the firmware
window, so the RTKit buffers start at PVR_APPLE_FW_RUNTIME (0x8f000).
The A10X's G9G firmware's data ends at 0x8ff04 (its start-up code takes
that address from the literal at 0x470); with the A10's offset the
buffers the firmware asks for land on its own data, and the firmware
stalls after its crashlog buffer request.

Add fw_runtime to the chip data: where the image and its data end, 0
for PVR_APPLE_FW_RUNTIME. No change for the A10.

Assisted-by: LLM
Signed-off-by: johannSo <jzeug@soppa.de>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StartTA and Start3D load fixed register lists from the job record: on
the A10's G9P firmware, StartTA's ends with RGX 0x11030 for each of six
clusters (28 words), and Start3D's has 0xfc0 for each of two pipes and
0x11020 and 0x11080 for each of six clusters (29 words). The A10X's G9G
firmware is the same build for a bigger core: it loads 0xfc0 for three
pipes and the cluster registers for twelve clusters (Start3D's loads at
fw 0xc02c-0xc2c2, StartTA's up to fw 0xb164), so StartTA takes 34 words
and every Start3D word after 0xfc0 sits one slot later, 42 words in
all. With the A10's list the fragment job hangs.

Build both lists from a chip's cluster and pipe counts, and let the
record writers take the count they are given. The userspace extension
keeps its six cluster values; the clusters are set alike, so cluster n
takes value n % 6. The A10's lists are unchanged.

Assisted-by: LLM
Signed-off-by: johannSo <jzeug@soppa.de>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The A10X's GPU is the A10's PowerVR Rogue core grown to twelve clusters
(CORE_ID 0x011b0c02, BVNC 13.7.12.2), behind the same Fender block and
RTKit coprocessor at the same addresses, and run by Apple's G9G
firmware (AGXFirmwareKextG9GRTBuddy) instead of the A10's G9P.

Add it as the A10's chip with its own firmware file, the G9G's runtime
data offset (0x90000), its twelve clusters and three pipes in the job
records, and four performance states (the live ADT's sgx node: 426,
616, 848 and 1086 MHz). Report twelve clusters to userspace, so Mesa
plans three phantoms, one per pipe, and mark the BVNC experimental.

Tested on the iPad Pro 12.9" (2nd generation, J120) under Omarchy A,
with Mesa's PowerVR driver taught the A10X's device info: Mesa's
gpu-probe passes (Vulkan through Zink, "PowerVR Apple A10X"), labwc
composites on the GPU (WLR_RENDERER=gles2) and the GPU runtime
suspends and resumes. The boot still needs pd_ignore_unused and
clk_ignore_unused: some power domain switched off as unused freezes the
J120, separate from the GPU.

Assisted-by: LLM
Signed-off-by: johannSo <jzeug@soppa.de>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe the A10X's GPU as the A10's: the Rogue core, Fender and the
GPU coprocessor's IOP at the A10's addresses (the ADT's sgx and gfx-kf
nodes), the coprocessor's mailbox, the GFX power domain and an empty
OPP table the bootloader fills from the ADT's sgx node. The mailbox
interrupts are gfx-kf's 185-188, the A10's minus four. The firmware is
the A10X's own G9G build, apple/gfx-t8011.bin.

Assisted-by: LLM
Signed-off-by: johannSo <jzeug@soppa.de>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henrikklee

Copy link
Copy Markdown

Welcome @johannSo, and thank you! GPU rendering on the iPad Pro 2 is a big step, and the series is cleanly split and easy to follow. I've approved the CI runs for your PR.

One thing needs a fix before we merge, the size of the geometry job record. The A10X firmware reads 34 64-bit registers for a geometry job (StartTA), but pvr_apple_layout_write_ta_job() only has room for 32 before the next block at +0x900 (TA_CANCEL, TA_SKIP and so on), and the new code caps the write at 0x100 / 8. So the firmware reads the last two words from the start of that block, which hold zeros, and two of the twelve clusters get their per-cluster register (0x11030) set to 0 instead of the userspace value. Writing all 34 words in place wouldn't help either, because it would overwrite TA_SKIP and skip every job. Since the firmware gets these blocks by pointer, the fix should be to give the 64-bit block more room by moving it or the control block. The fragment job (42 words) already fits. Could you make that change and re-test on your J120 with the PR head? A desktop that composites on the GPU plus a clean dmesg would be perfect.

Two more notes, nothing for you to do yet:

  • drm/imagination: apple: add the A8X (T7001) GPU for the iPad Air 2 #165 (A8X GPU) adds a case line to pvr_gpu_support_level() in pvr_device.c too. It's a trivial one-line conflict, and whichever PR lands second fixes it.
  • Users get A10X GPU rendering once two more pieces land: the A10X entry in Mesa (a PR to OrchardLinux/mesa) and the firmware recipe in orchard for apple/gfx-t8011.bin. You're welcome to open those too, or tell us and we'll pick them up.

Thanks again for this!

The A10X's StartTA loads 34 64-bit registers, but the geometry job
record had room for 32 at +0x800, before the scratch words at +0x900,
and the writer stopped there. The firmware then read the last two
words from TA_SKIP and its neighbour, so two of the twelve clusters got
0 in their 0x11030 instead of the userspace value; writing all 34 would
have set TA_SKIP and skipped every job.

The firmware takes the block by pointer, so give its place to the match
data: the A10 keeps +0x800, the A10X's block goes to +0x780, which
leaves room for 48 words before +0x900. All 34 words are written, and
the A10's job record is unchanged.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
@henrikklee
henrikklee merged commit c9bc885 into OrchardLinux:main Dec 5, 2026
4 checks passed
@henrikklee

Copy link
Copy Markdown

Merged, thank you! The A10X GPU on the kernel side is a big step for the iPad Pro 2.

What we changed on your branch: one commit of ours on top. On the A10X, StartTA loads 34 64-bit registers, but the geometry job record had room for only 32 before the scratch words at +0x900, so the last two clusters got 0 in their 0x11030. The 64-bit block's place is now in the per-chip data: the A10 keeps +0x800 (its record is unchanged), and the A10X's block moves to +0x780, where all 34 words fit. Your commits are as you wrote them.

The driver only binds with pvr.exp_hw_support=1, so nobody gets it by surprise. Once orchard takes the new kernel and the nightly is out, a report from your J120 (with that switch, and the firmware in place) would be very welcome.

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