Skip to content

pvr: add the Apple A8X (T7001) device info - #56

Merged
henrikklee merged 1 commit into
OrchardLinux:mainfrom
mattonik:a8x-device-info
Dec 4, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:mainfrom
mattonik:a8x-device-info

Conversation

@mattonik

@mattonik mattonik commented Dec 4, 2026

Copy link
Copy Markdown

Registers BVNC 7.5.8.3, the iPad Air 2's GPU (T7001, GXA6850, eight clusters), so the imagination Vulkan driver accepts it. The kernel decodes the legacy CORE_REVISION 0x00070500 / CORE_ID 0x011b0803 (measured on an iPad Air 2 under Linux) the way it gives 3.10.4.5 for the A8: N = 4 clusters there, N = 8 here.

The entry is the A8's (apple-a8.h) with the A8X's identity and num_clusters. Every other field is the A8's, and through it the A9's placeholders, and is not verified for this GPU.

Tested on an iPad Air 2 (J81) with the A8X kernel series (OrchardLinux/linux#165): the Vulkan loader finds the device and 46 of the 47 rungs of our test ladder pass (depth16 fails, vkmark rungs were not run). It needs that kernel series for the device to exist.

🤖 Generated with Claude Code

Register BVNC 7.5.8.3, the iPad Air 2's GPU (T7001, GXA6850, eight
clusters), so that the imagination Vulkan driver accepts it. The kernel
decodes the legacy CORE_REVISION 0x00070500 and CORE_ID 0x011b0803,
measured on an iPad Air 2 under Linux with the A8X series of the powervr
driver, with the same rule that gives 3.10.4.5 for the A8 (N = 4
clusters there, N = 8 here).

The entry is the A8's (apple-a8.h) with the A8X's identity and
num_clusters; every other field is the A8's, and through it the A9's
placeholders, and is not verified for this GPU. The A8X takes the A8's
paths of the driver (has_apple_g5p, has_apple_g4p).

Tested on an iPad Air 2 (J81) with the A8X kernel series: the Vulkan
loader finds the device and 46 of the 47 rungs of a test ladder run
and pass (depth16 fails, vkmark rungs were not run).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Martin Puškáč <martin@icebear.sk>
@ricktav

ricktav commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Tried #56 under Zink on our J81 (iPad Air 2) running the Omarchy desktop, as a follow-up to the kernel test in OrchardLinux/linux#165.

Setup

  • Kernel: main 56c992e + #165 + your j81-display-dt. m1n1 with your 0003 patch (bridge settings). 19H394 firmware.
  • Mesa: OrchardLinux/packages' mesa recipe (OrchardLinux/mesa f61699f, packaged 27.0.0.5) with this PR (393bd1e) applied in prepare(). Built in the packages CI container and run from a scratch prefix, so the installed Mesa was untouched.
  • Test: the desktop's own gpu-probe (Zink through EGL/GBM, draws green and reads it back), on renderD128 + the adbe card.

Result

  • Without PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=1, Zink gets vkEnumeratePhysicalDevices failed (VK_ERROR_INITIALIZATION_FAILED). That is expected, it's the opt-in.
  • With it, the device is found and the pipeline is created. Then the fragment shader is refused and nothing is drawn:
    Unsupported SPIR-V capability: SpvCapabilityFloatControls2 (6029)   (warning only)
    G5P refuses: fragment shader: fragment: iterator: encoder rejects the fields (A8 no-perspective iterator not captured)
    pvr/g5p: pipeline admitted without programs after a compile refusal
    G5P refuses: a draw of a pipeline without G5P programs (refused at creation, named there)
    GPU-PROBE FAIL: drew green, read back 0,0,0
    
  • No kernel faults or resets.

So the device-info part works for us. The Zink path stops at the A8 no-perspective varying iterator in the compiler, not at device detection. Posting this in case it's useful for the next step. We did not try to work around it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SFMaVeK3LkXZ3zvi9pvxid

@henrikklee
henrikklee merged commit 9b6191d into OrchardLinux:main Dec 4, 2026
1 check passed
@henrikklee

Copy link
Copy Markdown
Contributor

Merged, thank you, Martin! This adds the A8X (T7001) to the PowerVR device list. It is data only: mesa reaches it only on a GPU that reports BVNC 7.5.8.3, so no other board changes.

Open follow-ups, for whenever you get to them:

  • Values copied from the A8 entry. Several fields were taken over from the A8's device info and aren't verified on the A8X yet. Once you've checked them against the A8X (its firmware or a running GPU), a follow-up with any corrections is welcome.
  • Firmware name. This entry names the firmware AGXG4X, while the kernel series (drm/imagination: apple: add the A8X (T7001) GPU for the iPad Air 2 linux#165) loads AGXG4G. One of them should change so both say the same.
  • Cluster count. This entry says 8 clusters, the kernel tells mesa 6. Which is right for the A8X? Whichever is wrong, please fix it (here or in linux#165) so they match.

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.

4 participants