diff --git a/README.md b/README.md index 8bd3bb9..b55503b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Which devices run their desktop on the GPU today: the GPU column of | A11 (T8015) | iPhone X (D22) | Identity read (Fender+0x4000 = `0x01001000`, G10P B0) and the core powered up and down from Linux; no PowerVR CORE_ID; the GFX coprocessor is not started yet | [a11/](a11/README.md), [tools/a11/](tools/a11/README.md) | | A9 (S8000/S8003) | iPad 5 (J71s/J71t/J72s/J72t), iPhone 6s Plus (N66) | labwc desktop and Firefox with hardware WebRender on the GPU; merged in orchard as a powervr backend ([orchard#138](https://github.com/OrchardLinux/orchard/pull/138)) and [OrchardLinux/mesa#8](https://github.com/OrchardLinux/mesa/pull/8); see orchard's [docs/bring-up/gpu/a9-g5p.md](https://github.com/OrchardLinux/orchard/blob/main/docs/bring-up/gpu/a9-g5p.md) | [a9/](a9/README.md) | | A8 (T7000) | iPod touch 6 (N102), iPhone 6 (N61); iPad mini 4 (J96) | iPod touch 6: GPU desktop (labwc and Qt through Zink on the Vulkan driver), display-DART scanout; iPhone 6: tester kit 4 passes (Vulkan, ladder 51/52, display); vertex textures and a Wayland stop still open ([orchard#196](https://github.com/OrchardLinux/orchard/pull/196), [OrchardLinux/mesa#18](https://github.com/OrchardLinux/mesa/pull/18), open). iPad mini 4: GPU desktop | [a8/n102/](a8/n102/README.md), [a8/](a8/README.md) | -| A8X (T7001) | iPad Air 2 (J81) | Power-up reached; identity words read on Linux once the PMGR `dwi` domain is on (kept on by `apple,always-on`); the firmware core is a META MTP219; Apple's firmware boots from a host-built memory image to its alive event (visible after an SLC flush; page-table flags, perf table and POLICY next); no job submitted | [a8x/](a8x/README.md), [FIRMWARE-BOOT.md](a8x/FIRMWARE-BOOT.md), [tools/a8x/](tools/a8x/README.md) | +| A8X (T7001) | iPad Air 2 (J81) | Renders on Orchard's `pvr_apple` driver (A8X added as a second chip, [linux#165](https://github.com/OrchardLinux/linux/pull/165)) with Apple's 19H394 firmware: shaded, textured and depth-tested 3D, KMS flips at 60 Hz from GPU buffers, a touch-driven cube; hardening suite passes; Orchard's Vulkan driver runs 46/47 test rungs with an A8X device entry (not yet merged); no desktop on the GPU yet | [a8x/](a8x/README.md), [RENDERING.md](a8x/RENDERING.md), [FIRMWARE-BOOT.md](a8x/FIRMWARE-BOOT.md), [tools/a8x/](tools/a8x/README.md) | More chips join as their own directories. diff --git a/a8x/README.md b/a8x/README.md index dc7893d..d156874 100644 --- a/a8x/README.md +++ b/a8x/README.md @@ -3,7 +3,7 @@ This is a field report on GPU work for the iPad Air 2 Wi-Fi (`iPad5,3`, J81, Apple A8X/T7001, Imagination PowerVR GXA6850). It records experiments on one physical device and offline analysis of Apple kernelcaches through -26 November 2026. It is not a driver, a device-profile change or a procedure. +4 December 2026. It is not a driver, a device-profile change or a procedure (the driver is in the kernel PR linked below). J81's `gpu = "missing"` in Orchard's [`devices/j81/device.toml`](https://github.com/OrchardLinux/orchard/blob/main/devices/j81/device.toml) is unchanged. @@ -14,6 +14,10 @@ layer). The detailed notes are under that repository's directory. The latest results and supporting notes are on the [J81 research branch](https://github.com/mattonik/ipad-nixos/blob/j81-dwi-gpu-compare/research/gpu-status.md). +## Update, 4 December 2026: the A8X renders, scans out and follows touch + +The firmware now runs under Orchard's own driver and the J81 renders shaded, textured and depth-tested 3D, flips GPU buffers to the panel at 60 Hz and runs a touch-driven demo; the kernel series is [OrchardLinux/linux#165](https://github.com/OrchardLinux/linux/pull/165). Details, limits and how to reproduce: [RENDERING.md](RENDERING.md). The earlier sections below are the history that led here and still describe the measurements they were written for. + ## Update, 26 November 2026: Apple's META firmware boots to its alive event under Linux Follow-up to [DWI-FOLLOWUP.md](DWI-FOLLOWUP.md), same device and kernel pin. Details, the corrected claims and what is next: [FIRMWARE-BOOT.md](FIRMWARE-BOOT.md); offline tools: [`tools/a8x/`](../tools/a8x/README.md). In short (E = measured): Fender replays the ConfigRAM list at the GPC 0 to 1 request (the GFX bridge settings must be re-applied after every GFX power-on, and the Fender window must be mapped in full); the firmware (META MTP219) boots from a host-built memory image through host-built GPU page tables, loads its code into core memory, initialises its tables and posts its alive event; the record only became visible after an SLC flush because our firmware pages are not mapped with SLC bypass (Orchard's A8/A9 flags are the next change). The earlier claims that the Fender override store or later RGX reads hang the bus were a bug in our module (a too-small mapping), corrected there. One device, no job submitted, no frame rendered. diff --git a/a8x/RENDERING.md b/a8x/RENDERING.md new file mode 100644 index 0000000..3296bbe --- /dev/null +++ b/a8x/RENDERING.md @@ -0,0 +1,37 @@ +# iPad Air 2 (J81) GPU: rendering, display and touch demo (4 December 2026) + +Follow-up to [FIRMWARE-BOOT.md](FIRMWARE-BOOT.md). Same device (`iPad5,3`, J81, A8X/T7001, GXA6850), but now on Orchard's own driver instead of our private module: the A8X is a second chip in the Apple Imagination driver (`pvr_apple_s8003.c`, the "t7000" path) with Apple's 19H394 firmware (sha256 `55018c7e…2c2f`, extracted by the user from their own kernelcache, never committed). Everything below was measured on one J81; E = measured on the device. + +## Where the code is + +| What | Where | +|---|---| +| Kernel: the A8X chip, power-up, compute/geometry/fragment jobs (14 commits, rebased on `main` 56c992e) | [OrchardLinux/linux#165](https://github.com/OrchardLinux/linux/pull/165) | +| Display pipe DT for J81 (adbe + DART bypass + 64 MiB CMA) | branch `j81-display-dt` on [mattonik/linux](https://github.com/mattonik/linux), not yet a PR | +| Test runner, replay generators, stage payload recipe, hardening scripts, results notes | [mattonik/ipad-nixos](https://github.com/mattonik/ipad-nixos): `boot/orchard-stage/`, `research/2026-12-04-j81-*.md` | +| Mesa: A8X device-info entry (BVNC 7.5.8.3, 8 clusters) | `mesa/` in ipad-nixos (patch against OrchardLinux/mesa `main`), not yet a PR | + +## What works (E) + +| Stage | Result | +|---|---| +| Firmware | boots under the driver, `CORE_REVISION 0x00070500`, "GFX firmware takes commands"; the A8X 3D record tail follows 19H394's layout (this fixed the post-3D wedge) | +| Compute, geometry, fragment | each submitted through the DRM driver (`/dev/dri/renderD128`), no fault lines; clear to a 32x32 and a full 1536x2048 target | +| Shading | flat, position-ramp and Gouraud triangles; nearest and bilinear texture sampling with per-frame texture rewrite; several triangles with depth test; frame loops and animation (rotating triangle and a depth-tested textured cube); frame cost 3.6-4.6 ms for a full panel | +| Display | `adbe` takes the panel over from simpledrm (DART bypass scanout, 64 MiB CMA), GPU frames are PRIME-imported as scanout buffers and flipped at 60.0 Hz (599 flips in 10 s, no missed vblank) | +| Touch | a touch-driven cube (`apple_z2` evdev, one finger drags, two fingers pinch): about 3.5-4 ms per frame, thousands of frames without error | +| Hardening | 20000-frame soak, 4 concurrent processes, 6 runtime-suspend cycles, 8 provoked hang/fault cases (each resets the GPU, the next render is correct), a healthy 15000-frame loop beside two faulting processes, 400 sequential runs without a leak. Re-run on the rebased series on 2026-12-04 except the suspend cycles | +| Mesa | with the A8X device entry, Orchard's Vulkan driver ran 46 of 47 rungs of our test ladder; depth16 fails, vkmark rungs not run | +| Userspace | NixOS and Orchard's Omarchy A (Arch Linux ARM + labwc) both boot on the Orchard kernel on J81; the Omarchy desktop runs from a disk image served by the Mac (`orchard install --disk`, `orchard launch --disk`), touch works and the desktop's Wi-Fi settings screen shows; it has no GPU yet on the stock kernel (Wi-Fi association was not tested there) | + +## Limits and open items + +- Scenes of about 10-15k small triangles exhaust the 32-block PM pool (no pool growth on this path): the job times out after about 5.8 s, the GPU resets and recovers. +- The test programs are hand-assembled USC/PDS words and replays, not compiler output; the Mesa path (Zink, a compositor on the A8X) is not done. +- Translated display scanout (`dart_scanout=1`) is untried; the display DART's PMGR gate numbers in the DT are unverified. +- No camera, audio card or Touch ID work. +- Orchard's `devices/j81/device.toml` still says `gpu = "missing"`; the kernel PR is what would change that. + +## How to reproduce + +The firmware and touch firmware are yours to extract ([`tools/a8x/`](../tools/a8x/README.md), `tools/a10/tools/extract-firmware.sh` for the pattern) and stay out of git. The recipe for the stage payload (kernel branch, our m1n1 with the ADT touch-calibration forwarding, `orchard build --device j81`) and the test commands are in `boot/orchard-stage/README.md` of ipad-nixos; the on-device commands are `j81-gpu-stage b` (load the driver) then `a8-gpu-drm compute|kms FILE.rpl`, or `j81-touch-demo`.