Implement 0011 boot ICC, OPP latency, USB PHY, Q6ASM/ALSA, and ZRAM fixes

- Add patches/kernel/0011-msm8909-boot-icc-opp-usb-audio-fixes.patch and update all six standalone device DTS files: mark XPU-restricted MSM8909 PCNOC interconnect nodes ap_owned with NOC_QOS_MODE_INVALID to clear -ENXIO errors, move clock-latency-ns onto each CPU opp child node so cpuinfo_transition_latency reports 100 us instead of CPUFREQ_ETERNAL (6.44 s schedutil rate limit), convert qcom-cpufreq-nvmem OPP deferrals to dev_err_probe, guard fixed 3.075 V pm8909_l13 in phy-qcom-usb-hs, handle async WRITE_V2/READ_V2 and synchronous EOS APR responses in q6asm, and disable unrouted dai-link-multimedia3 while setting q6voice_device=3 for shifted VoiceMMode1 (hw:0,3).
- Restore /bin, /usr/bin, and /usr/sbin BusyBox applet symlinks (excluding pkill) in apply-bananarchy-overlay.sh, size /dev/zram0 from /proc/meminfo in zramstart, guard "/" D-Bus object paths in NetworkManager 50-dns-filter.sh, sync schedutil rate_limit_us in bananarchy-display-power-sync, replace remaining pkill/pgrep -f uses in X11/hook/modem scripts, and clean temporary AT response files via trap in msm-modem-uim-selection.
- Verify live after reboot on nokia-argon, rebuild a1114 (carbonara) images/archives for nokia-argon and nokia-beatles with e2fsck/debugfs and check-rebuild.sh guards, and update pinned hashes in scripts/check-rebuild.sh and CHANGELOG.md.
This commit is contained in:
Luxferre committed 2026-11-13 21:27:41 +02:00
1 parent a23a9b4edb
commit 786480a08f
43 files changed
+48354 -47685

No files matched your search

+5 -2
View File
@@ -14,8 +14,11 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
Upcoming release build (`a1114` / `carbonara` via `scripts/version.sh`) targeting both **Nokia 8110 4G (`nokia-argon`)** and **Nokia 2720 Flip (`nokia-beatles`)** while keeping `a1111` (`lennon`) as the current published release.
### Hardware, kernel, and firmware deep-standby fixes (`0008`, `0009`, and `0010`)
### Hardware, kernel, and firmware deep-standby fixes (`0008`, `0009`, `0010`, and `0011`)
- **Boot interconnect, OPP latency, USB PHY, Q6ASM/ALSA voice index, ZRAM, and NM dispatcher fixes (`0011`)**:
- **MSM8909 ICC `-ENXIO`, CPU OPP `schedutil` latency, USB PHY `l13`, and Q6ASM/`VoiceMMode1` fixes (`0011`)**: marked XPU-protected MSM8909 PCNOC nodes (`mas_spdm`, `mas_dehr`, `slv_spdm`, `slv_dehr_cfg`, `slv_qdss_cfg`, `slv_imem_cfg`, `slv_bimc_cfg`) `.qos.ap_owned = true` with `NOC_QOS_MODE_INVALID` in `drivers/interconnect/qcom/msm8909.c` so `qcom_icc_set()` commits bus clocks instead of aborting on `-6`; moved `clock-latency-ns = <100000>` (`<0x186a0>` on `nokia-beatles`) from parent `cpu-opp-table` into all eight `opp-*` child nodes across `qcom-msm8909.dtsi` and all six standalone `devices/` DTS files so `cpuinfo_transition_latency` reports `100 us` instead of `CPUFREQ_ETERNAL` (`6.44 s` `schedutil` rate limit) and converted `qcom-cpufreq-nvmem.c`'s `Failed to set OPP config` log to `dev_err_probe()`; guarded fixed-voltage `pm8909_l13` (`3.075 V`) in `drivers/phy/qualcomm/phy-qcom-usb-hs.c` with `regulator_is_supported_voltage(uphy->v3p3, 3300000, 3300000) > 0`; handled asynchronous `ASM_DATA_CMD_WRITE_V2`/`READ_V2` (`0x10dab`/`0x10dac`) responses in `q6asm.c` without clobbering `ac->result` while routing `ASM_DATA_CMD_EOS` with `ASM_DATA_CMD_REMOVE_TRAILING_SILENCE`; and disabled unrouted `dai-link-multimedia3` in DTS while updating both `/usr/share/q6voiced/q6voiced.conf` and `/etc/conf.d/q6voiced` to `q6voice_device=3` (`hw:0,3`) to match the shifted `VoiceMMode1` PCM index.
- **BusyBox applet symlinks, ZRAM swap activation, NetworkManager dispatcher guard, and session cleanup**: added `scripts/busybox-usr-bin-applets.txt` (`53` applets, excluding `pkill`) and `scripts/busybox-usr-sbin-applets.txt` (`23` applets) plus `/bin` additions (`cttyhack`, `kbd_mode`, `vmstat`) in `scripts/busybox-applets.txt` and `scripts/apply-bananarchy-overlay.sh`, updated `/usr/bin/zramstart` to read `MemTotal` from `/proc/meminfo` (with `free -m` fallback) so `/dev/zram0` swap (`580 MB`) activates reliably on boot, guarded `PrimaryConnection`/`Ip{4,6}Config == "/"` in `/usr/lib/NetworkManager/dispatcher.d/50-dns-filter.sh`, synchronized `schedutil/rate_limit_us = 40000` across both non-flip and flip branches of `bananarchy-display-power-sync`, removed remaining `pkill`/`pgrep -f` uses across `bananarchy-x11-session.sh`, `sxmo_hook_start.sh`, and `sxmo_modemaudio.sh`, cleaned `/tmp/at_resp_*.txt` via `trap` in `msm-modem-uim-selection`, and verified zero occurrences across all six error signatures live after reboot on `nokia-argon`.
- **Pass 1 + Pass 2 RPM sleep (`vMPM` + L2 SAW2), BIMC PLL / WCD-digital / LDO cleanup, Adreno 304 active-display guard, and UART disable (`0010`)**:
- **Last-man APSS RPM (`vMPM`) and L2 SAW2 standby collapse (`0010`)**: enabled `CONFIG_QCOM_RPM_MASTER_STATS=y`, wired `qcom,mpm` (`sram@60000` sub-slices `0x150`/`0x1d0`/`0x1150`/`0x2150`, TLMM `wakeup-parent`, `qcom,msm8916-rpm-stats`, `rpm-master-stats`) and L2 SAW2 (`power-manager@b012000`, `qcom,msm8909-saw2-v3.0-scu` linked via `l2-cache` `qcom,saw`) across kernel and all six device DTS files; fixed SAW2 v3.0 `0x3B` / `PC_MODE` / `SLP_CMD_MODE` indexing and XPU-locked L2 readback guards; guarded `qcom_mpm_handler()` against `NULL` `irq_desc` mappings on pre-enabled MPM pins (`49`, `58`, `62`); gated `cpuidle-qcom-spm` last-man APSS RPM (`rpm_sleep=1`, `rpm_min_residency_us=3000`) and L2 collapse (`l2_sleep=1`, `QCOM_SCM_CPU_PWR_DOWN_L2_OFF`) on both `qcom_msm8909_gdsc_is_active()` (`oxili_gdsc`/`mdss_gdsc`/`venus_gdsc`/`vfe_gdsc`) and `cpuidle_qcom_spm/parameters/screen_off` (toggled by `bananarchy-display-power-sync` and `bananarchy-power-policy.sh`) so active displays/GPUs never suffer L2/shared-clock collapse; and switched the next-timer check to `ktime_sub(tick_nohz_get_next_hrtimer(), ktime_get())` (`tick_nohz` warning fixed) with `# CONFIG_SUSPEND is not set` and module `vermagic` unchanged.
- **Adreno 304 `gfx-mem` interconnect scaling, `qcom_iommu` non-genpd resume/TLB fix, GDSC recovery cycle, WCD-digital runtime PM, and PM8909 LDO seeding (`0010`)**: wired `bimc`/`pcnoc`/`snoc` nodes and Adreno 304 `gfx-mem` interconnect (`MAS_OXILI -> SLV_EBI`) in `qcom-msm8909.dtsi` and all six device DTS files, moved `a3xx_gpu_init()`'s static `icc_set_bw()` into `msm_gpu_pm_resume()` / `msm_gpu_pm_suspend()` (`Bps_to_icc(gpu->fast_rate) * 8` while active, `0` when runtime-suspended so BIMC still drops to `19.2 MHz` XO when idle without starving Adreno 304 during `powersave`/DPMS transitions), guarded blocking `qcom_iommu_map()` calls with runtime PM, saved/restored non-secure context bank registers + `ARM_SMMU_CB_S1_TLBIASID` in `qcom_iommu_resume()` for non-genpd `VDD_CX` SMMUs (`1f08000.iommu`), exposed `qcom_msm8909_gdsc_is_active()` in `gcc-msm8909.c`, added `dev_pm_genpd_synced_poweroff()` + `pm_runtime_put_sync()`/`pm_runtime_get_sync()` in `adreno_recover()` so `oxili_gdsc` resets cleanly on ringbuffer lockups, added `.idle_bias_on = 0` + `REGCACHE_FLAT` + `200 ms` runtime autosuspend (`RUNTIME_PM_OPS`) in `msm8916-wcd-digital.c`, and seeded `vreg->is_enabled = 1` for PM8909 `l14`, `l15`, and `l18` in `qcom_smd-regulator.c`.
@@ -34,7 +37,7 @@ Upcoming release build (`a1114` / `carbonara` via `scripts/version.sh`) targetin
- **2720 Flip event-driven idle daemons and dynamic TLMM `gpiochip` resolution (`nokia-beatles`)**: replaced `bananarchy-lid`'s continuous `20 ms` (`50 Hz`) `poll()` loop, `10 Hz` `/sys/kernel/debug/gpio` full SoC GPIO register dump, and `2 s` `/dev/input` `glob` + `/run/bananarchy/cover.sock` broadcast with `/dev/input` `inotify` watching plus hardware `EV_SW` IRQ sleep (`poll(..., -1)` at `0` steady-state wakeups/s after the `20 ms` edge debounce and one `+2 s` post-transition confirmation check), and synchronized CPU `scaling_governor`, `schedutil/rate_limit_us` (`40000`), and Adreno 304 `governor` directly in `on_transition()`. Replaced `bananarchy-volume-keys`'s `1 s` `poll()` + `2 s` `/dev/input` `glob` loop with `/dev/input` `inotify` + `poll(..., -1)`. Updated `bananarchy-cover-idle` (`gpiochip_device = auto` via `BA_GPIO_GET_CHIPINFO` / `hw_ensure_gpiochip()`) and `bananarchy-cover-diagnose.sh` to resolve MSM8909 TLMM (`1000000.pinctrl`, e.g. `/dev/gpiochip2`) dynamically across `/dev/gpiochip*` so PMIC/TLMM probe-order shifts from strict `fw_devlink` + `qcom,mpm` no longer leave external cover button wakes in `backend=none`.
- **Shared GPU `devfreq`, `schedutil`, statusbar, eMMC, and Bluetooth idle fixes (`nokia-argon` and `nokia-beatles`)**: granted `video`-group `0664` permissions to `/sys/class/devfreq/1c00000.gpu/governor` in `10-power-save.start`, synced `1c00000.gpu/governor` (`powersave` while dark or cover-lit, `simple_ondemand` when the main panel wakes) in `bananarchy-display-power-sync` and `locker.so`, and restored `schedutil/rate_limit_us = 40000` on `FORCE=1` transitions as well as normal udev events. `sxmo_hook_statusbar.sh` skips `sxmo_hook_icons.sh` on `time` ticks and updates `099-time` directly in-shell without spawning `sxmo_status.sh` and duplicate `mkdir -p` forks every minute; `sxmo_wm.sh display off` skips rewriting `~/.config/sxmo/brightness` on ext4 when unchanged; `sxmo_hook_screenoff.sh` skips spawning `sxmo_autosuspend.sh` when `/etc/bananarchy-no-deep-standby` is present; and `bananarchy-bt-obex` replaces its `1.0 s` D-Bus/RFCOMM poll and `1.5-2.0 s` `/dev/input` gamepad scan with a signal self-pipe, `ctypes` `inotify`, and blocking `select.select(..., None)` (`0` idle wakeups/s when Bluetooth is enabled, `<5 ms` gamepad hotplug).
- **Image persistence and upcoming release archives**: rebuilt both `images/bananarchy-nokia-argon.img` (SHA-256 `0d25b08a23c0f736877731ba634cec942fd8580215f6067dc3c2f63d07c58264`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `e7fe1e3dde98e1be28b1593a94925c2820e4bfe35016cb3e09759a7e017a3aba`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `5a7a391aff3fc8fc95b07b532eedce1ee17991574fb45ca4359c0504aeb82324` and unchanged display lk2nd `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d`) stamped as `a1114` / `carbonara` with `--mkinitfs`, pinned in `scripts/check-rebuild.sh`, and packaged into `bananarchy-nokia-argon-a1114-carbonara.zip` (`3d1896278b0e829fc358e0dcf22fd54164ef644c67a9177e52e330b17892470f`) and `bananarchy-nokia-beatles-a1114-carbonara.zip` (`e16cedb2fec8dbcc369b898cba7a8637c328d0d6a7ef287236c25ed2cb147ba0`).
- **Image persistence and upcoming release archives**: rebuilt both `images/bananarchy-nokia-argon.img` (SHA-256 `d913b7fe328b3d8c0be242e5d2666d6f03453c565ddc1120ef59698f4445e079`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `d290476ba796abc4eb36eeacb0f6312fe3e33623f7a38b2c607a609808fe4f5e`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `7920fae28fa3389602be16a02ad7311b50e61c9c205be48f160307d594f65eb6` and unchanged display lk2nd `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d`) stamped as `a1114` / `carbonara` with `--mkinitfs`, pinned in `scripts/check-rebuild.sh`, and packaged into `bananarchy-nokia-argon-a1114-carbonara.zip` (`8408ec4d99cb7685c7e7bd03051883885b72d710cc2d59a939634367516de812`) and `bananarchy-nokia-beatles-a1114-carbonara.zip` (`deec84db35b9bebd8215546c9393b306581f5c02dc1d756e21e0c9fe33aedbfe`).
---