From 934a4eaad8e62d991a715659f5fe71b9f4b48be8 Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 5 Dec 2026 09:39:47 +0800 Subject: [PATCH] kernel: Take armv7 with the iPad 3 L2 cache and faster simpledrm The armv7 kernel gains the iPad 3's 1 MB L2 cache (linux#162): memory about twice as fast, the J2A booting to the desktop in about 45 s instead of 70 s. simpledrm copies a turned scanout with NEON in less than half the time and offers the panel's own landscape shape as a second mode (linux#163), on the iPad 3 and iPad 4. Both by Developerr86. The J2A's notes say which part of his landscape work is in the kernel and list the flip switch that was left out. Assisted-by: LLM --- CHANGELOG.md | 7 +++++++ devices/j2a/README.md | 8 +++++++- devices/j2a/device.toml | 2 +- docs/devices/j2a.md | 2 +- kernel/upstream-armv7.lock | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c79ea644..c151308e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,13 @@ is missing or empty. ### Devices +- iPad 3 (J1, J2, J2A): the 1 MB L2 cache is switched on, so memory is + about twice as fast and the J2A boots to the desktop in about 45 s + instead of 70 s (Developerr86). +- iPad 3 and iPad 4 (J1, J2, J2A, P101, P102, P103): full-screen updates + take less than half the CPU time, and the screen also offers a + landscape mode (2048x1536), so the desktop can turn sideways without + turning every frame in software (Developerr86). - iPad Pro 9.7-inch and 12.9-inch (1st generation) (J127, J128, J98a, J99a): Orchard builds the SmartIO firmware the audio DMA needs from each iPad's own iPadOS, the same image on all four (needs tools 0.3.17 or newer; diff --git a/devices/j2a/README.md b/devices/j2a/README.md index ce4c9c98..0d92f9e0 100644 --- a/devices/j2a/README.md +++ b/devices/j2a/README.md @@ -144,7 +144,10 @@ How (each tried live first, then built into the image): ## Unmerged code - **Kernel:** [linux#162](https://github.com/OrchardLinux/linux/pull/162) (L2) and - [linux#163](https://github.com/OrchardLinux/linux/pull/163) (simpledrm NEON copy, landscape and flip). His buttons + [linux#163](https://github.com/OrchardLinux/linux/pull/163) (simpledrm NEON copy and the landscape mode) are in + orchard's kernel. simpledrm's writable `flip` parameter was left out of linux#163: turning the picture belongs to + the plane's standard `rotation` property; his version is tagged + [`contrib/Developerr86-simpledrm-flip`](https://github.com/OrchardLinux/linux/tree/contrib/Developerr86-simpledrm-flip). His buttons ([59cc455a](https://github.com/Developerr86/linux/commit/59cc455a1)) are in orchard's kernel as [linux#152](https://github.com/OrchardLinux/linux/pull/152), the same pins. Still only in his fork: debugfs counters for the copy, touch and the SFTL ([ccf9eeb2](https://github.com/Developerr86/linux/commit/ccf9eeb2b), @@ -168,6 +171,9 @@ The iPad 3 is usable for light work now. Still to do: - **Bluetooth:** the BCM4330B1 patchram scans BLE (above); it needs the recipe and the image path. - **Writing the flash:** the NAND driver and SFTL only read; the root is written from iOS and runs read-only under a RAM overlay, so nothing persists across boots. A writer for 8 KiB pages is proposed in linux#167 (not merged). +- **Upside down without the compositor turning frames:** simpledrm offers portrait and landscape as modes + (linux#163); the other two orientations need the primary plane's `rotation` property (`DRM_MODE_ROTATE_180`) in + simpledrm, then the rotation daemon setting it. - **Performance and battery:** Firefox is still slow (software WebRender, about 40 s of CPU to start); GPU idle power, the SoC's die sensor. The USB charge grant (linux#139), sleep and wake (linux#161) and 64 GB flash (linux#155) are in orchard's kernel. diff --git a/devices/j2a/device.toml b/devices/j2a/device.toml index c48e7d60..c6cabe26 100644 --- a/devices/j2a/device.toml +++ b/devices/j2a/device.toml @@ -40,7 +40,7 @@ status = "supported" # GCC 11.4 and the J1 kit's config plus the J2A tree, but orchard's own clang build # has not booted on a J2A yet. [features] -display = "working" # 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). 2026-12-04 (32 GB): native 1536x2048 upright; landscape and upside down through simpledrm's second mode and flip need linux#163. +display = "working" # 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). 2026-12-04 (32 GB): native 1536x2048 upright; landscape and upside down through simpledrm's second mode and a flip switch on his fork; orchard's kernel has the second mode (linux#163), not the flip switch. screen_off = "working" # Power darkens the panel (omarchy-powerd, PMU WLED off) and wakes it, with the buttons of linux#152 (Developerr86, 32 GB, 2026-12-04); bl_power 4 and 0 switch the WLED strings off and back (64 GB) backlight = "working" # 2026-12-04: PMU WLED cycled 1658 -> 400 -> 200 -> 1658 / 2047 on 64 GB unit. gpu_desktop = "missing" # Needs linux#153 + ARMv7 SGX Mesa package. 2026-12-04: SGX543MP4 rev 1.2.2 (4 cores) + 12H321 sgx543.fw + gl-event.pds passed Cascadia Mesa 26.1.8 GLES2 suite and 2048x1536 KMS/GBM zero-copy CLCD scanout (glkms 40.3 FPS, tux-gpudemo 31.6 FPS). diff --git a/docs/devices/j2a.md b/docs/devices/j2a.md index 211120ee..91eb71a2 100644 --- a/docs/devices/j2a.md +++ b/docs/devices/j2a.md @@ -13,7 +13,7 @@ Generated by `tools/catalog/generate matrix` from `devices/j2a/device.toml`; do Driver: this board's device tree has not been read yet (`tools/catalog/generate kernel`). -- ✅ **Display**: 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). 2026-12-04 (32 GB): native 1536x2048 upright; landscape and upside down through simpledrm's second mode and flip need linux#163. +- ✅ **Display**: 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). 2026-12-04 (32 GB): native 1536x2048 upright; landscape and upside down through simpledrm's second mode and a flip switch on his fork; orchard's kernel has the second mode (linux#163), not the flip switch. - ✅ **Screen on/off**: Power darkens the panel (omarchy-powerd, PMU WLED off) and wakes it, with the buttons of linux#152 (Developerr86, 32 GB, 2026-12-04); bl_power 4 and 0 switch the WLED strings off and back (64 GB) - ✅ **Backlight**: 2026-12-04: PMU WLED cycled 1658 -> 400 -> 200 -> 1658 / 2047 on 64 GB unit. - ❌ **GPU desktop**: Needs linux#153 + ARMv7 SGX Mesa package. 2026-12-04: SGX543MP4 rev 1.2.2 (4 cores) + 12H321 sgx543.fw + gl-event.pds passed Cascadia Mesa 26.1.8 GLES2 suite and 2048x1536 KMS/GBM zero-copy CLCD scanout (glkms 40.3 FPS, tux-gpudemo 31.6 FPS). diff --git a/kernel/upstream-armv7.lock b/kernel/upstream-armv7.lock index eafe1f40..d101877c 100644 --- a/kernel/upstream-armv7.lock +++ b/kernel/upstream-armv7.lock @@ -1,2 +1,2 @@ url=https://github.com/OrchardLinux/linux.git -commit=1412c7e48e520c6c949976b6b16b1139f04a7e1e +commit=efa753f9962ef5ce5dcc346e608e7cd7804f495a