Fix mmc1 microSD detection and suspended unbind abort for a1125 (ampere)
- Drop MMC_CAP2_FULL_PWR_CYCLE from sdhci_msm_probe() while retaining removable-SD-only MMC_CAP_AGGRESSIVE_PM, preventing mmc_select_voltage() from selecting vdd 0x10 (MMC_VDD_28_29) that sdhci_set_power_noreg() rejects - Raise PM8909 l11 (vmmc-supply) regulator-min-microvolt from 1.80 V (<0x1b7740>) to 2.95 V (<0x2d0370>) across all 6 device DTS/DTB targets while preserving 1.80-2.95 V on l12 (vqmmc-supply) - Move pm_runtime_get_sync(&pdev->dev) ahead of SDHCI_INT_STATUS and sdhci_remove_host() in sdhci_msm_remove(), and resume 7864900.sdhci power/control to 'on' before driver unbind in sxmo_sdcard.sh - Add l11 min-voltage, pm_runtime_get_sync, and MMC_CAP2_FULL_PWR_CYCLE guards in scripts/check-rebuild.sh, update docs, rebuild vmlinuz/DTBs and all 4 --mkinitfs a1125 (ampere) images, and pin their SHA-256 checksums
This commit is contained in:
1 parent
5d427e39ab
commit
1a229b0587
27 files changed
+26722
-26694
No files matched your search
+8
-8
@@ -35,7 +35,7 @@ Upcoming release build (`a1125` / `ampere` via `scripts/version.sh`) targeting *
|
||||
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
||||
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
||||
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
||||
- **Disabled-by-default Bluetooth, removable microSD `MMC_CAP_AGGRESSIVE_PM`, MSS/BIMC clock unpinning, `100 MHz` idle OPP, IPv6 standby mute, and `pipewire`/`wireplumber` startup race fix (`0012`, `devices/*/*.dts`, `bootstrap-rootfs-container.sh`, `apply-bananarchy-overlay.sh`, `sxmo_bluetoothtoggle.sh`, `10-power-save.start`, `sxmo_hook_start.sh`, `10-power.conf`, `bananarchy-power-policy.sh`)**: removed `bluetooth` from OpenRC `default` runlevel (`rm -f /etc/runlevels/default/bluetooth`), tracked user opt-in via `/home/user/.config/sxmo/bt_enabled`, enforced `rfkill block bluetooth` + daemon stop at boot when unset, and switched `sxmo_hook_start.sh` to check `bt_enabled`; added `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` in `sdhci-msm.c` strictly for removable SD hosts (excluding `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`) so `L11`/`L12` power off during microSD idle; moved `"mem"` (`gcc_boot_rom_ahb_clk`) to `.proxy_clk_names` in `qcom_q6v5_mss.c`, re-parented `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, added `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src`/`system_noc_bfdcd_clk_src`, and cleared bootloader APSS `0x45000 BIT(2)` (`bimc_pll_early`) in `gcc_msm8909_probe()`; added `opp-99999975` (`100 MHz` = `gpll0 / 8`) across `qcom-msm8909.dtsi` and all 6 device DTS files to halve dark `powersave` L2/SCU clock draw; added `ipv6.method=ignore` in `10-power.conf`, `wlan0/disable_ipv6` standby toggling (preserving IPv6 ePDG VoWiFi), and post-`_park_rat` `--sig-hysteresis dark` in `bananarchy-power-policy.sh`; and guarded `superctl` `pipewire`/`wireplumber` startup in `sxmo_hook_start.sh`.
|
||||
- **Disabled-by-default Bluetooth, removable microSD `MMC_CAP_AGGRESSIVE_PM`, `l11` `2.95 V` min voltage & safe unbind, MSS/BIMC clock unpinning, `100 MHz` idle OPP, IPv6 standby mute, and `pipewire`/`wireplumber` startup race fix (`0012`, `devices/*/*.dts`, `bootstrap-rootfs-container.sh`, `apply-bananarchy-overlay.sh`, `sxmo_bluetoothtoggle.sh`, `10-power-save.start`, `sxmo_hook_start.sh`, `sxmo_sdcard.sh`, `10-power.conf`, `bananarchy-power-policy.sh`)**: removed `bluetooth` from OpenRC `default` runlevel (`rm -f /etc/runlevels/default/bluetooth`), tracked user opt-in via `/home/user/.config/sxmo/bt_enabled`, enforced `rfkill block bluetooth` + daemon stop at boot when unset, and switched `sxmo_hook_start.sh` to check `bt_enabled`; added `MMC_CAP_AGGRESSIVE_PM` (without `MMC_CAP2_FULL_PWR_CYCLE`, which otherwise drops OCR to `MMC_VDD_28_29` `0x10` rejected by `sdhci_set_power_noreg()`) strictly for removable SD hosts (excluding `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`), set PM8909 `l11` `regulator-min-microvolt = <0x2d0370>` (`2.95 V`) across all 6 DTS/DTBs so `L11`/`L12` power off cleanly during microSD idle without losing `MMC_VDD_29_30`, moved `pm_runtime_get_sync()` ahead of `SDHCI_INT_STATUS` / `sdhci_remove_host()` in `sdhci_msm_remove()`, and resumed `7864900.sdhci` before `unbind` in `sxmo_sdcard.sh`; moved `"mem"` (`gcc_boot_rom_ahb_clk`) to `.proxy_clk_names` in `qcom_q6v5_mss.c`, re-parented `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, added `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src`/`system_noc_bfdcd_clk_src`, and cleared bootloader APSS `0x45000 BIT(2)` (`bimc_pll_early`) in `gcc_msm8909_probe()`; added `opp-99999975` (`100 MHz` = `gpll0 / 8`) across `qcom-msm8909.dtsi` and all 6 device DTS files to halve dark `powersave` L2/SCU clock draw; added `ipv6.method=ignore` in `10-power.conf`, `wlan0/disable_ipv6` standby toggling (preserving IPv6 ePDG VoWiFi), and post-`_park_rat` `--sig-hysteresis dark` in `bananarchy-power-policy.sh`; and guarded `superctl` `pipewire`/`wireplumber` startup in `sxmo_hook_start.sh`.
|
||||
|
||||
### System-core keypad debouncer (`0014`) and Nokia 8000 (`nokia-sparkler`) LRA vibrator isolation during media playback
|
||||
|
||||
@@ -44,13 +44,13 @@ Upcoming release build (`a1125` / `ampere` via `scripts/version.sh`) targeting *
|
||||
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
|
||||
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
||||
- **Rebuilt local `a1125` (`ampere`) image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
||||
- `images/bananarchy-nokia-argon.img`: `a0a02a8502736fae9c25de54cb8043231b2fd3ac488e123676cc8c3a35577ea1`
|
||||
- `images/bananarchy-nokia-beatles.img`: `9703ab732bac535ad83862a89c71931a4c16704b685f1bca45c23d7ac066c341`
|
||||
- `images/boot-bananarchy-nokia-beatles.img`: `7eab3dcf44ba01f044e9b6dba3f786aebe80a3380884966e6ecd5dafc455c16a`
|
||||
- `images/bananarchy-nokia-coconut.img`: `5158dc6e545c975387ba29c44593afe2758a4cd926e0c43df90e8b79b72a6b37`
|
||||
- `images/boot-bananarchy-nokia-coconut.img`: `d79b51d86344441f170b1ddf205b721b54ce8c995a66bb611670065911768347`
|
||||
- `images/bananarchy-nokia-sparkler.img`: `90ff40226f344d280b7a9cca1d23fb587cc987255c375b57969b3fd415c786b4`
|
||||
- `images/boot-bananarchy-nokia-sparkler.img`: `4e1ddbfd5acc8335cb3e3e50b3fef46b9c6fe93afdaa9c2c0826500e63b60adf`
|
||||
- `images/bananarchy-nokia-argon.img`: `2ba4620680a981a87fa8adf7a2fb6ab98d932c73f9de9be1c69981edc096d2a8`
|
||||
- `images/bananarchy-nokia-beatles.img`: `23d1fdd6598bf0c5497b1e41a16888d966ad4ac3f4eee3aa04623b339c896c59`
|
||||
- `images/boot-bananarchy-nokia-beatles.img`: `0459151f37c746963dc734539a4284a0524b1b8ad777cd8690a87f928d2cec58`
|
||||
- `images/bananarchy-nokia-coconut.img`: `1f47b0f6b96c1637e1febaa6b5d150c2dd661ba9d200286315cb0400ca61a6a0`
|
||||
- `images/boot-bananarchy-nokia-coconut.img`: `81695b3242403ebbd8631957a0ca67128b9791199e8121f58ed5e8f32ea2cc77`
|
||||
- `images/bananarchy-nokia-sparkler.img`: `7e6b7bdc1ac96f748c46c6fde0f7debe2ae5562d0c2feb1f5ddfc274fd22717e`
|
||||
- `images/boot-bananarchy-nokia-sparkler.img`: `5fde23c229bcfcec276bfa064308a37736dc9f34bcb80c6f5b6c16400417adfa`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user