Implement 0009 deep-standby SoC rail, RPM handoff, USB PHY, Wi-Fi BET, and drm_mipi_dbi fixes
- Enable CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y and lower 200 MHz CPU OPP opp-peak-kBps to 0x25800 (19.2 MHz BIMC XO floor) across all six MSM8905/MSM8909 DTS files so rpmpd_sync_state and icc_sync_state complete despite driverless /cpus nodes. - Add patches/kernel/0009-msm8909-deep-standby-rpm-usb-wifi-ddr.patch: late_initcall_sync(rpm_smd_clk_late_cleanup) to drop active votes on unclaimed QDSS/QPIC clocks and clear RPM SLEEP_STATE boot handoff votes, ChipIdea ci_hdrc_msm/core unplugged USB HS PHY shutdown + 200 ms autosuspend, and wcn36xx BET + multicast filter + HOST_SUSPEND_IND/HOST_RESUME_REQ in screen_off_offload. - Build and export drivers/gpu/drm/drm_mipi_dbi.ko.zst alongside panel-mipi-dbi.ko.zst in build-kernel-audio.sh, rebuild-image.sh, apply-bananarchy-overlay.sh, and check-rebuild.sh. - Rebuild and verify a1114 (carbonara) images/archives for nokia-argon and nokia-beatles and update BATTERY-OPTIMIZATION-ANALYSIS.md, CHANGELOG.md, and pinned hashes in check-rebuild.sh.
This commit is contained in:
1 parent
b2cf028808
commit
96c66bf0c6
37 files changed
+47187
-46641
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Bananarchy battery-usage optimization analysis (measurement-corrected)
|
||||
|
||||
**Status:** analysis plus implemented changes (sections 15-20).
|
||||
**Status:** analysis plus implemented changes (sections 15-21).
|
||||
**Project:** `/home/lux/proj/bananarchy`, current release `a1111` / `lennon`.
|
||||
**Device:** Nokia 8110 4G (`nokia-argon`, MSM8905), connected over USB RNDIS at `172.16.42.1`,
|
||||
`Linux nokia-argon 6.12.1-msm8916 #6 SMP PREEMPT Sat May 30 08:38:37 UTC 2026 armv7l`,
|
||||
@@ -1334,3 +1334,85 @@ find modem` when sending USSD queries on SIM 1:
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
## 21. Deep-standby SoC rail, RPM handoff, USB HS PHY, WCN3620 BET/host-suspend, and MIPI DBI reset fixes (`0009`)
|
||||
|
||||
Live benchmarking after `0008` improved screen-off DSDS + Wi-Fi standby from
|
||||
`-20% / 4h` to `-40% / 8h` (`5.0%/h`), still well above stock KaiOS because five
|
||||
kernel/build gaps kept SoC rails, RPM sleep votes, USB PHY regulators, WCN3620
|
||||
beacon wakeups, and stale `drm_mipi_dbi.ko` active:
|
||||
|
||||
### 21.1 Five remaining standby root causes found after `0008`
|
||||
|
||||
1. **`fw_devlink` `sync_state` deadlock on driverless `/cpus/cpu@0..3` + 100 MHz
|
||||
BIMC floor (`~30-50 mA`)**: `CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT` was unset in
|
||||
`patches/kernel/config-bananarchy-msm8909.armv7`. Because `/cpus/cpu@0..3`
|
||||
carry `qcom,msm8909-bimc` interconnect suppliers and `cpufreq-dt` does not
|
||||
bind CPU platform devices via `fw_devlink`, `fw_devlink_probing_done()`
|
||||
never completed. Consequently, `rpmpd_sync_state()` never fired (leaving
|
||||
`VDD_CX` and `VDD_MX` pinned at `SUPER_TURBO` from boot), and `icc_sync_state()`
|
||||
(`qnoc_sync_state`) never cleared RPM's `INT_MAX` bus floor. In addition, the
|
||||
200 MHz idle CPU OPP (`opp-199999951`) requested `opp-peak-kBps = <0xc3500>`
|
||||
(`800,000` kBps = `100 MHz` BIMC) instead of `<0x25800>` (`153,600` kBps =
|
||||
`19.2 MHz` XO floor).
|
||||
2. **Unclaimed `clk-smd-rpm` active and sleep-set handoff votes (`~10-20 mA`)**:
|
||||
`rpm_smd_clk_probe()` (`drivers/clk/qcom/clk-smd-rpm.c`) wrote `INT_MAX`
|
||||
boot-handoff rates to both `QCOM_SMD_RPM_ACTIVE_STATE` and
|
||||
`QCOM_SMD_RPM_SLEEP_STATE`. Unclaimed clocks such as `qdss_clk` / `qdss_a_clk`
|
||||
and `qpic_clk` / `qpic_a_clk` kept `ACTIVE_STATE` votes alive indefinitely,
|
||||
and all unclaimed RPM clocks kept `SLEEP_STATE` handoff votes (`INT_MAX` or `1`)
|
||||
preventing RPM sleep-set collapse.
|
||||
3. **Unplugged ChipIdea USB HS PHY staying powered (`~5-10 mA`)**:
|
||||
`ci_hdrc_msm_probe()` lacked `pm_runtime_set_autosuspend_delay` /
|
||||
`pm_runtime_use_autosuspend` and never shut down the ULPI `phy-qcom-usb-hs`
|
||||
on runtime suspend when unplugged (`vbus_extcon` disconnected), leaving
|
||||
`pm8909_l13` (`3.075 V`), `pm8909_l7` (`1.8 V`), `xo`, and PHY clocks on.
|
||||
Meanwhile `ci_hdrc_probe()` did not enable runtime autosuspend on the child
|
||||
`ci_hdrc` device when `CI_HDRC_SUPPORTS_RUNTIME_PM` was set.
|
||||
4. **Incomplete `wcn36xx` screen-off offload (`~10-15 mA`)**: `0008` enabled
|
||||
ARP/NS/GTK offload and `ignore_dtim`, but left Beacon Early Termination
|
||||
disabled (`enable_bet = 0`, `bet_interval = 0`), left `dtim_period` unaligned
|
||||
with `listen_interval`, left broadcast/multicast firmware filtering disabled
|
||||
(`bcast_mcast_filter = 0`), and never sent `WCN36XX_HAL_HOST_SUSPEND_IND`
|
||||
when entering screen-off offload or `HOST_RESUME_REQ` on screen wake.
|
||||
5. **Unpatched `drm_mipi_dbi.ko` shipped from May 30 (`panel-mipi-dbi` sync
|
||||
gap)**: `scripts/build-kernel-audio.sh`, `rebuild-image.sh`, and
|
||||
`scripts/apply-bananarchy-overlay.sh` exported `panel-mipi-dbi.ko.zst` and
|
||||
`msm.ko.zst`, but never rebuilt or packaged `drivers/gpu/drm/drm_mipi_dbi.ko`
|
||||
(`CONFIG_DRM_MIPI_DBI=m`).
|
||||
|
||||
### 21.2 Five deep-standby fixes implemented (`0009`)
|
||||
|
||||
1. **Unblock `rpmpd_sync_state()` + `icc_sync_state()` and drop idle BIMC floor
|
||||
to `19.2 MHz`**: enabled `CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y` in
|
||||
`patches/kernel/config-bananarchy-msm8909.armv7`, added the `drivers/base/core.c`
|
||||
`fw_devlink_sync_state_timeout` relaxation after init (`10 s` timeout
|
||||
guarantee), and lowered `opp-199999951` `opp-peak-kBps` from `<0xc3500>` to
|
||||
`<0x25800>` (`153,600 kBps`) across all six MSM8905/MSM8909 DTS files.
|
||||
2. **Release unclaimed `clk-smd-rpm` active (`QDSS`/`QPIC`) and sleep-set handoff
|
||||
votes**: `0009` adds `late_initcall_sync(rpm_smd_clk_late_cleanup)` in
|
||||
`drivers/clk/qcom/clk-smd-rpm.c` to drop active votes on unclaimed `QDSS` and
|
||||
`QPIC` RPM clocks and clear `QCOM_SMD_RPM_SLEEP_STATE` handoff votes on all
|
||||
unclaimed RPM clocks (`PCNOC`, `SNOC`, `BIMC`, `IPA`, `QPIC`, `QDSS`,
|
||||
`BB_CLK1`, `RF_CLK1`, `DIFF_CLK1`, `DIV_CLK1`) without touching `ACTIVE_STATE`
|
||||
on modem-critical `BB_CLK1` or `RF_CLK1`.
|
||||
3. **Shut down `phy-qcom-usb-hs` and autosuspend `ci_hdrc` while unplugged**:
|
||||
`0009` updates `ci_hdrc_msm.c` and `core.c` to hold parent runtime PM across
|
||||
`ci_hdrc_add_device()`, configure a `200 ms` autosuspend delay on both parent
|
||||
and child `ci_hdrc` devices, call `usb_phy_shutdown()` on runtime suspend when
|
||||
`vbus_extcon` is disconnected (and re-initialize on resume/connect), and end
|
||||
probe with `pm_runtime_put_autosuspend()`.
|
||||
4. **Enable WCN3620 BET, `dtim_period` sync, multicast filter, and
|
||||
`HOST_SUSPEND_IND` / `HOST_RESUME_REQ` in `screen_off_offload`**:
|
||||
`wcn36xx/{wcn36xx.h,smd.c,main.c}` now program `enable_bet = 1`,
|
||||
`bet_interval = listen_interval`, `dtim_period = listen_interval`,
|
||||
`bcast_mcast_filter = 3`, and send `wcn36xx_smd_wlan_host_suspend_ind()` /
|
||||
`HOST_RESUME_REQ` on screen-off / screen-on transitions while keeping host
|
||||
`rx_irq`/`tx_irq` armed for immediate inbound SSH/IM wake.
|
||||
5. **Build and ship `drm_mipi_dbi.ko.zst` cleanly**: `scripts/build-kernel-audio.sh`,
|
||||
`rebuild-image.sh`, `scripts/apply-bananarchy-overlay.sh`, and
|
||||
`scripts/check-rebuild.sh` now build, compress, install into `overlay/rootfs`
|
||||
and target rootfs/initramfs, and verify `drm_mipi_dbi.ko.zst` alongside
|
||||
`panel-mipi-dbi.ko.zst`.
|
||||
+7
-6
@@ -14,20 +14,21 @@ 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`)
|
||||
### Hardware, kernel, and firmware deep-standby fixes (`0008` and `0009`)
|
||||
|
||||
- **MSM8909 RPM interconnect bus scaling (`CONFIG_INTERCONNECT_QCOM_MSM8909=y`)**: enabled `CONFIG_INTERCONNECT_QCOM=y`, `CONFIG_INTERCONNECT_QCOM_MSM8909=y`, and `CONFIG_INTERCONNECT_QCOM_SMD_RPM=y`, marked `msm8909_bimc`, `msm8909_pcnoc`, and `msm8909_snoc` `.keep_alive = true` (`19.2 MHz` active floor, `0` in `QCOM_SMD_RPM_SLEEP_STATE`), initialized `qp->bus_clk_rate[*]` to `U32_MAX` in `qnoc_probe()` so `icc_sync_state` clears `clk_smd_rpm_handoff()`'s `INT_MAX` sleep-set vote in RPM, and wired `interconnect@400000`, `interconnect@500000`, `interconnect@580000`, `cpus` `interconnects`, and `cpu-opp-table` `opp-peak-kBps` across all six MSM8905/MSM8909 DTS files while preserving `vermagic` across all 580 `.ko.zst` modules.
|
||||
- **Live WCN3620 screen-off firmware offloads and `conf.listen_interval` sync**: `wcn36xx` now assigns both `hw->max_listen_interval` and `hw->conf.listen_interval` from `listen_interval` (clamped `1..10`, default `5`) before `ieee80211_register_hw()`, and exposes `/sys/module/wcn36xx/parameters/screen_off_offload` (toggled by `bananarchy-display-power-sync`). When screen-off offload is active, `wcn36xx` enables firmware ARP offload (when a single IPv4 address is assigned, preserving DHCP), IPv6 NS offload, GTK rekey offload, `ignore_dtim = true`, and `dynamic_ps_timeout = 40 ms` without calling `wlan_host_suspend_ind` or disabling `rx_irq`/`tx_irq`, preserving immediate inbound unicast delivery.
|
||||
- **ChipIdea USB runtime PM while unplugged (`ci_hdrc_msm`)**: enabled `CI_HDRC_SUPPORTS_RUNTIME_PM`, wrapped `ci_hdrc_msm_por_reset()` in `pm_runtime_resume_and_get()`/`pm_runtime_put()`, gated `iface_clk` (`100 MHz`) and `core_clk` (`80 MHz`) via `RUNTIME_PM_OPS` whenever `vbus_extcon` is disconnected, and skipped `ULPI_SYNC_STATE` viewport polling in `ci_ulpi_resume()` when `CI_HDRC_OVERRIDE_PHY_CONTROL` is set so USB RNDIS (`172.16.42.1`) hotplug and plugged boots resume cleanly.
|
||||
- **MSM8909 RPM interconnect bus scaling (`CONFIG_INTERCONNECT_QCOM_MSM8909=y`)**: enabled `CONFIG_INTERCONNECT_QCOM=y`, `CONFIG_INTERCONNECT_QCOM_MSM8909=y`, and `CONFIG_INTERCONNECT_QCOM_SMD_RPM=y`, marked `msm8909_bimc`, `msm8909_pcnoc`, and `msm8909_snoc` `.keep_alive = true` (`19.2 MHz` active floor, `0` in `QCOM_SMD_RPM_SLEEP_STATE`), initialized `qp->bus_clk_rate[*]` to `U32_MAX` in `qnoc_probe()` so `icc_sync_state` clears `clk_smd_rpm_handoff()`'s `INT_MAX` sleep-set vote in RPM, wired `interconnect@400000`, `interconnect@500000`, `interconnect@580000`, `cpus` `interconnects`, and `cpu-opp-table` `opp-peak-kBps` across all six MSM8905/MSM8909 DTS files, and lowered the `199999951 Hz` idle CPU OPP `opp-peak-kBps` floor from `<0xc3500>` (`100 MHz` BIMC) to `<0x25800>` (`153,600 kBps` = `19.2 MHz` XO floor) (`0009`) while preserving `vermagic` across all 580 `.ko.zst` modules.
|
||||
- **Unblock `fw_devlink` `sync_state` (`CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y`) and release unclaimed `clk-smd-rpm` votes (`0009`)**: enabled `CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y` with `fw_devlink` post-init relaxation in `drivers/base/core.c` so driverless `/cpus/cpu@0..3` no longer deadlock `rpmpd_sync_state()` (`VDD_CX`/`VDD_MX` stuck at `SUPER_TURBO`) or `icc_sync_state()`, and added `late_initcall_sync(rpm_smd_clk_late_cleanup)` in `drivers/clk/qcom/clk-smd-rpm.c` to drop active votes on unclaimed `QDSS`/`QPIC` clocks and clear RPM `SLEEP_STATE` boot-handoff votes on all unclaimed clocks without altering `BB_CLK1`/`RF_CLK1` active votes.
|
||||
- **Live WCN3620 screen-off firmware offloads, BET, and `HOST_SUSPEND_IND` (`0008` + `0009`)**: `wcn36xx` now assigns both `hw->max_listen_interval` and `hw->conf.listen_interval` from `listen_interval` (clamped `1..10`, default `5`) before `ieee80211_register_hw()`, and exposes `/sys/module/wcn36xx/parameters/screen_off_offload` (toggled by `bananarchy-display-power-sync`). When screen-off offload is active, `wcn36xx` enables firmware ARP offload (when a single IPv4 address is assigned, preserving DHCP), IPv6 NS offload, GTK rekey offload, `ignore_dtim = true`, `dynamic_ps_timeout = 40 ms`, Beacon Early Termination (`enable_bet = 1`, `bet_interval = listen_interval`), aligned `dtim_period = listen_interval`, `bcast_mcast_filter = 3`, and `WCN36XX_HAL_HOST_SUSPEND_IND` / `HOST_RESUME_REQ` while keeping `rx_irq`/`tx_irq` armed for immediate inbound unicast delivery.
|
||||
- **ChipIdea USB runtime PM and unplugged HS PHY shutdown (`ci_hdrc_msm`)**: enabled `CI_HDRC_SUPPORTS_RUNTIME_PM`, wrapped `ci_hdrc_msm_por_reset()` in `pm_runtime_resume_and_get()`/`pm_runtime_put()`, gated `iface_clk` (`100 MHz`) and `core_clk` (`80 MHz`) via `RUNTIME_PM_OPS` whenever `vbus_extcon` is disconnected, skipped `ULPI_SYNC_STATE` viewport polling in `ci_ulpi_resume()` when `CI_HDRC_OVERRIDE_PHY_CONTROL` is set, and in `0009` added `200 ms` runtime autosuspend on both `ci_hdrc_msm` and `ci_hdrc`, held parent runtime PM across `ci_hdrc_add_device()`, and called `usb_phy_shutdown()`/`usb_phy_init()` across unplugged suspend/resume so `pm8909_l13` (`3.075 V`), `pm8909_l7` (`1.8 V`), and `xo` drop cleanly while preserving USB RNDIS (`172.16.42.1`) hotplug.
|
||||
- **Default dual-port DSDS `MODEM_DRX_MODE=6` and dark-screen `dsds-daemon` sleep**: `bananarchy-power-policy.conf` now defaults to `MODEM_DRX_MODE=6` while keeping `DSDS_SECONDARY_MODE=active` so both SIMs remain reachable; `msm-modem-uim-selection` adds `at all` multi-port queries and `screen_is_idle()` in `dsds-daemon` (`poll_timeout = None` whenever locked, cover-lit, or backlight off); and `bananarchy-power-policy.sh` serializes AT access via `flock`, waits past `ModemManager`'s startup AT port probe, and re-applies `AT$QCDRX=6` across every `/dev/wwan0at*` port on `modem-ready` (`sxmo_hook_modem.sh` `registered`/`connected` and post-PIN/switch registration) with per-port inode caching in `/run/bananarchy-power-policy/drx.<port>`.
|
||||
- **MIPI DCS `DISPOFF` + `SLPIN` on `panel-mipi-dbi` DPMS off**: rebuilt `panel-mipi-dbi.ko.zst` with `panel_mipi_dbi_disable()` issuing `0x28` (`msleep(20)`) + `0x10` (`msleep(50)`) under `drm_dev_enter()` after `backlight_disable()` and before `mipi_dbi_pipe_disable()`, stopping the GC9305/ST7789V boost converter and 60 Hz GRAM scan during DPMS off while preserving the 2720 Flip closed-only `backend = kernel` cover path.
|
||||
- **MIPI DCS `DISPOFF` + `SLPIN` on `panel-mipi-dbi` DPMS off and `drm_mipi_dbi.ko.zst` rebuild (`0008` + `0009`)**: rebuilt both `panel-mipi-dbi.ko.zst` (`panel_mipi_dbi_disable()` issuing `0x28` (`msleep(20)`) + `0x10` (`msleep(50)`) under `drm_dev_enter()` after `backlight_disable()` and before `mipi_dbi_pipe_disable()`) and `drm_mipi_dbi.ko.zst` (previously unbuilt in `scripts/build-kernel-audio.sh` and omitted from `rebuild-image.sh` / `apply-bananarchy-overlay.sh`), halting the GC9305/ST7789V boost converter and 60 Hz GRAM scan during DPMS off while preserving the 2720 Flip closed-only `backend = kernel` cover path.
|
||||
- **Unconditional `net/wwan0` BAM-DMUX registration for `ModemManager` and primary-SIM QMI VOICE USSD fallback**: fixed `error: couldn't find modem` when running USSD or `mmcli` operations on Wi-Fi-only setups without a saved `type=gsm` NetworkManager profile. Because `MMPluginQcomSoc` sets `base-modem-data-net-supported = TRUE` and `base-modem-data-tty-supported = FALSE`, `ModemManager` drops `/org/freedesktop/ModemManager1/Modem/0` whenever `net/wwan0` is absent, while `bam-dmux.c` already runtime-suspends after `1000 ms` of inactivity (`pc_state=0`, DMA channels released) at zero standby cost. `etc/init.d/msm8909-modem-wwan-port` and `msm-modem-uim-selection` (`provision_slot()` / `bananarchy-dpm.sh open`) now open `--dpm-open-port=hw-data-ep-type=bam-dmux,...` unconditionally and wait for `/sys/class/net/wwan0` (running `mmcli -S` if opened after `ModemManager` startup), `10-bananarchy-dpm.sh` no longer closes the DPM port on interface `down`, and `msm-modem-uim-selection ussd` resolves `mm_modem` via `mmcli -L` and falls back to direct `AF_QIPCRTR` QMI VOICE USSD (`QMI_SERVICE_VOICE = 9`, `sub = 0`) on the primary SIM alongside `sub = 1` on the secondary SIM.
|
||||
|
||||
### Dual-target idle wakeup elimination and GPU/scheduler power sync
|
||||
|
||||
- **2720 Flip event-driven idle daemons (`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)`.
|
||||
- **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 `76da5b9d9ed555ebebe76ba79222ef4211c1a4c50437755f0abdbcc0c99449d4`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `81d62838c2a105dfaf339a6e71016e215e8e68e8857eb46d3a24fe2fd691cce7`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `4e16742bc1c2461cd6a63f15009a2c0a8550dae7adf7f1ab83209d3df21726ae` 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` and `bananarchy-nokia-beatles-a1114-carbonara.zip`.
|
||||
- **Image persistence and upcoming release archives**: rebuilt both `images/bananarchy-nokia-argon.img` (SHA-256 `f4c8921a674944b2687b2d7bcb52e6f3cb81ad5997fddac969949305c0479c60`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `fd29593b30008b65b7b30b867824ce3f3f4e1f70cda4f012dde1a2c14dd316ba`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `d6cb9d5f13bc00815c4fcde5cf32b92ce9d7873683d3cec8b1346a53801ea08a` 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` (`a42ae7a6484a35b92580d8b9a6cbc58ba605e99d29cc5a353b423a69aa51febb`) and `bananarchy-nokia-beatles-a1114-carbonara.zip` (`463332fa4aeb78349a608d9a15f27c62dbe736129bdd2291b58f3ff1038a0a9f`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Binary file not shown.
@@ -142,7 +142,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
Binary file not shown.
@@ -143,7 +143,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
Binary file not shown.
@@ -142,7 +142,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
Binary file not shown.
@@ -142,7 +142,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
Binary file not shown.
@@ -142,7 +142,7 @@
|
||||
|
||||
opp-199999951 {
|
||||
opp-hz = <0x00 0xbebc1cf>;
|
||||
opp-peak-kBps = <0xc3500>;
|
||||
opp-peak-kBps = <0x25800>;
|
||||
required-opps = <0x10>;
|
||||
opp-supported-hw = <0xff>;
|
||||
};
|
||||
|
||||
+23310
-23306
File diff suppressed because it is too large.
Load diff
@@ -1483,7 +1483,7 @@ CONFIG_REGMAP_IRQ=y
|
||||
CONFIG_DMA_SHARED_BUFFER=y
|
||||
# CONFIG_DMA_FENCE_TRACE is not set
|
||||
CONFIG_GENERIC_ARCH_TOPOLOGY=y
|
||||
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
|
||||
CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y
|
||||
# end of Generic Driver Options
|
||||
|
||||
#
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,421 @@
|
||||
--- a/drivers/base/core.c
|
||||
+++ b/drivers/base/core.c
|
||||
@@ -1682,11 +1682,8 @@
|
||||
#define FW_DEVLINK_SYNC_STATE_STRICT 0
|
||||
#define FW_DEVLINK_SYNC_STATE_TIMEOUT 1
|
||||
|
||||
-#ifndef CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT
|
||||
-static int fw_devlink_sync_state;
|
||||
-#else
|
||||
+/* Allow sync_state() completion even when DT CPU nodes lack a struct device_driver. */
|
||||
static int fw_devlink_sync_state = FW_DEVLINK_SYNC_STATE_TIMEOUT;
|
||||
-#endif
|
||||
|
||||
static int __init fw_devlink_sync_state_setup(char *arg)
|
||||
{
|
||||
--- a/drivers/clk/qcom/clk-smd-rpm.c
|
||||
+++ b/drivers/clk/qcom/clk-smd-rpm.c
|
||||
@@ -185,6 +185,7 @@
|
||||
};
|
||||
|
||||
static DEFINE_MUTEX(rpm_smd_clk_lock);
|
||||
+static const struct rpm_smd_clk_desc *rpmcc_smd_desc;
|
||||
|
||||
static int clk_smd_rpm_handoff(const struct clk_smd_rpm *r)
|
||||
{
|
||||
@@ -1332,11 +1333,58 @@
|
||||
goto err;
|
||||
}
|
||||
|
||||
+ rpmcc_smd_desc = desc;
|
||||
+
|
||||
return 0;
|
||||
err:
|
||||
dev_err(&pdev->dev, "Error registering SMD clock driver (%d)\n", ret);
|
||||
return ret;
|
||||
}
|
||||
+
|
||||
+static int __init rpm_smd_clk_late_cleanup(void)
|
||||
+{
|
||||
+ size_t i;
|
||||
+
|
||||
+ if (!rpmcc_smd_desc || !rpmcc_smd_rpm)
|
||||
+ return 0;
|
||||
+
|
||||
+ mutex_lock(&rpm_smd_clk_lock);
|
||||
+ for (i = 0; i < rpmcc_smd_desc->num_clks; i++) {
|
||||
+ struct clk_smd_rpm *r = rpmcc_smd_desc->clks[i];
|
||||
+ struct clk_smd_rpm_req req;
|
||||
+ bool drop_active = false;
|
||||
+
|
||||
+ if (!r || r->active_only)
|
||||
+ continue;
|
||||
+ if (r->enabled || (r->peer && r->peer->enabled))
|
||||
+ continue;
|
||||
+ if (clk_hw_get_flags(&r->hw) & CLK_IS_CRITICAL)
|
||||
+ continue;
|
||||
+
|
||||
+ req.key = cpu_to_le32(r->rpm_key);
|
||||
+ req.nbytes = cpu_to_le32(sizeof(u32));
|
||||
+ req.value = 0;
|
||||
+
|
||||
+ qcom_rpm_smd_write(rpmcc_smd_rpm, QCOM_SMD_RPM_SLEEP_STATE,
|
||||
+ r->rpm_res_type, r->rpm_clk_id,
|
||||
+ &req, sizeof(req));
|
||||
+
|
||||
+ if (r->rpm_res_type == QCOM_SMD_RPM_QPIC_CLK ||
|
||||
+ (r->rpm_res_type == QCOM_SMD_RPM_MISC_CLK &&
|
||||
+ r->rpm_clk_id == 1))
|
||||
+ drop_active = true;
|
||||
+
|
||||
+ if (drop_active)
|
||||
+ qcom_rpm_smd_write(rpmcc_smd_rpm,
|
||||
+ QCOM_SMD_RPM_ACTIVE_STATE,
|
||||
+ r->rpm_res_type, r->rpm_clk_id,
|
||||
+ &req, sizeof(req));
|
||||
+ }
|
||||
+ mutex_unlock(&rpm_smd_clk_lock);
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
+late_initcall_sync(rpm_smd_clk_late_cleanup);
|
||||
|
||||
static struct platform_driver rpm_smd_clk_driver = {
|
||||
.driver = {
|
||||
--- a/drivers/usb/chipidea/ci_hdrc_msm.c
|
||||
+++ b/drivers/usb/chipidea/ci_hdrc_msm.c
|
||||
@@ -36,15 +36,54 @@
|
||||
struct ci_hdrc_msm {
|
||||
struct device *dev;
|
||||
struct platform_device *ci;
|
||||
+ struct phy *phy;
|
||||
struct clk *core_clk;
|
||||
struct clk *iface_clk;
|
||||
struct clk *fs_clk;
|
||||
struct ci_hdrc_platform_data pdata;
|
||||
struct reset_controller_dev rcdev;
|
||||
+ bool phy_enabled;
|
||||
bool secondary_phy;
|
||||
bool hsic;
|
||||
void __iomem *base;
|
||||
};
|
||||
+
|
||||
+static int ci_hdrc_msm_phy_enable(struct ci_hdrc_msm *msm_ci,
|
||||
+ struct ci_hdrc *ci)
|
||||
+{
|
||||
+ struct phy *phy = ci && ci->phy ? ci->phy : msm_ci->phy;
|
||||
+ int ret;
|
||||
+
|
||||
+ if (!phy)
|
||||
+ return 0;
|
||||
+
|
||||
+ msm_ci->phy = phy;
|
||||
+ if (msm_ci->phy_enabled)
|
||||
+ return 0;
|
||||
+
|
||||
+ ret = phy_init(phy);
|
||||
+ if (ret)
|
||||
+ return ret;
|
||||
+
|
||||
+ ret = phy_power_on(phy);
|
||||
+ if (ret) {
|
||||
+ phy_exit(phy);
|
||||
+ return ret;
|
||||
+ }
|
||||
+
|
||||
+ msm_ci->phy_enabled = true;
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static void ci_hdrc_msm_phy_disable(struct ci_hdrc_msm *msm_ci)
|
||||
+{
|
||||
+ if (!msm_ci->phy_enabled || !msm_ci->phy)
|
||||
+ return;
|
||||
+
|
||||
+ phy_power_off(msm_ci->phy);
|
||||
+ phy_exit(msm_ci->phy);
|
||||
+ msm_ci->phy_enabled = false;
|
||||
+}
|
||||
|
||||
static int
|
||||
ci_hdrc_msm_por_reset(struct reset_controller_dev *r, unsigned long id)
|
||||
@@ -82,10 +121,17 @@
|
||||
|
||||
static void ci_hdrc_msm_enter_lpm(struct ci_hdrc *ci, bool enable)
|
||||
{
|
||||
- /*
|
||||
- * PHY power and clocks are managed via CI_HDRC_CONTROLLER_STOPPED_EVENT
|
||||
- * and parent runtime PM; avoid touching ULPI PORTSC while PHY is off.
|
||||
- */
|
||||
+ struct ci_hdrc_msm *msm_ci = dev_get_drvdata(ci->dev->parent);
|
||||
+
|
||||
+ if (!msm_ci)
|
||||
+ return;
|
||||
+
|
||||
+ if (enable) {
|
||||
+ ci_hdrc_msm_phy_disable(msm_ci);
|
||||
+ } else if (!ci_hdrc_msm_phy_enable(msm_ci, ci) && ci->phy) {
|
||||
+ phy_set_mode(ci->phy, ci->role == CI_ROLE_HOST ?
|
||||
+ PHY_MODE_USB_HOST : PHY_MODE_USB_DEVICE);
|
||||
+ }
|
||||
}
|
||||
|
||||
static const struct reset_control_ops ci_hdrc_msm_reset_ops = {
|
||||
@@ -109,15 +155,9 @@
|
||||
writel_relaxed(val, msm_ci->base + HS_PHY_SEC_CTRL);
|
||||
}
|
||||
|
||||
- ret = phy_init(ci->phy);
|
||||
+ ret = ci_hdrc_msm_phy_enable(msm_ci, ci);
|
||||
if (ret)
|
||||
return ret;
|
||||
-
|
||||
- ret = phy_power_on(ci->phy);
|
||||
- if (ret) {
|
||||
- phy_exit(ci->phy);
|
||||
- return ret;
|
||||
- }
|
||||
|
||||
/* use AHB transactor, allow posted data writes */
|
||||
hw_write_id_reg(ci, HS_PHY_AHB_MODE, 0xffffffff, 0x8);
|
||||
@@ -141,8 +181,6 @@
|
||||
break;
|
||||
case CI_HDRC_CONTROLLER_STOPPED_EVENT:
|
||||
dev_dbg(dev, "CI_HDRC_CONTROLLER_STOPPED_EVENT received\n");
|
||||
- phy_power_off(ci->phy);
|
||||
- phy_exit(ci->phy);
|
||||
break;
|
||||
default:
|
||||
dev_dbg(dev, "unknown ci_hdrc event\n");
|
||||
@@ -269,19 +307,24 @@
|
||||
}
|
||||
of_node_put(ulpi_node);
|
||||
|
||||
+ pm_runtime_set_active(&pdev->dev);
|
||||
+ pm_runtime_get_noresume(&pdev->dev);
|
||||
+ pm_runtime_enable(&pdev->dev);
|
||||
+
|
||||
plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource,
|
||||
pdev->num_resources, &ci->pdata);
|
||||
if (IS_ERR(plat_ci)) {
|
||||
ret = PTR_ERR(plat_ci);
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n");
|
||||
+ pm_runtime_put_noidle(&pdev->dev);
|
||||
+ pm_runtime_disable(&pdev->dev);
|
||||
+ pm_runtime_set_suspended(&pdev->dev);
|
||||
goto err_mux;
|
||||
}
|
||||
|
||||
ci->ci = plat_ci;
|
||||
-
|
||||
- pm_runtime_set_active(&pdev->dev);
|
||||
- pm_runtime_enable(&pdev->dev);
|
||||
+ pm_runtime_put(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -298,6 +341,7 @@
|
||||
|
||||
ci_hdrc_remove_device(ci->ci);
|
||||
pm_runtime_get_sync(&pdev->dev);
|
||||
+ ci_hdrc_msm_phy_disable(ci);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
pm_runtime_put_noidle(&pdev->dev);
|
||||
clk_disable_unprepare(ci->iface_clk);
|
||||
--- a/drivers/usb/chipidea/core.c
|
||||
+++ b/drivers/usb/chipidea/core.c
|
||||
@@ -1230,6 +1230,7 @@
|
||||
pm_runtime_set_autosuspend_delay(&pdev->dev, 2000);
|
||||
pm_runtime_mark_last_busy(ci->dev);
|
||||
pm_runtime_use_autosuspend(&pdev->dev);
|
||||
+ pm_request_autosuspend(&pdev->dev);
|
||||
}
|
||||
|
||||
if (ci_otg_is_fsm_mode(ci))
|
||||
--- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h
|
||||
+++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h
|
||||
@@ -217,6 +217,8 @@
|
||||
struct list_head dev_node;
|
||||
bool started;
|
||||
bool power_params_offload;
|
||||
+ bool host_suspend_ind_sent;
|
||||
+ u32 standby_bcast_mcast_filter;
|
||||
|
||||
const char *nv_file;
|
||||
const struct firmware *nv;
|
||||
--- a/drivers/net/wireless/ath/wcn36xx/smd.c
|
||||
+++ b/drivers/net/wireless/ath/wcn36xx/smd.c
|
||||
@@ -2340,7 +2340,11 @@
|
||||
*/
|
||||
if (ignore_dtim) {
|
||||
msg_body.ignore_dtim = 1;
|
||||
- msg_body.dtim_period = 2;
|
||||
+ msg_body.dtim_period = max_t(u32, 2,
|
||||
+ WCN36XX_LISTEN_INTERVAL(wcn));
|
||||
+ msg_body.bcast_mcast_filter = wcn->standby_bcast_mcast_filter;
|
||||
+ msg_body.enable_bet = 1;
|
||||
+ msg_body.bet_interval = WCN36XX_LISTEN_INTERVAL(wcn);
|
||||
}
|
||||
msg_body.listen_interval = WCN36XX_LISTEN_INTERVAL(wcn);
|
||||
|
||||
@@ -3166,7 +3170,8 @@
|
||||
mutex_lock(&wcn->hal_mutex);
|
||||
|
||||
INIT_HAL_MSG(msg_body, WCN36XX_HAL_HOST_SUSPEND_IND);
|
||||
- msg_body.configured_mcst_bcst_filter_setting = 0;
|
||||
+ msg_body.configured_mcst_bcst_filter_setting =
|
||||
+ wcn->standby_bcast_mcast_filter;
|
||||
msg_body.active_session_count = 1;
|
||||
PREPARE_HAL_BUF(wcn->hal_buf, msg_body);
|
||||
|
||||
--- a/drivers/net/wireless/ath/wcn36xx/main.c
|
||||
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
|
||||
@@ -44,6 +44,7 @@
|
||||
static bool screen_off_offload;
|
||||
|
||||
static void wcn36xx_sync_screen_off_offload(struct wcn36xx *wcn, bool enable);
|
||||
+static void wcn36xx_exit_host_standby(struct wcn36xx *wcn, bool send_rpc);
|
||||
|
||||
static int wcn36xx_screen_off_offload_set(const char *val,
|
||||
const struct kernel_param *kp)
|
||||
@@ -308,6 +309,8 @@
|
||||
INIT_LIST_HEAD(&wcn->vif_list);
|
||||
wcn->started = true;
|
||||
wcn->power_params_offload = false;
|
||||
+ wcn->host_suspend_ind_sent = false;
|
||||
+ wcn->standby_bcast_mcast_filter = 0;
|
||||
mutex_unlock(&wcn->conf_mutex);
|
||||
spin_lock_init(&wcn->dxe_lock);
|
||||
spin_lock_init(&wcn->survey_lock);
|
||||
@@ -346,6 +349,8 @@
|
||||
mutex_lock(&wcn->conf_mutex);
|
||||
wcn->started = false;
|
||||
wcn->power_params_offload = false;
|
||||
+ wcn->host_suspend_ind_sent = false;
|
||||
+ wcn->standby_bcast_mcast_filter = 0;
|
||||
mutex_unlock(&wcn->conf_mutex);
|
||||
|
||||
wcn36xx_debugfs_exit(wcn);
|
||||
@@ -463,8 +468,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (changed & IEEE80211_CONF_CHANGE_PS)
|
||||
- wcn36xx_change_ps(wcn, hw->conf.flags & IEEE80211_CONF_PS);
|
||||
+ if (changed & IEEE80211_CONF_CHANGE_PS) {
|
||||
+ bool ps = hw->conf.flags & IEEE80211_CONF_PS;
|
||||
+
|
||||
+ wcn36xx_change_ps(wcn, ps);
|
||||
+ if (ps && READ_ONCE(screen_off_offload))
|
||||
+ wcn36xx_sync_screen_off_offload(wcn, true);
|
||||
+ }
|
||||
|
||||
if (changed & IEEE80211_CONF_CHANGE_IDLE) {
|
||||
if (hw->conf.flags & IEEE80211_CONF_IDLE)
|
||||
@@ -710,6 +720,10 @@
|
||||
|
||||
mutex_unlock(&wcn->scan_lock);
|
||||
|
||||
+ mutex_lock(&wcn->conf_mutex);
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ mutex_unlock(&wcn->conf_mutex);
|
||||
+
|
||||
wcn36xx_smd_update_channel_list(wcn, &hw_req->req);
|
||||
return wcn36xx_smd_start_hw_scan(wcn, vif, &hw_req->req);
|
||||
}
|
||||
@@ -738,6 +752,10 @@
|
||||
struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
|
||||
|
||||
wcn36xx_dbg(WCN36XX_DBG_MAC, "sw_scan_start");
|
||||
+
|
||||
+ mutex_lock(&wcn->conf_mutex);
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ mutex_unlock(&wcn->conf_mutex);
|
||||
|
||||
wcn->sw_scan = true;
|
||||
wcn->sw_scan_vif = vif;
|
||||
@@ -892,6 +910,8 @@
|
||||
vif_priv->ns_offload_active = false;
|
||||
vif_priv->gtk_offload_active = false;
|
||||
vif_priv->rekey_data.valid = false;
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ wcn->standby_bcast_mcast_filter = 0;
|
||||
wcn->power_params_offload = false;
|
||||
wcn36xx_smd_delete_bss(wcn, vif);
|
||||
wcn36xx_smd_set_link_st(wcn, bss_conf->bssid, vif->addr,
|
||||
@@ -970,6 +990,8 @@
|
||||
vif_priv->ns_offload_active = false;
|
||||
vif_priv->gtk_offload_active = false;
|
||||
vif_priv->rekey_data.valid = false;
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ wcn->standby_bcast_mcast_filter = 0;
|
||||
wcn->power_params_offload = false;
|
||||
wcn36xx_smd_set_link_st(wcn,
|
||||
bss_conf->bssid,
|
||||
@@ -1161,6 +1183,17 @@
|
||||
return vif;
|
||||
}
|
||||
|
||||
+static void wcn36xx_exit_host_standby(struct wcn36xx *wcn, bool send_rpc)
|
||||
+{
|
||||
+ if (!wcn->host_suspend_ind_sent)
|
||||
+ return;
|
||||
+
|
||||
+ if (send_rpc && wcn->started)
|
||||
+ wcn36xx_smd_host_resume(wcn);
|
||||
+
|
||||
+ wcn->host_suspend_ind_sent = false;
|
||||
+}
|
||||
+
|
||||
static void wcn36xx_sync_screen_off_offload(struct wcn36xx *wcn, bool enable)
|
||||
{
|
||||
struct ieee80211_vif *vif;
|
||||
@@ -1170,9 +1203,13 @@
|
||||
if (!wcn->started)
|
||||
return;
|
||||
|
||||
- if (!enable && wcn->power_params_offload) {
|
||||
- wcn36xx_smd_set_power_params(wcn, false);
|
||||
- wcn->power_params_offload = false;
|
||||
+ if (!enable) {
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ wcn->standby_bcast_mcast_filter = 0;
|
||||
+ if (wcn->power_params_offload) {
|
||||
+ wcn36xx_smd_set_power_params(wcn, false);
|
||||
+ wcn->power_params_offload = false;
|
||||
+ }
|
||||
}
|
||||
|
||||
vif = wcn36xx_get_first_assoc_vif(wcn);
|
||||
@@ -1184,6 +1221,8 @@
|
||||
return;
|
||||
|
||||
if (enable) {
|
||||
+ u32 want_filter;
|
||||
+
|
||||
if (vif->cfg.arp_addr_cnt == 1 && !vif_priv->arp_offload_active) {
|
||||
if (!wcn36xx_smd_arp_offload(wcn, vif, true))
|
||||
vif_priv->arp_offload_active = true;
|
||||
@@ -1202,9 +1241,20 @@
|
||||
vif_priv->gtk_offload_active = true;
|
||||
}
|
||||
|
||||
- if (!wcn->power_params_offload) {
|
||||
+ want_filter = vif_priv->arp_offload_active ? 3 : 0;
|
||||
+ if (!wcn->power_params_offload ||
|
||||
+ wcn->standby_bcast_mcast_filter != want_filter) {
|
||||
+ if (!want_filter && wcn->host_suspend_ind_sent)
|
||||
+ wcn36xx_exit_host_standby(wcn, true);
|
||||
+ wcn->standby_bcast_mcast_filter = want_filter;
|
||||
if (!wcn36xx_smd_set_power_params(wcn, true))
|
||||
wcn->power_params_offload = true;
|
||||
+ }
|
||||
+
|
||||
+ if (want_filter == 3 && !wcn->host_suspend_ind_sent &&
|
||||
+ (wcn->hw->conf.flags & IEEE80211_CONF_PS)) {
|
||||
+ if (!wcn36xx_smd_wlan_host_suspend_ind(wcn))
|
||||
+ wcn->host_suspend_ind_sent = true;
|
||||
}
|
||||
} else {
|
||||
if (vif_priv->gtk_offload_active) {
|
||||
@@ -1483,7 +1483,7 @@ CONFIG_REGMAP_IRQ=y
|
||||
CONFIG_DMA_SHARED_BUFFER=y
|
||||
# CONFIG_DMA_FENCE_TRACE is not set
|
||||
CONFIG_GENERIC_ARCH_TOPOLOGY=y
|
||||
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
|
||||
CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y
|
||||
# end of Generic Driver Options
|
||||
|
||||
#
|
||||
|
||||
+23310
-23306
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1483,7 +1483,7 @@ CONFIG_REGMAP_IRQ=y
|
||||
CONFIG_DMA_SHARED_BUFFER=y
|
||||
# CONFIG_DMA_FENCE_TRACE is not set
|
||||
CONFIG_GENERIC_ARCH_TOPOLOGY=y
|
||||
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
|
||||
CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y
|
||||
# end of Generic Driver Options
|
||||
|
||||
#
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -89,6 +89,7 @@ ensure_prebuilt_artifacts() {
|
||||
|
||||
if [ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/qcom-msm8905-nokia-argon.dtb" ] || \
|
||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/drm/msm.ko.zst" ] || \
|
||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst" ] || \
|
||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" ] || \
|
||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/xt_owner.ko.zst" ] || \
|
||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
||||
|
||||
@@ -89,6 +89,7 @@ if command -v docker >/dev/null 2>&1; then
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/$DTB_FILE" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/msm.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/xt_owner.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
||||
@@ -255,6 +256,12 @@ if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm" ] && \
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/msm.ko.zst" \
|
||||
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/msm/msm.ko.zst"
|
||||
fi
|
||||
if [ -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst" ]; then
|
||||
mkdir -p "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm"
|
||||
rm -f "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/drm_mipi_dbi.ko"
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst" \
|
||||
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/drm_mipi_dbi.ko.zst"
|
||||
fi
|
||||
if [ -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" ]; then
|
||||
mkdir -p "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny"
|
||||
rm -f "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny/panel-mipi-dbi.ko"
|
||||
|
||||
@@ -86,9 +86,14 @@ EOF
|
||||
echo "[2g/5] Applying MSM8909 deep-standby interconnect, Wi-Fi offload, USB runtime PM, and panel sleep patch..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0008-msm8909-standby-power-icc-wifi-usb-panel.patch
|
||||
fi
|
||||
if ! grep -q "rpm_smd_clk_late_cleanup" drivers/clk/qcom/clk-smd-rpm.c 2>/dev/null; then
|
||||
echo "[2h/5] Applying MSM8909 deep-standby RPM clock, USB PHY, Wi-Fi BET/offload, and DDR patch..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0009-msm8909-deep-standby-rpm-usb-wifi-ddr.patch
|
||||
fi
|
||||
if [ ! -f include/config/auto.conf ] || \
|
||||
! grep -q "CONFIG_NETFILTER_XT_MATCH_OWNER=m" .config 2>/dev/null || \
|
||||
! grep -q "CONFIG_INTERCONNECT_QCOM_MSM8909=y" .config 2>/dev/null; then
|
||||
! grep -q "CONFIG_INTERCONNECT_QCOM_MSM8909=y" .config 2>/dev/null || \
|
||||
! grep -q "CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y" .config 2>/dev/null; then
|
||||
echo "[3/5] Preparing kernel configuration..."
|
||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- olddefconfig
|
||||
@@ -122,6 +127,8 @@ EOF
|
||||
|
||||
echo "[2g/5] Applying MSM8909 deep-standby interconnect, Wi-Fi offload, USB runtime PM, and panel sleep patch..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0008-msm8909-standby-power-icc-wifi-usb-panel.patch
|
||||
echo "[2h/5] Applying MSM8909 deep-standby RPM clock, USB PHY, Wi-Fi BET/offload, and DDR patch..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0009-msm8909-deep-standby-rpm-usb-wifi-ddr.patch
|
||||
|
||||
echo "[3/5] Preparing kernel configuration and Module.symvers..."
|
||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||
@@ -146,6 +153,8 @@ EOF
|
||||
KBUILD_MODPOST_WARN=1 M=drivers/spi modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=drivers/gpu/drm/msm modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=drivers/gpu/drm drm_mipi_dbi.ko
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=drivers/gpu/drm/tiny modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
@@ -198,7 +207,8 @@ EOF
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/power/
|
||||
cp -a drivers/net/wireless/ath/wcn36xx/wcn36xx.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/wcn36xx/
|
||||
cp -a drivers/gpu/drm/msm/msm.ko drivers/gpu/drm/tiny/panel-mipi-dbi.ko \
|
||||
cp -a drivers/gpu/drm/msm/msm.ko drivers/gpu/drm/drm_mipi_dbi.ko \
|
||||
drivers/gpu/drm/tiny/panel-mipi-dbi.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/
|
||||
cp -a net/netfilter/xt_owner.ko net/netfilter/nft_redir.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/netfilter/
|
||||
@@ -258,6 +268,8 @@ EOF
|
||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/power/supply/
|
||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/wcn36xx/*.ko.zst \
|
||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/net/wireless/ath/wcn36xx/
|
||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst \
|
||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/
|
||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst \
|
||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny/
|
||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/mux/*.ko.zst \
|
||||
|
||||
+25
-11
@@ -372,9 +372,9 @@ fi
|
||||
|
||||
echo "[check] Known-good flashable image set..."
|
||||
for pair in \
|
||||
"76da5b9d9ed555ebebe76ba79222ef4211c1a4c50437755f0abdbcc0c99449d4 images/bananarchy-nokia-argon.img" \
|
||||
"81d62838c2a105dfaf339a6e71016e215e8e68e8857eb46d3a24fe2fd691cce7 images/bananarchy-nokia-beatles.img" \
|
||||
"4e16742bc1c2461cd6a63f15009a2c0a8550dae7adf7f1ab83209d3df21726ae images/boot-bananarchy-nokia-beatles.img" \
|
||||
"f4c8921a674944b2687b2d7bcb52e6f3cb81ad5997fddac969949305c0479c60 images/bananarchy-nokia-argon.img" \
|
||||
"fd29593b30008b65b7b30b867824ce3f3f4e1f70cda4f012dde1a2c14dd316ba images/bananarchy-nokia-beatles.img" \
|
||||
"d6cb9d5f13bc00815c4fcde5cf32b92ce9d7873683d3cec8b1346a53801ea08a images/boot-bananarchy-nokia-beatles.img" \
|
||||
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
|
||||
set -- $pair
|
||||
want=$1
|
||||
@@ -1148,22 +1148,32 @@ if ! grep -qF '/etc/bananarchy-no-deep-standby' \
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/patches/kernel/0008-msm8909-standby-power-icc-wifi-usb-panel.patch" ] || \
|
||||
! grep -qF '0008-msm8909-standby-power-icc-wifi-usb-panel.patch' "$BASE_DIR/scripts/build-kernel-audio.sh" || \
|
||||
[ ! -f "$BASE_DIR/patches/kernel/0009-msm8909-deep-standby-rpm-usb-wifi-ddr.patch" ] || \
|
||||
! grep -qF '0009-msm8909-deep-standby-rpm-usb-wifi-ddr.patch' "$BASE_DIR/scripts/build-kernel-audio.sh" || \
|
||||
! grep -qF 'M=drivers/gpu/drm drm_mipi_dbi.ko' "$BASE_DIR/scripts/build-kernel-audio.sh" || \
|
||||
! grep -qF 'M=drivers/gpu/drm/tiny modules' "$BASE_DIR/scripts/build-kernel-audio.sh" || \
|
||||
! grep -qF 'drm_mipi_dbi.ko.zst' "$BASE_DIR/scripts/apply-bananarchy-overlay.sh" || \
|
||||
! grep -qF 'panel-mipi-dbi.ko.zst' "$BASE_DIR/scripts/apply-bananarchy-overlay.sh"; then
|
||||
fail "deep-standby kernel patch 0008 or panel-mipi-dbi module build/install wiring is missing"
|
||||
fail "deep-standby kernel patches 0008/0009 or MIPI DBI module build/install wiring is missing"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" ] || \
|
||||
if [ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/drm_mipi_dbi.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/drm_mipi_dbi.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny/panel-mipi-dbi.ko.zst" ]; then
|
||||
fail "prebuilt or overlay panel-mipi-dbi.ko.zst artifact is missing"
|
||||
fail "prebuilt or overlay drm_mipi_dbi.ko.zst / panel-mipi-dbi.ko.zst artifact is missing"
|
||||
fi
|
||||
for kopt in CONFIG_INTERCONNECT_QCOM=y CONFIG_INTERCONNECT_QCOM_MSM8909=y CONFIG_INTERCONNECT_QCOM_SMD_RPM=y; do
|
||||
for kopt in CONFIG_INTERCONNECT_QCOM=y CONFIG_INTERCONNECT_QCOM_MSM8909=y CONFIG_INTERCONNECT_QCOM_SMD_RPM=y CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y; do
|
||||
if ! grep -qxF "$kopt" "$BASE_DIR/patches/kernel/config-bananarchy-msm8909.armv7"; then
|
||||
fail "kernel config is missing $kopt"
|
||||
fi
|
||||
done
|
||||
if ! grep -qxF 'CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y' "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/kernel-config"; then
|
||||
fail "prebuilt kernel-config is missing CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT=y"
|
||||
fi
|
||||
if ! grep -q ' qcom_icc_rpm_set$' "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/System.map" || \
|
||||
! grep -q ' ci_hdrc_msm_runtime_suspend$' "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/System.map"; then
|
||||
fail "shipped kernel System.map is missing interconnect or ChipIdea USB runtime PM symbols"
|
||||
! grep -q ' ci_hdrc_msm_runtime_suspend$' "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/System.map" || \
|
||||
! grep -q ' rpm_smd_clk_late_cleanup$' "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/System.map"; then
|
||||
fail "shipped kernel System.map is missing interconnect, ChipIdea USB runtime PM, or RPM clock cleanup symbols"
|
||||
fi
|
||||
if command -v modinfo >/dev/null 2>&1; then
|
||||
if ! modinfo "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/wcn36xx/wcn36xx.ko.zst" 2>/dev/null | \
|
||||
@@ -1171,6 +1181,10 @@ if command -v modinfo >/dev/null 2>&1; then
|
||||
fail "prebuilt wcn36xx.ko.zst is missing the screen_off_offload parameter"
|
||||
fi
|
||||
fi
|
||||
if ! zstd -dc "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/wcn36xx/wcn36xx.ko.zst" 2>/dev/null | \
|
||||
strings | grep -qF 'wcn36xx_smd_wlan_host_suspend_ind'; then
|
||||
fail "prebuilt wcn36xx.ko.zst is missing wcn36xx_smd_wlan_host_suspend_ind"
|
||||
fi
|
||||
for dts in \
|
||||
"$BASE_DIR/devices/nokia-argon/qcom-msm8905-nokia-argon.dts" \
|
||||
"$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beatles.dts" \
|
||||
@@ -1182,8 +1196,8 @@ for dts in \
|
||||
! grep -qF 'qcom,msm8909-pcnoc' "$dts" || \
|
||||
! grep -qF 'qcom,msm8909-snoc' "$dts" || \
|
||||
! grep -qF 'interconnects = <0xa0 0x00 0xa0 0x06>;' "$dts" || \
|
||||
! grep -qF 'opp-peak-kBps' "$dts"; then
|
||||
fail "${dts#"$BASE_DIR/"} is missing MSM8909 interconnect/OPP bandwidth nodes"
|
||||
! grep -qF 'opp-peak-kBps = <0x25800>;' "$dts"; then
|
||||
fail "${dts#"$BASE_DIR/"} is missing MSM8909 interconnect/OPP bandwidth nodes or 0x25800 floor"
|
||||
fi
|
||||
done
|
||||
if ! grep -qxF 'MODEM_DRX_MODE=6' "$BASE_DIR/overlay/rootfs/etc/bananarchy-power-policy.conf" || \
|
||||
|
||||
Reference in new issue
Block a user