Kernel power headroom analysis: decline full module tree rebuild
Live re-measurement on the connected nokia-argon (screen off, Wi-Fi up,
both SIMs registered) plus kernel-source and pmaports APKBUILD inspection.
Key findings:
- Idle AP is already 98.08% idle, both cores in SPC, all genpd domains off,
SPI/GPU/SDHCI/remoteprocs runtime-suspended. Remaining activity is ~35.8
timer IRQs/s, ~29.5 SPC entries/s, 8.4 function-call IPIs/s.
- mem suspend is impossible here: no PSCI node, qcom_scm smc legacy, cpuidle
qcom_spm, no platform_suspend_ops for MSM8916. CONFIG_SUSPEND would give
only freeze (s2idle), with no DDR self-refresh.
- Full module tree rebuild is mechanically clean (pmaports 6.12.1-r5 applies
no patches, 579 modules / 11 MB, same tarball, zstd module layout already
configured) but would save <1 mA against the ~20-55 mA needed for 24 h in
DSDS + Wi-Fi, while reintroducing the ABI and untested driver-sleep risks
of the unbootable ad3461b image. Declined; known-good ABI stays.
- Additional ABI-breaking options documented: ENERGY_MODEL, PERF_EVENTS,
FUNCTION_GRAPH_TRACER, HZ. RCU_LAZY needs rcu_nocbs=all (bad on 2 cores).
- Where the runtime must come from: modem eDRX/PSM, DSDS policy, Wi-Fi DTIM,
DDR self-refresh (needs PSCI SYSTEM_SUSPEND in lk2nd).
- Recorded the session's hard-reset incident and the VM-BMS 0xffff FIFO
transient (19.2 V / Over voltage after hard reset), with a source-only
clamp recommended as the one kernel-side fix worth doing.
Docs only: no kernel image, module, DTB, config or userspace artifact changed.
This commit is contained in:
1 parent
da68bb8c60
commit
b5a1e0c5f9
5 files changed
+289
-4
No files matched your search
@@ -9,6 +9,51 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — kernel power headroom analysis (no runtime change)
|
||||
|
||||
A second live measurement pass on the connected `nokia-argon` (screen off,
|
||||
Wi-Fi up, both SIMs registered) quantified what is left after the battery
|
||||
pass, and settled the "rebuild the entire kernel module tree" question:
|
||||
|
||||
- **Idle AP is already quiet**: 98.08% CPU idle, both cores in
|
||||
standalone power collapse, all genpd domains off, SPI/GPU/SDHCI and both
|
||||
remoteprocs runtime-suspended. Remaining activity is ~35.8 timer IRQs/s,
|
||||
~29.5 SPC entries/s, 8.4 function-call IPIs/s, 2.4 Wi-Fi RX IRQs/s and
|
||||
2.2 eMMC IRQs/s. With the panel dark, userspace produces only 19.5 context
|
||||
switches/s, mostly kernel threads.
|
||||
- **`mem` suspend is impossible on this firmware**: no PSCI node in the live
|
||||
device tree, `qcom_scm: convention: smc legacy`, cpuidle driver `qcom_spm`,
|
||||
and no `platform_suspend_ops` for MSM8916. `CONFIG_SUSPEND` would give only
|
||||
`freeze` (s2idle) — no RPM power collapse, no DDR self-refresh.
|
||||
- **Full module tree rebuild declined**: pmaports `6.12.1-r5` applies no
|
||||
kernel patches and ships 579 `.ko.zst` files / 11 MB from the same tarball
|
||||
we already build, so the rebuild is mechanically clean. But s2idle would
|
||||
save <1 mA of AP transition overhead against the ~20-55 mA needed for 24 h
|
||||
in DSDS + Wi-Fi, while reintroducing the ABI and untested driver-sleep risks
|
||||
of the unbootable `ad3461b` image. The known-good pmaports module ABI stays.
|
||||
- **Additional ABI-breaking config options documented**: `CONFIG_ENERGY_MODEL`
|
||||
(`struct device`), `CONFIG_PERF_EVENTS` / `CONFIG_FUNCTION_GRAPH_TRACER`
|
||||
(`struct task_struct`), and `CONFIG_HZ` (the `HZ` macro compiled into module
|
||||
inlines). `CONFIG_RCU_LAZY` needs `rcu_nocbs=all`, which is counterproductive
|
||||
on 2 cores. `CONFIG_SCHED_HRTICK` and `CONFIG_CPU_IDLE_GOV_TEO` are safe but
|
||||
no-ops here.
|
||||
- **Where the remaining runtime has to come from**: modem LTE eDRX/PSM via
|
||||
`AT+CEDRXS` / `AT+CPSMS`, DSDS policy, Wi-Fi DTIM/listen interval, and DDR
|
||||
self-refresh (which needs PSCI `SYSTEM_SUSPEND` in lk2nd) — none of which a
|
||||
module tree rebuild unlocks.
|
||||
- **Live-session observations**: the phone needed one hard power-key reset at
|
||||
~22 min uptime (blank panel, USB RNDIS gone; `pstore` empty, no panic in the
|
||||
post-reset `dmesg`, no kernel/module/cmdline change made in this session), and
|
||||
the VM-BMS briefly reports 19.2 V / `Over voltage` after a hard reset because
|
||||
an uninitialised `0xffff` FIFO sample passes the driver's `> 8000` filter. A
|
||||
source-only sanity clamp is noted as worth fixing in
|
||||
`BATTERY-OPTIMIZATION-ANALYSIS.md` §14.7; it needs no module tree rebuild.
|
||||
|
||||
See `BATTERY-OPTIMIZATION-ANALYSIS.md` §14 for the full data and verdict.
|
||||
No kernel image, module, DTB or userspace artifact changed in this pass.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — configurable 5-minute screen blank, instant lock/wake
|
||||
|
||||
- **Configurable idle blanking**: added **Config -> Screen blank** (`Off`, 30 s,
|
||||
|
||||
Reference in new issue
Block a user