Repository navigation
drm/imagination: apple: Add the A10X (T8011) GPU - #174
Conversation
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>
|
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 Two more notes, nothing for you to do yet:
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>
|
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 |
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:
dwipower 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.PVR_APPLE_FW_RUNTIMEthe RTKit buffers landed on the firmware's own data and it stalled after the crashlog request. The chip now gives its own offset (0x90000).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
arm64: dts: apple: t8011: Keep the DWI power state ondrm/imagination: apple: Let a chip place its firmware's runtime datadrm/imagination: apple: Size the A10's job register blocks per chipdrm/imagination: apple: Add the A10X (T8011) GPUarm64: dts: apple: t8011: Add the GPUTesting. 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-probepasses (renderer=zink Vulkan 1.2 (PowerVR Apple A10X)), labwc composites on the GPU (WLR_RENDERER=gles2through 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 currentmain, the series builds withorchard buildfor 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
pd_ignore_unused clk_ignore_unused: some power domain switched off as unused freezes the board, separate from the GPU. Not found yet.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.gpuid=13.10.6.2; that is a separate PR to OrchardLinux/mesa.apple,t8010-gpu,apple,t8011-gpuhas no schema yet.Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code