Restore unconditional BAM-DMUX wwan0 open for ModemManager and add primary-SIM QMI VOICE USSD fallback
MMPluginQcomSoc requires net/wwan0 to export /org/freedesktop/ModemManager1/Modem/0, so gating --dpm-open-port on type=gsm NetworkManager profiles left ModemManager with 'No modems were found' on Wi-Fi-only setups while bam-dmux already runtime-suspends in 1000 ms (pc_state=0) when idle. - Always open the BAM-DMUX QMI DPM port in msm8909-modem-wwan-port before ModemManager starts and keep wwan0 registered across NetworkManager down events. - Add -d qrtr://0 fallback and late-open mmcli rescan handling in bananarchy-dpm.sh and msm-modem-uim-selection provision_slot(). - Resolve mm_modem via mmcli -L in msm-modem-uim-selection ussd and fall back to direct AF_QIPCRTR QMI VOICE USSD (sub=0) on the primary SIM alongside sub=1 on the secondary SIM. - Rebuild and pin nokia-argon and nokia-beatles a1114 (carbonara) images and update guards and docs.
This commit is contained in:
1 parent
c95a84c69c
commit
b2cf028808
8 files changed
+246
-120
No files matched your search
@@ -358,7 +358,7 @@ few places where the regression checks mandated by the analysis changed the impl
|
||||
| K8 | `earlycon` and `console=ttyMSM0,115200` removed from all `devices/*/kernel-cmdline.conf` and from `usr/lib/kernel-cmdline.d/50-device-*.conf` in the overlay. |
|
||||
| K9 | Unused built-in input classes and LED triggers disabled; netfilter/IPv6/cgroups deliberately retained (see K7); `msm8905-cam` retained in `/etc/modules` because its out-of-tree platform driver has no udev autoload path — removing it would break `xcamera`. |
|
||||
| K10 | `net.ipv6.conf.default.disable_ipv6=1` in `etc/sysctl.d/99-bananarchy-power.conf` and `10-power-save.start`; the `ipv6` module stays loaded for WireGuard/Tor and `::1` on `lo`. |
|
||||
| K11 | On-demand QMI DPM port (`bananarchy-dpm.sh` + NM dispatcher + conditional boot open); `wakeup-source` on pronto. QMI NAS DRX/MICO withdrawn (C17). |
|
||||
| K11 | `wakeup-source` on pronto; unconditional boot-time QMI DPM `--dpm-open-port` restored in `a1114` (section 20.3) because `MMPluginQcomSoc` requires `net/wwan0` to create `/org/freedesktop/ModemManager1/Modem/0` while `bam-dmux.c` already runtime-suspends in `1000 ms` (`pc_state=0`, DMA channels released) whenever idle. QMI NAS DRX/MICO withdrawn (C17); AT `$QCDRX=6` shipped in section 20. |
|
||||
| K12 | **Deferred with justification**: damage/partial-window updates in `panel-mipi-dbi` need panel-specific GC9305/GC9307 commands and risk display corruption. The equivalent userspace win (no full-frame redraw on every statusbar tick) is delivered by U3. |
|
||||
| K13 | `CONFIG_ZRAM_DEF_COMP_LZ4=y`, `zram-init` `algo*=lz4`, `/tmp` mounted as `tmpfs` via `etc/fstab`. |
|
||||
| K14 | `CONFIG_ENERGY_MODEL` enabled; `CONFIG_RCU_NOCB_CPU`/`CONFIG_RCU_LAZY` are dependency-gated (`RCU_EXPERT || NO_HZ_FULL`) and were dropped by `olddefconfig`, so they are not active. `rcu_nocbs=all` deliberately **not** added to the cmdline: on a 2-core MSM8905 it would add always-running `rcuo` kthreads, trading away the idle saving. |
|
||||
@@ -370,7 +370,7 @@ few places where the regression checks mandated by the analysis changed the impl
|
||||
| U6 | `etc/chrony/chrony.conf` uses `minpoll 12 maxpoll 16` with `iburst` restored; `bananarchy-time-sync.sh` refreshes the pool on network-up (section 16). |
|
||||
| U7 | Withdrawn (C1); the cosmetic `yesno` typo in `etc/init.d/wpa_supplicant` was fixed anyway. |
|
||||
| U8 | `[device] wifi.scan-interval=600` in `10-power.conf`; IPv6 disabled on new interfaces (K10). |
|
||||
| U9 | On-demand DPM port; `dsds-daemon` 600 s -> 1800 s poll and 2 s -> 30 s error backoff; `sxmo_modemmonitor.sh` 10/120 s -> 30/600 s. |
|
||||
| U9 | `dsds-daemon` 600 s -> 1800 s poll (and `poll_timeout = None` while dark in section 20) plus 2 s -> 30 s error backoff; `sxmo_modemmonitor.sh` 10/120 s -> 30/600 s. Conditional DPM port gating reverted in section 20.3 (`bam-dmux` already runtime-suspends in `1000 ms` when idle, whereas omitting `net/wwan0` broke `ModemManager` on Wi-Fi-only setups). |
|
||||
| U10 | Withdrawn (C3); the outer `pactl subscribe` restart backoff raised 2 s -> 10 s. |
|
||||
| U11 | `sip_plugin.cpp` 15 s -> 60 s poll; `tox_plugin.cpp` iteration clamp 250-1000 ms -> 1000-2000 ms. `locker_plugin.cpp` already blocks indefinitely when blanked; `gps_plugin.cpp`'s `usleep(300000)` is in the `--test` CLI path only. |
|
||||
| U12 | `tmpfs` on `/tmp`; zram `lz4`, `noatime`, `size1=256`. |
|
||||
@@ -463,9 +463,10 @@ worth doing to unlock them.
|
||||
(`SLOT1_REG_STATE=registered / lte / -67 dBm`,
|
||||
`SLOT2_REG_STATE=registered / gsm / -66 dBm`), so DSDS RF was active during
|
||||
the measurement. Caveat: `mmcli -L` reported `No modems were found` in this
|
||||
session even though QMI NAS showed both SIMs registered; the ModemManager
|
||||
modem object was absent. That is a separate functional issue and does not
|
||||
remove the modem RF drain.
|
||||
session even though QMI NAS showed both SIMs registered; as root-caused and
|
||||
fixed in section 20.3, `U9`'s conditional `--dpm-open-port` gating left
|
||||
`net/wwan0` unregistered on Wi-Fi-only setups, causing `MMPluginQcomSoc` to
|
||||
abort modem probing without affecting modem RF registration.
|
||||
- Idle windows ran with the panel forced dark (`brightness=0`, `bl_power=4`,
|
||||
DPMS `Off`) via `bananarchy-idle-blank.sh off`.
|
||||
- **Session incident**: at ~22 min uptime the phone stopped responding (blank
|
||||
@@ -1302,3 +1303,34 @@ display controller active continuously without `CONFIG_SUSPEND`:
|
||||
(`msleep(50)`) under `drm_dev_enter()` after `backlight_disable()`, halting
|
||||
the panel boost converter and 60 Hz GRAM scan while leaving the 2720 Flip
|
||||
`backend = kernel` cover path (`DPMS On` during closed cover wake) intact.
|
||||
|
||||
### 20.3 Post-test fix: unconditional BAM-DMUX `wwan0` registration for `ModemManager` and QMI VOICE USSD fallback
|
||||
|
||||
Live testing on a Nokia 2720 Flip (`nokia-beatles`) running on Wi-Fi without an
|
||||
existing `type=gsm` NetworkManager connection profile surfaced `error: couldn't
|
||||
find modem` when sending USSD queries on SIM 1:
|
||||
|
||||
- **Root cause**: `MMPluginQcomSoc` (`libmm-plugin-qcom-soc.so`) sets
|
||||
`base-modem-data-net-supported = TRUE` and
|
||||
`base-modem-data-tty-supported = FALSE`, so `ModemManager` refuses to export
|
||||
`/org/freedesktop/ModemManager1/Modem/0` (`"Failed to find a data port in the
|
||||
modem"`) unless `bam-dmux` has registered `net/wwan0`. `bam-dmux` only
|
||||
creates `net/wwan0` after MPSS sends `BAM_DMUX_CMD_OPEN` in response to
|
||||
`qmicli --dpm-open-port=hw-data-ep-type=bam-dmux,...`. Gating `--dpm-open-port`
|
||||
on `type=gsm` `.nmconnection` files (`U9` / `K11`) broke `ModemManager`
|
||||
discovery on Wi-Fi-only setups (the same `"No modems were found"` symptom
|
||||
noted in section 14.1). Meanwhile, inspecting `drivers/net/ethernet/qualcomm/bam-dmux.c`
|
||||
confirmed that `bam-dmux` already uses `BAM_DMUX_AUTOSUSPEND_DELAY = 1000` ms
|
||||
runtime PM autosuspend, dropping `bam_dmux_pc_vote(dmux, false)` (`pc_state=0`)
|
||||
and releasing TX/RX BAM DMA channels after 1 s of inactivity — so keeping the
|
||||
DPM port open at boot adds zero idle power draw.
|
||||
- **Fix**: `etc/init.d/msm8909-modem-wwan-port` (and `provision_slot()` /
|
||||
`bananarchy-dpm.sh open`) now opens the BAM-DMUX QMI DPM port unconditionally
|
||||
before `ModemManager` starts and waits for `/sys/class/net/wwan0` (triggering
|
||||
`mmcli -S` if `wwan0` is opened late while `ModemManager` has no modem), and
|
||||
`10-bananarchy-dpm.sh` no longer closes the DPM port on NetworkManager `down`
|
||||
events. In addition, `msm-modem-uim-selection ussd` resolves `mm_modem` via
|
||||
`mmcli -L` instead of `mmcli -m any` and falls back to direct QMI VOICE USSD
|
||||
over `AF_QIPCRTR` (`QMI_SERVICE_VOICE = 9`, `sub = 0`) for the primary SIM
|
||||
just like `sub = 1` on the secondary SIM, preserving interactive multi-step
|
||||
`/tmp/sxmo_ussd_session_state` sessions even if `ModemManager` is unavailable.
|
||||
Reference in new issue
Block a user