Repository navigation
Conversation
With the AOP started (t8010/0040, 0041), an iPhone 6s Plus hangs in s2idle: genpd turns aop_gpio off in the noirq phase while the AOP firmware keeps running. Mark aop_gpio always-on, as ps_aop is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFMaVf5sMxs7xEyPFZWGEj
|
Now also tested on an installed system: Omarchy on the iPhone 6s Plus (N66) from storage, with this one change in its DTB and the AOP running ( The iPad 5 is still untested. |
|
Correction, please hold this PR: in every test above that passed with the change, the AOP accelerometer and gyroscope children did not probe ( |
|
Retested with a DTB built from source with this patch (
So the hang without this patch is not from the accel/gyro drivers: with them running, |
|
And on the installed system with the source-built DTB: Omarchy on the iPhone 6s Plus with the AOP accelerometer, gyroscope and barometer probed. omarchy-powerd suspended it after its idle timeout ( |
Since #219 the AOP starts on the A9 iPhones. With it running, the iPhone 6s Plus (N66) no longer comes back from s2idle. Omarchy suspends after about a minute idle, so on an installed N66 the phone hangs a minute after boot.
Cause. The AOP's firmware keeps running while Linux sleeps, but the power domain of its GPIO block,
aop_gpio, is not always-on likeps_aopitself. In s2idle genpd turns it off in the noirq phase.Fix.
kernel/patches/devices/t8010/0048:apple,always-ononps_aop_gpioins800-0-3-pmgr.dtsi. One line.Tested on an iPhone 6s Plus (N66), all in a RAM boot with the all-features kernel:
pm_test=platformTriggering wakeup from IRQ 67, Power Button); the AOP still answers afterwards (barometer reads)pm_test=devicespassed in every case, so the hang is in the late/noirq phase.Not tested:
Checks:
kernel/audit-patches.py --device n66applies the whole series including 0048; unit tests OK;generate matrix --checkok.🤖 Generated with Claude Code
https://claude.ai/code/session_01SFMaVf5sMxs7xEyPFZWGEj