Implement deep-standby RPM interconnect, Wi-Fi, USB, DSDS, and panel power savings for a1114
- Enable MSM8909 SMD RPM interconnect scaling (BIMC, PCNOC, SNOC) with 19.2 MHz active floor, zero sleep-set vote clearing clk_smd_rpm_handoff, and CPU OPP bandwidth tables across all six MSM8905/MSM8909 device trees while preserving module vermagic - Sync wcn36xx conf.listen_interval and expose live screen_off_offload (ARP, IPv6 NS, GTK, ignore_dtim, 40 ms dynamic PS) toggled by bananarchy-display-power-sync without wlan_host_suspend_ind - Add runtime PM clock gating to ci_hdrc_msm when USB is unplugged while skipping viewport ULPI_SYNC_STATE polling under CI_HDRC_OVERRIDE_PHY_CONTROL - Default MODEM_DRX_MODE=6 across all /dev/wwan0at* channels with flock serialization, post-probe boot retry, and modem-ready registration hooks, and quiesce dsds-daemon polling whenever the screen is dark - Issue MIPI DCS DISPLAY_OFF and SLEEP_IN in panel-mipi-dbi on DPMS off while preserving the 2720 Flip closed-only kernel cover backend, and update pinned a1114 (carbonara) hashes and docs
This commit is contained in:
1 parent
e42024e90d
commit
c95a84c69c
44 files changed
+106915
-105453
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
# Bananarchy battery-usage optimization analysis (measurement-corrected)
|
# Bananarchy battery-usage optimization analysis (measurement-corrected)
|
||||||
|
|
||||||
**Status:** analysis plus implemented changes (sections 15-18).
|
**Status:** analysis plus implemented changes (sections 15-20).
|
||||||
**Project:** `/home/lux/proj/bananarchy`, current release `a1111` / `lennon`.
|
**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`,
|
**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`,
|
`Linux nokia-argon 6.12.1-msm8916 #6 SMP PREEMPT Sat May 30 08:38:37 UTC 2026 armv7l`,
|
||||||
@@ -1207,3 +1207,98 @@ module, and sysfs power knob across both active devices for upcoming build
|
|||||||
on `/dev/input`, and blocking `select.select(..., None)`, dropping Bluetooth
|
on `/dev/input`, and blocking `select.select(..., None)`, dropping Bluetooth
|
||||||
daemon idle wakeups from ~100/min to `0`/min and reducing gamepad hotplug
|
daemon idle wakeups from ~100/min to `0`/min and reducing gamepad hotplug
|
||||||
latency from `2 s` to `<5 ms`.
|
latency from `2 s` to `<5 ms`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 20. Hardware, kernel, and firmware deep-standby fixes after the 4-hour DSDS + Wi-Fi standby test (`a1114` / `carbonara`)
|
||||||
|
|
||||||
|
### 20.1 Real-world discharge measurement and root-cause decomposition
|
||||||
|
|
||||||
|
On-battery standby testing on `a1114` (`carbonara`) with the screen off, DSDS
|
||||||
|
active, and Wi-Fi connected measured **20% battery drain over 4 hours**
|
||||||
|
(`5.0%/h`, or **~75 mA** continuous average on the `1,500 mAh` battery). Because
|
||||||
|
section 19 had already reduced userspace idle wakeups to near zero and CPU cores
|
||||||
|
were spending ~98% of uptime in standalone power collapse (SPC), auditing the
|
||||||
|
`6.12.1-msm8916` kernel source, `.config`, DTBs, and radio policy uncovered five
|
||||||
|
hardware/firmware power floors keeping SoC buses, clocks, RF receivers, and the
|
||||||
|
display controller active continuously without `CONFIG_SUSPEND`:
|
||||||
|
|
||||||
|
1. **RPM bus clocks (`BIMC`, `PCNOC`, `SNOC`) pinned at `INT_MAX` (~533 MHz DDR
|
||||||
|
/ ~133 MHz NoC)**: `# CONFIG_INTERCONNECT_QCOM_MSM8909 is not set` and all
|
||||||
|
six MSM8905/MSM8909 DTS files lacked `interconnect@400000` (`bimc`),
|
||||||
|
`interconnect@500000` (`pcnoc`), and `interconnect@580000` (`snoc`) nodes.
|
||||||
|
Without an interconnect provider reaching `icc_sync_state`, `clk-smd-rpm.c`'s
|
||||||
|
`clk_smd_rpm_handoff()` voted `INT_MAX` in both `QCOM_SMD_RPM_ACTIVE_STATE`
|
||||||
|
and `QCOM_SMD_RPM_SLEEP_STATE` at boot and never released it (~22--30 mA).
|
||||||
|
In addition, `qnoc_probe()` in `drivers/interconnect/qcom/icc-rpm.c`
|
||||||
|
zero-initialized `qp->bus_clk_rate[]`, so `sleep_rate == 0` matched the
|
||||||
|
cached `0` and skipped sending a `0` sleep-set vote to RPM.
|
||||||
|
2. **WCN3620 Wi-Fi firmware lacking screen-off ARP/NS/GTK/DTIM offloads and
|
||||||
|
`conf.listen_interval` mismatch**: `wcn36xx/main.c` only enabled
|
||||||
|
`wcn36xx_smd_arp_offload()`, `wcn36xx_smd_ipv6_ns_offload()`,
|
||||||
|
`wcn36xx_smd_gtk_offload()`, and `wcn36xx_smd_set_power_params(ignore_dtim=true)`
|
||||||
|
inside `wcn36xx_suspend()`, which never runs with `CONFIG_SUSPEND=n`. In
|
||||||
|
addition, `0007` set `hw->max_listen_interval` without setting
|
||||||
|
`hw->conf.listen_interval`, leaving `conf.listen_interval` at `1` (~12--18 mA).
|
||||||
|
3. **ChipIdea USB controller (`ci_hdrc_msm` at `78d9000.usb`) missing runtime
|
||||||
|
PM**: `ci_hdrc_msm.c` had no `RUNTIME_PM_OPS` and omitted
|
||||||
|
`CI_HDRC_SUPPORTS_RUNTIME_PM`, leaving `usb_hs_ahb_clk` (`100 MHz`) and
|
||||||
|
`usb_hs_system_clk` (`80 MHz`) ungated whenever unplugged on battery (~4--6 mA).
|
||||||
|
4. **DSDS modem paging at default short DRX (`MODEM_DRX_MODE=0`) and single-port
|
||||||
|
`AT$QCDRX` application**: `bananarchy-power-policy.conf` shipped
|
||||||
|
`MODEM_DRX_MODE=0`, `msm-modem-uim-selection at auto` exited after the first
|
||||||
|
`/dev/wwan0at*` port without configuring the second DSDS AT channel, and
|
||||||
|
`dsds-daemon` checked only `/tmp/bananarchy_screen_locked` rather than raw
|
||||||
|
backlight state (~10--15 mA).
|
||||||
|
5. **GC9305 / ST7789V SPI panel controller left in active 60 Hz GRAM scan during
|
||||||
|
DPMS off**: `drivers/gpu/drm/tiny/panel-mipi-dbi.c` omitted a `.disable`
|
||||||
|
callback on `panel_mipi_dbi_pipe_funcs`, so `xset dpms force off` turned off
|
||||||
|
the PWM backlight without issuing `MIPI_DCS_SET_DISPLAY_OFF` (`0x28`) and
|
||||||
|
`MIPI_DCS_ENTER_SLEEP_MODE` (`0x10`) before disabling `vdd`/`io` (~3--6 mA on
|
||||||
|
boards with always-on or shared panel rails).
|
||||||
|
|
||||||
|
### 20.2 Five hardware, kernel, and firmware fixes implemented (`0008`)
|
||||||
|
|
||||||
|
1. **MSM8909 RPM interconnect scaling (`CONFIG_INTERCONNECT_QCOM_MSM8909=y`)**:
|
||||||
|
enabled `CONFIG_INTERCONNECT_QCOM=y`, `CONFIG_INTERCONNECT_QCOM_MSM8909=y`,
|
||||||
|
and `CONFIG_INTERCONNECT_QCOM_SMD_RPM=y` (built-in, preserving module
|
||||||
|
`vermagic` across all 580 `.ko.zst` modules), added `.keep_alive = true` on
|
||||||
|
`msm8909_bimc`, `msm8909_pcnoc`, and `msm8909_snoc` (`19.2 MHz` active floor,
|
||||||
|
`0` in `SLEEP_STATE`), initialized `qp->bus_clk_rate[*]` to `U32_MAX` in
|
||||||
|
`qnoc_probe()` so `icc_sync_state` clears the `INT_MAX` sleep handoff vote in
|
||||||
|
RPM, and wired `bimc`/`pcnoc`/`snoc` plus `cpus` `interconnects` and
|
||||||
|
`cpu-opp-table` `opp-peak-kBps` across all six MSM8905/MSM8909 DTS files.
|
||||||
|
2. **Live WCN3620 screen-off firmware offloads without freezing host RX**:
|
||||||
|
`wcn36xx` now initializes 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 `1`, `wcn36xx` programs hardware
|
||||||
|
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` while keeping `rx_irq`/`tx_irq` enabled and
|
||||||
|
never sending `wlan_host_suspend_ind`, so inbound SSH/TCP/IM unicast packets
|
||||||
|
still wake the host immediately.
|
||||||
|
3. **ChipIdea USB runtime PM while unplugged**: `ci_hdrc_msm.c` enables
|
||||||
|
`CI_HDRC_SUPPORTS_RUNTIME_PM`, wraps `ci_hdrc_msm_por_reset()` in
|
||||||
|
`pm_runtime_resume_and_get()`/`pm_runtime_put()`, gates `iface_clk` and
|
||||||
|
`core_clk` in `RUNTIME_PM_OPS` when `vbus_extcon` is unplugged, and skips
|
||||||
|
`ci_ulpi_resume()`'s `ULPI_SYNC_STATE` viewport poll when
|
||||||
|
`CI_HDRC_OVERRIDE_PHY_CONTROL` is set so cable hotplug resumes cleanly before
|
||||||
|
`CI_HDRC_CONTROLLER_RESET_EVENT` powers the ULPI PHY.
|
||||||
|
4. **Default dual-port `MODEM_DRX_MODE=6` and dark-screen `dsds-daemon` sleep**:
|
||||||
|
`bananarchy-power-policy.conf` defaults to `MODEM_DRX_MODE=6` while keeping
|
||||||
|
`DSDS_SECONDARY_MODE=active` so both SIMs stay reachable;
|
||||||
|
`msm-modem-uim-selection` adds `at all` multi-port support and `screen_is_idle()`
|
||||||
|
in `dsds-daemon` (`poll_timeout = None` whenever locked, cover-lit, or
|
||||||
|
backlight off); and `bananarchy-power-policy.sh` serializes AT port access
|
||||||
|
with `flock`, waits past `ModemManager`'s startup port probe at boot, and
|
||||||
|
re-applies `AT$QCDRX=6` across all `/dev/wwan0at*` ports on `modem-ready`
|
||||||
|
(`sxmo_hook_modem.sh` `registered`/`connected` and post-PIN/switch
|
||||||
|
registration) with per-port devtmpfs inode caching in
|
||||||
|
`/run/bananarchy-power-policy/drx.<port>`.
|
||||||
|
5. **MIPI DCS `DISPOFF` + `SLPIN` on `panel-mipi-dbi` DPMS off**:
|
||||||
|
`panel_mipi_dbi_disable()` sends `0x28` (`msleep(20)`) and `0x10`
|
||||||
|
(`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.
|
||||||
+9
-1
@@ -14,11 +14,19 @@ 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.
|
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`)
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
- **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.
|
||||||
|
|
||||||
### Dual-target idle wakeup elimination and GPU/scheduler power sync
|
### 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)`.
|
- **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).
|
- **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 `89173379f80ca8c7a0153dd49196eed04bdf039f9a94f8f239ad12928a04abb6`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `58e2df065a761e5476135971d37d3c09681621ff6c68e5e4d6f9eec852a11d74`, with standalone `images/boot-bananarchy-nokia-beatles.img` SHA-256 `199fe9a0b926e8ddf9815b0d7a901d913aa5b79be78fc4202a9ed2651ca493ac` 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 `3be4664961482bbe811512613d85d932d53298d46c0f87e3a0dfdb3173ac7f00`) and `images/bananarchy-nokia-beatles.img` (SHA-256 `0178e8c3d5f8dec79cdfda28a73044ea8f65b5cf0d9cbb7c7b12a55e65b46b8a`, 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`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ sudo dd if=./images/bananarchy-<device>.img of=/dev/sdX bs=4M status=progress co
|
|||||||
|
|
||||||
|
|
||||||
> **Runtime power policy (`/etc/bananarchy-power-policy.conf`)**:
|
> **Runtime power policy (`/etc/bananarchy-power-policy.conf`)**:
|
||||||
> `WIFI_LISTEN_INTERVAL` (1-10, default 5) sets the `wcn36xx` beacon listen interval via `/etc/modprobe.d/10-bananarchy-power.conf`; higher values cut idle Wi-Fi RX wakeups but delay inbound packets, and the change applies at module load (reboot or reload `wcn36xx`). `MODEM_DRX_MODE` (default `0`) applies the Qualcomm `AT$QCDRX` DRX mode at boot and on every wake; `6-9` are progressively longer paging cycles that lower modem idle current at the cost of call/SMS setup latency, while `0` is the firmware default. The standard `AT+CPSMS` / `AT+CEDRXS` PSM/eDRX commands are not supported by this modem firmware. `DSDS_SECONDARY_MODE=eco` (default `active`) deactivates the secondary SIM's GW provisioning session after `DSDS_PARK_DELAY` seconds (default 300) of a dark panel and restores it on wake; **SIM2 is unreachable while parked**. This uses QMI provisioning sessions, not SIM power-off, so a PIN-locked SIM stays locked. Edit the file as root and run `doas /usr/bin/bananarchy-power-policy.sh apply`, or reboot; `doas /usr/bin/bananarchy-power-policy.sh status` reports the effective values. DDR self-refresh / `mem` suspend is unavailable on this firmware (no PSCI `SYSTEM_SUSPEND`); see `BATTERY-OPTIMIZATION-ANALYSIS.md` §15.
|
> `WIFI_LISTEN_INTERVAL` (1-10, default 5) sets the `wcn36xx` beacon listen interval (`max_listen_interval` and `conf.listen_interval`) via `/etc/modprobe.d/10-bananarchy-power.conf`, while `bananarchy-display-power-sync` toggles `/sys/module/wcn36xx/parameters/screen_off_offload` to enable WCN3620 ARP/IPv6-NS/GTK and DTIM offloads while the main panel is dark without suspending host RX. `MODEM_DRX_MODE` (default `6`) applies the Qualcomm `AT$QCDRX` DRX mode across all `/dev/wwan0at*` channels at boot and on screen transitions (cached per AT port inode); `6` enables the standard ~1.28 s low-power paging cycle across active SIMs, `7-9` are progressively longer undocumented paging cycles, and `0` leaves the firmware default untouched. The standard `AT+CPSMS` / `AT+CEDRXS` PSM/eDRX commands are not supported by this modem firmware. `DSDS_SECONDARY_MODE=eco` (default `active`) deactivates the secondary SIM's GW provisioning session after `DSDS_PARK_DELAY` seconds (default 300) of a dark panel and restores it on wake; **SIM2 is unreachable while parked**. This uses QMI provisioning sessions, not SIM power-off, so a PIN-locked SIM stays locked. Edit the file as root and run `doas /usr/bin/bananarchy-power-policy.sh apply`, or reboot; `doas /usr/bin/bananarchy-power-policy.sh status` reports the effective values across all AT ports and `wcn36xx`. DDR self-refresh / `mem` suspend is unavailable on this firmware (no PSCI `SYSTEM_SUSPEND`); see `BATTERY-OPTIMIZATION-ANALYSIS.md` §§15, 20.
|
||||||
|
|
||||||
#### 3.1.1 Window tiling modes and switching combos
|
#### 3.1.1 Window tiling modes and switching combos
|
||||||
By default, `dwm` uses the **vertical bottom-stack (`bstack`, `TTT`)** layout so multiple `st` terminals stack **vertically (one under another)** to preserve full line width on the `240x320` portrait screen.
|
By default, `dwm` uses the **vertical bottom-stack (`bstack`, `TTT`)** layout so multiple `st` terminals stack **vertically (one under another)** to preserve full line width on the `240x320` portrait screen.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
## Key features
|
## Key features
|
||||||
|
|
||||||
### System and hardware support
|
### System and hardware support
|
||||||
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff. The kernel image is built from `config-bananarchy-msm8909.armv7` with the known-good pmaports module ABI, and ships with idle-blanking power management; `BATTERY-OPTIMIZATION-ANALYSIS.md` records the measured idle state and explains why suspend-to-RAM is unavailable on this firmware (PSCI `SYSTEM_SUSPEND` missing) and why a full custom module tree rebuild is not worthwhile. Section 17 adds the `a1108` re-analysis and two low-risk wins: the active zram swap now uses `lz4` instead of `zramstart`'s `zstd` default, and `vm.compaction_proactiveness=0` removes ~2 `kcompactd0` wakeups/s. Section 18 replaces the idle `nmcli device monitor` poller with NetworkManager dispatcher hooks and records the kernel/VFS tweaks that were A/B tested and rejected. Runtime Wi-Fi listen-interval, modem DRX and DSDS secondary-SIM power policies are configurable in `/etc/bananarchy-power-policy.conf`; see `MANUAL.md`.
|
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff. The kernel image is built from `config-bananarchy-msm8909.armv7` with the known-good pmaports module ABI, and ships with idle-blanking power management; `BATTERY-OPTIMIZATION-ANALYSIS.md` records the measured idle state and explains why suspend-to-RAM is unavailable on this firmware (PSCI `SYSTEM_SUSPEND` missing) and why a full custom module tree rebuild is not worthwhile. Section 17 adds the `a1108` re-analysis and two low-risk wins: the active zram swap now uses `lz4` instead of `zramstart`'s `zstd` default, and `vm.compaction_proactiveness=0` removes ~2 `kcompactd0` wakeups/s. Section 18 replaces the idle `nmcli device monitor` poller with NetworkManager dispatcher hooks and records the kernel/VFS tweaks that were A/B tested and rejected, while sections 19-20 add event-driven idle daemons, MSM8909 RPM interconnect bus scaling (`BIMC`/`PCNOC`/`SNOC`), live WCN3620 screen-off firmware offloads, ChipIdea USB runtime PM while unplugged, `panel-mipi-dbi` DPMS sleep, and dual-port DSDS `AT$QCDRX=6` paging. Runtime Wi-Fi listen-interval, modem DRX and DSDS secondary-SIM power policies are configurable in `/etc/bananarchy-power-policy.conf`; see `MANUAL.md`.
|
||||||
- **Target-correct camera orientation**: the V4L2 demosaic path rotates frames 180 degrees only on `nokia-beatles`, correcting the 2720 Flip's sensor mounting directly at `/dev/video0` for the viewfinder, saved photos, and third-party V4L2 consumers. Other Nokia targets retain their existing orientation, and the correction adds no extra frame-buffer copy.
|
- **Target-correct camera orientation**: the V4L2 demosaic path rotates frames 180 degrees only on `nokia-beatles`, correcting the 2720 Flip's sensor mounting directly at `/dev/video0` for the viewfinder, saved photos, and third-party V4L2 consumers. Other Nokia targets retain their existing orientation, and the correction adds no extra frame-buffer copy.
|
||||||
- **High-brightness display and reliable flip handling**: the 2720 Flip internal panel uses a live-verified 25 MHz SPI clock to prevent corruption when backlight PWM exceeds the former 71% threshold, without reducing the brightness range. The compiled lid daemon combines event-driven `EV_SW` handling with 200 ms raw-hall reconciliation, so missed edges or stale switch state cannot leave the phone awake when closed.
|
- **High-brightness display and reliable flip handling**: the 2720 Flip internal panel uses a live-verified 25 MHz SPI clock to prevent corruption when backlight PWM exceeds the former 71% threshold, without reducing the brightness range. The compiled lid daemon combines event-driven `EV_SW` handling with 200 ms raw-hall reconciliation, so missed edges or stale switch state cannot leave the phone awake when closed.
|
||||||
- **Stock-signed Wi-Fi, Bluetooth, and modem firmware**: `msm-firmware-loader` mounts the phone's `modem` and `persist` partitions before udev, supplies `wcnss.mdt`, `mba.mbn`, and the device-specific WCNSS NV data to the mainline remote processors, and preserves the factory radio calibration and MAC addresses. The sysinit and boot service links are shipped explicitly so clean, `--no-scripts` image builds bring up both `wlan0`/`wcn36xx` and `hci0`/`btqcomsmd` without packaging device-specific firmware blobs.
|
- **Stock-signed Wi-Fi, Bluetooth, and modem firmware**: `msm-firmware-loader` mounts the phone's `modem` and `persist` partitions before udev, supplies `wcnss.mdt`, `mba.mbn`, and the device-specific WCNSS NV data to the mainline remote processors, and preserves the factory radio calibration and MAC addresses. The sysinit and boot service links are shipped explicitly so clean, `--no-scripts` image builds bring up both `wlan0`/`wcn36xx` and `hci0`/`btqcomsmd` without packaging device-specific firmware blobs.
|
||||||
|
|||||||
Binary file not shown.
@@ -50,6 +50,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -84,6 +86,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -101,6 +104,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -138,48 +142,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -612,6 +624,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -629,6 +648,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -87,6 +89,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -104,6 +107,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -139,48 +143,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -613,6 +625,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -630,6 +649,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
Binary file not shown.
@@ -53,6 +53,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -87,6 +89,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -104,6 +107,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -139,48 +143,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -613,6 +625,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -630,6 +649,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
Binary file not shown.
@@ -50,6 +50,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -84,6 +86,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -101,6 +104,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -138,48 +142,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -616,6 +628,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -633,6 +652,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
Binary file not shown.
@@ -50,6 +50,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -84,6 +86,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -101,6 +104,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -138,48 +142,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -616,6 +628,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -633,6 +652,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
Binary file not shown.
@@ -50,6 +50,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x07>;
|
qcom,acc = <0x07>;
|
||||||
qcom,saw = <0x08>;
|
qcom,saw = <0x08>;
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x09>;
|
qcom,acc = <0x09>;
|
||||||
qcom,saw = <0x0a>;
|
qcom,saw = <0x0a>;
|
||||||
@@ -84,6 +86,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0b>;
|
qcom,acc = <0x0b>;
|
||||||
qcom,saw = <0x0c>;
|
qcom,saw = <0x0c>;
|
||||||
@@ -101,6 +104,7 @@
|
|||||||
power-domains = <0x04 0x01>;
|
power-domains = <0x04 0x01>;
|
||||||
power-domain-names = "perf";
|
power-domain-names = "perf";
|
||||||
operating-points-v2 = <0x05>;
|
operating-points-v2 = <0x05>;
|
||||||
|
interconnects = <0xa0 0x00 0xa0 0x06>;
|
||||||
cpu-idle-states = <0x06>;
|
cpu-idle-states = <0x06>;
|
||||||
qcom,acc = <0x0d>;
|
qcom,acc = <0x0d>;
|
||||||
qcom,saw = <0x0e>;
|
qcom,saw = <0x0e>;
|
||||||
@@ -138,48 +142,56 @@
|
|||||||
|
|
||||||
opp-199999951 {
|
opp-199999951 {
|
||||||
opp-hz = <0x00 0xbebc1cf>;
|
opp-hz = <0x00 0xbebc1cf>;
|
||||||
|
opp-peak-kBps = <0xc3500>;
|
||||||
required-opps = <0x10>;
|
required-opps = <0x10>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-399999902 {
|
opp-399999902 {
|
||||||
opp-hz = <0x00 0x17d7839e>;
|
opp-hz = <0x00 0x17d7839e>;
|
||||||
|
opp-peak-kBps = <0x186a00>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-533333202 {
|
opp-533333202 {
|
||||||
opp-hz = <0x00 0x1fca04d2>;
|
opp-hz = <0x00 0x1fca04d2>;
|
||||||
|
opp-peak-kBps = <0x208d50>;
|
||||||
required-opps = <0x11>;
|
required-opps = <0x11>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-799999804 {
|
opp-799999804 {
|
||||||
opp-hz = <0x00 0x2faf073c>;
|
opp-hz = <0x00 0x2faf073c>;
|
||||||
|
opp-peak-kBps = <0x2ee000>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0xff>;
|
opp-supported-hw = <0xff>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-998400000 {
|
opp-998400000 {
|
||||||
opp-hz = <0x00 0x3b826000>;
|
opp-hz = <0x00 0x3b826000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x12>;
|
required-opps = <0x12>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1094400000 {
|
opp-1094400000 {
|
||||||
opp-hz = <0x00 0x413b3800>;
|
opp-hz = <0x00 0x413b3800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x05>;
|
opp-supported-hw = <0x05>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1248000000 {
|
opp-1248000000 {
|
||||||
opp-hz = <0x00 0x4a62f800>;
|
opp-hz = <0x00 0x4a62f800>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
|
|
||||||
opp-1267200000 {
|
opp-1267200000 {
|
||||||
opp-hz = <0x00 0x4b87f000>;
|
opp-hz = <0x00 0x4b87f000>;
|
||||||
|
opp-peak-kBps = <0x411ab0>;
|
||||||
required-opps = <0x13>;
|
required-opps = <0x13>;
|
||||||
opp-supported-hw = <0x01>;
|
opp-supported-hw = <0x01>;
|
||||||
};
|
};
|
||||||
@@ -612,6 +624,13 @@
|
|||||||
reg = <0x290000 0x10000>;
|
reg = <0x290000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@400000 {
|
||||||
|
compatible = "qcom,msm8909-bimc";
|
||||||
|
reg = <0x400000 0x62000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa0>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal-sensor@4a9000 {
|
thermal-sensor@4a9000 {
|
||||||
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
compatible = "qcom,msm8909-tsens", "qcom,tsens-v0_1";
|
||||||
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
reg = <0x4a9000 0x1000 0x4a8000 0x1000>;
|
||||||
@@ -629,6 +648,20 @@
|
|||||||
reg = <0x4ab000 0x04>;
|
reg = <0x4ab000 0x04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interconnect@500000 {
|
||||||
|
compatible = "qcom,msm8909-pcnoc";
|
||||||
|
reg = <0x500000 0x11000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
interconnect@580000 {
|
||||||
|
compatible = "qcom,msm8909-snoc";
|
||||||
|
reg = <0x580000 0x14000>;
|
||||||
|
#interconnect-cells = <0x01>;
|
||||||
|
phandle = <0xa2>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl@1000000 {
|
pinctrl@1000000 {
|
||||||
compatible = "qcom,msm8909-tlmm";
|
compatible = "qcom,msm8909-tlmm";
|
||||||
reg = <0x1000000 0x300000>;
|
reg = <0x1000000 0x300000>;
|
||||||
|
|||||||
+52891
-52693
File diff suppressed because it is too large.
Load diff
@@ -6085,7 +6085,21 @@ CONFIG_PM_OPP=y
|
|||||||
# CONFIG_SIOX is not set
|
# CONFIG_SIOX is not set
|
||||||
# CONFIG_SLIMBUS is not set
|
# CONFIG_SLIMBUS is not set
|
||||||
CONFIG_INTERCONNECT=y
|
CONFIG_INTERCONNECT=y
|
||||||
# CONFIG_INTERCONNECT_QCOM is not set
|
CONFIG_INTERCONNECT_QCOM=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_MSM8909=y
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8916 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8937 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8939 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8953 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8974 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8976 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8996 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_OSM_L3 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCM2290 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCS404 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SDM660 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SM6115 is not set
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SMD_RPM=y
|
||||||
CONFIG_INTERCONNECT_CLK=y
|
CONFIG_INTERCONNECT_CLK=y
|
||||||
# CONFIG_COUNTER is not set
|
# CONFIG_COUNTER is not set
|
||||||
# CONFIG_MOST is not set
|
# CONFIG_MOST is not set
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -9,10 +9,10 @@
|
|||||||
WIFI_LISTEN_INTERVAL=5
|
WIFI_LISTEN_INTERVAL=5
|
||||||
|
|
||||||
# Qualcomm modem DRX mode via AT$QCDRX (0, 6-9). 0 = firmware default, no
|
# Qualcomm modem DRX mode via AT$QCDRX (0, 6-9). 0 = firmware default, no
|
||||||
# policy. 6-9 = progressively longer paging cycles: lower modem idle
|
# policy. 6 = standard low-power paging cycle across active AT channels
|
||||||
# current, longer call/SMS setup latency. Values above 6 are undocumented
|
# (~1.28 s DRX) while keeping both DSDS SIMs reachable. Values above 6 are
|
||||||
# on this firmware; 9 made the AT channel briefly unresponsive in testing.
|
# undocumented on this firmware; 9 made the AT channel briefly unresponsive.
|
||||||
MODEM_DRX_MODE=0
|
MODEM_DRX_MODE=6
|
||||||
|
|
||||||
# Secondary SIM (DSDS) policy while the panel is dark:
|
# Secondary SIM (DSDS) policy while the panel is dark:
|
||||||
# active = keep both subscriptions provisioned (default)
|
# active = keep both subscriptions provisioned (default)
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -15,6 +15,7 @@ BL_POWER_PATH=/sys/class/backlight/backlight/bl_power
|
|||||||
KBD_PATH=/sys/class/leds/white:kbd_backlight/brightness
|
KBD_PATH=/sys/class/leds/white:kbd_backlight/brightness
|
||||||
RL_PATH=/sys/devices/system/cpu/cpufreq/schedutil/rate_limit_us
|
RL_PATH=/sys/devices/system/cpu/cpufreq/schedutil/rate_limit_us
|
||||||
GPU_GOV_PATH=/sys/class/devfreq/1c00000.gpu/governor
|
GPU_GOV_PATH=/sys/class/devfreq/1c00000.gpu/governor
|
||||||
|
WIFI_OFFLOAD_PATH=/sys/module/wcn36xx/parameters/screen_off_offload
|
||||||
COVER_MARKER=/run/bananarchy/cover-backlight
|
COVER_MARKER=/run/bananarchy/cover-backlight
|
||||||
FORCE_MARKER=/run/bananarchy/cover-bl-force
|
FORCE_MARKER=/run/bananarchy/cover-bl-force
|
||||||
STATE_CACHE=/run/bananarchy/cover-power-state
|
STATE_CACHE=/run/bananarchy/cover-power-state
|
||||||
@@ -83,9 +84,11 @@ case "$br" in ''|*[!0-9]*) br=1 ;; esac
|
|||||||
if [ "$(read_value "$LID_PROFILE")" != "flip" ]; then
|
if [ "$(read_value "$LID_PROFILE")" != "flip" ]; then
|
||||||
if [ "$br" -eq 0 ]; then
|
if [ "$br" -eq 0 ]; then
|
||||||
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "powersave"
|
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "powersave"
|
||||||
|
[ -w "$WIFI_OFFLOAD_PATH" ] && set_if_changed "$WIFI_OFFLOAD_PATH" "Y"
|
||||||
force_dpms "Off"
|
force_dpms "Off"
|
||||||
else
|
else
|
||||||
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "simple_ondemand"
|
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "simple_ondemand"
|
||||||
|
[ -w "$WIFI_OFFLOAD_PATH" ] && set_if_changed "$WIFI_OFFLOAD_PATH" "N"
|
||||||
force_dpms "On"
|
force_dpms "On"
|
||||||
[ -w "$RL_PATH" ] && set_if_changed "$RL_PATH" "40000"
|
[ -w "$RL_PATH" ] && set_if_changed "$RL_PATH" "40000"
|
||||||
fi
|
fi
|
||||||
@@ -179,8 +182,10 @@ fi
|
|||||||
[ -n "$DESIRED_KBD" ] && set_if_changed "$KBD_PATH" "$DESIRED_KBD"
|
[ -n "$DESIRED_KBD" ] && set_if_changed "$KBD_PATH" "$DESIRED_KBD"
|
||||||
if [ "$DESIRED_DPMS" = "Off" ] || [ "$marker" = "0" ] || [ "$marker" = "1" ]; then
|
if [ "$DESIRED_DPMS" = "Off" ] || [ "$marker" = "0" ] || [ "$marker" = "1" ]; then
|
||||||
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "powersave"
|
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "powersave"
|
||||||
|
[ -w "$WIFI_OFFLOAD_PATH" ] && set_if_changed "$WIFI_OFFLOAD_PATH" "Y"
|
||||||
else
|
else
|
||||||
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "simple_ondemand"
|
[ -w "$GPU_GOV_PATH" ] && set_if_changed "$GPU_GOV_PATH" "simple_ondemand"
|
||||||
|
[ -w "$WIFI_OFFLOAD_PATH" ] && set_if_changed "$WIFI_OFFLOAD_PATH" "N"
|
||||||
fi
|
fi
|
||||||
force_dpms "$DESIRED_DPMS"
|
force_dpms "$DESIRED_DPMS"
|
||||||
[ -w "$RL_PATH" ] && set_if_changed "$RL_PATH" "40000"
|
[ -w "$RL_PATH" ] && set_if_changed "$RL_PATH" "40000"
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ PARKED="$RUNDIR/parked"
|
|||||||
AIDFILE="$RUNDIR/secondary.aid"
|
AIDFILE="$RUNDIR/secondary.aid"
|
||||||
SLOTFILE="$RUNDIR/secondary.slot"
|
SLOTFILE="$RUNDIR/secondary.slot"
|
||||||
TOKEN="$RUNDIR/token"
|
TOKEN="$RUNDIR/token"
|
||||||
|
BOOTTOKEN="$RUNDIR/boot.token"
|
||||||
|
READYSTAMP="$RUNDIR/modem_ready.stamp"
|
||||||
|
DRXLOCK="$RUNDIR/lock.drx"
|
||||||
QMI="timeout 8 qmicli --silent -pd qrtr://0"
|
QMI="timeout 8 qmicli --silent -pd qrtr://0"
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
@@ -17,7 +20,7 @@ if [ "$(id -u)" != "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
WIFI_LISTEN_INTERVAL=5
|
WIFI_LISTEN_INTERVAL=5
|
||||||
MODEM_DRX_MODE=0
|
MODEM_DRX_MODE=6
|
||||||
DSDS_SECONDARY_MODE=active
|
DSDS_SECONDARY_MODE=active
|
||||||
DSDS_PARK_DELAY=300
|
DSDS_PARK_DELAY=300
|
||||||
[ -r "$CONF" ] && . "$CONF"
|
[ -r "$CONF" ] && . "$CONF"
|
||||||
@@ -44,26 +47,58 @@ write_modprobe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply_modem_drx() {
|
apply_modem_drx() {
|
||||||
|
force_drx="${1:-cached}"
|
||||||
case "$MODEM_DRX_MODE" in
|
case "$MODEM_DRX_MODE" in
|
||||||
0) return 0 ;;
|
0)
|
||||||
|
rm -f "$RUNDIR"/drx.wwan* 2>/dev/null || true
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
6|7|8|9) ;;
|
6|7|8|9) ;;
|
||||||
*)
|
*)
|
||||||
log "invalid MODEM_DRX_MODE=$MODEM_DRX_MODE (use 0 or 6-9)"
|
log "invalid MODEM_DRX_MODE=$MODEM_DRX_MODE (use 0 or 6-9)"
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
[ -c /dev/wwan0at0 ] || {
|
(
|
||||||
log "no modem AT port"
|
exec 9>"$DRXLOCK"
|
||||||
return 1
|
flock -w 10 9 || exit 1
|
||||||
}
|
if [ "$force_drx" = "force" ]; then
|
||||||
out="$(timeout 6 /usr/libexec/msm-modem-uim-selection at auto "AT\$QCDRX=$MODEM_DRX_MODE" 2>/dev/null || true)"
|
rm -f "$RUNDIR"/drx.wwan* 2>/dev/null || true
|
||||||
case "$out" in
|
fi
|
||||||
*OK*) return 0 ;;
|
found_port=0
|
||||||
*)
|
failed_port=0
|
||||||
log "AT\$QCDRX=$MODEM_DRX_MODE failed: $out"
|
for dev in /dev/wwan0at*; do
|
||||||
return 1
|
[ -c "$dev" ] || continue
|
||||||
;;
|
found_port=1
|
||||||
esac
|
port_name="${dev#/dev/}"
|
||||||
|
dev_id="$(stat -c '%i' "$dev" 2>/dev/null || echo 0)"
|
||||||
|
cache_file="$RUNDIR/drx.$port_name"
|
||||||
|
want_key="$MODEM_DRX_MODE:$dev_id"
|
||||||
|
cur_key=""
|
||||||
|
if [ "$force_drx" != "force" ] && [ -r "$cache_file" ]; then
|
||||||
|
IFS= read -r cur_key < "$cache_file" 2>/dev/null || cur_key=""
|
||||||
|
if [ "$cur_key" = "$want_key" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
out="$(timeout 6 /usr/libexec/msm-modem-uim-selection at "$dev" "AT\$QCDRX=$MODEM_DRX_MODE" 2>/dev/null || true)"
|
||||||
|
case "$out" in
|
||||||
|
*OK*)
|
||||||
|
printf '%s\n' "$want_key" > "$cache_file" 2>/dev/null || true
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
rm -f "$cache_file" 2>/dev/null || true
|
||||||
|
failed_port=1
|
||||||
|
log "AT\$QCDRX=$MODEM_DRX_MODE on $port_name failed: $out"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if [ "$found_port" -eq 0 ]; then
|
||||||
|
[ "$force_drx" = "force" ] && log "no modem AT port"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
[ "$failed_port" -eq 0 ]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
secondary_aid() {
|
secondary_aid() {
|
||||||
@@ -115,10 +150,11 @@ unpark() {
|
|||||||
else
|
else
|
||||||
log "failed to reactivate secondary GW session"
|
log "failed to reactivate secondary GW session"
|
||||||
fi
|
fi
|
||||||
rm -f "$PARKED" "$AIDFILE" "$SLOTFILE"
|
rm -f "$PARKED" "$AIDFILE" "$SLOTFILE" "$RUNDIR"/drx.wwan* 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
screenoff() {
|
screenoff() {
|
||||||
|
apply_modem_drx cached || true
|
||||||
[ "$DSDS_SECONDARY_MODE" = "eco" ] || return 0
|
[ "$DSDS_SECONDARY_MODE" = "eco" ] || return 0
|
||||||
token="$(date +%s)-$$"
|
token="$(date +%s)-$$"
|
||||||
printf '%s\n' "$token" > "$TOKEN"
|
printf '%s\n' "$token" > "$TOKEN"
|
||||||
@@ -134,13 +170,57 @@ screenoff() {
|
|||||||
screenon() {
|
screenon() {
|
||||||
rm -f "$TOKEN" 2>/dev/null || true
|
rm -f "$TOKEN" 2>/dev/null || true
|
||||||
unpark
|
unpark
|
||||||
apply_modem_drx || true
|
apply_modem_drx cached || true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply_now() {
|
||||||
|
rm -f "$BOOTTOKEN" "$READYSTAMP" "$RUNDIR"/drx.wwan* 2>/dev/null || true
|
||||||
|
write_modprobe || true
|
||||||
|
apply_modem_drx force || true
|
||||||
|
}
|
||||||
|
|
||||||
|
modem_ready() {
|
||||||
|
now_ts=0
|
||||||
|
if [ -r /proc/uptime ]; then
|
||||||
|
IFS='. ' read -r now_ts _ < /proc/uptime 2>/dev/null || now_ts=0
|
||||||
|
fi
|
||||||
|
case "$now_ts" in ''|*[!0-9]*) now_ts=0 ;; esac
|
||||||
|
last_ts=0
|
||||||
|
[ -r "$READYSTAMP" ] && { read -r last_ts < "$READYSTAMP" 2>/dev/null || last_ts=0; }
|
||||||
|
case "$last_ts" in ''|*[!0-9]*) last_ts=0 ;; esac
|
||||||
|
if [ "$last_ts" -gt 0 ] && [ $((now_ts - last_ts)) -ge 0 ] && [ $((now_ts - last_ts)) -lt 5 ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
printf '%s\n' "$now_ts" > "$READYSTAMP" 2>/dev/null || true
|
||||||
|
if apply_modem_drx force >/dev/null 2>&1; then
|
||||||
|
rm -f "$BOOTTOKEN" 2>/dev/null || true
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
boot() {
|
boot() {
|
||||||
rm -f "$TOKEN" "$PARKED" "$AIDFILE" "$SLOTFILE" 2>/dev/null || true
|
rm -f "$TOKEN" "$PARKED" "$AIDFILE" "$SLOTFILE" "$READYSTAMP" "$RUNDIR"/drx.wwan* 2>/dev/null || true
|
||||||
write_modprobe || true
|
write_modprobe || true
|
||||||
apply_modem_drx || true
|
btok="$$-$(cat /proc/uptime 2>/dev/null | awk '{print $1}' || echo 0)"
|
||||||
|
printf '%s\n' "$btok" > "$BOOTTOKEN"
|
||||||
|
(
|
||||||
|
# Let ModemManager finish its startup AT port probe (~5 s) so we do not
|
||||||
|
# compete with mm-port-probe on wwan_core's shared RX queue, then retry
|
||||||
|
# until all enumerated AT channels accept AT$QCDRX.
|
||||||
|
sleep 5
|
||||||
|
i=0
|
||||||
|
while [ "$i" -lt 12 ]; do
|
||||||
|
cur=""
|
||||||
|
[ -r "$BOOTTOKEN" ] && { read -r cur < "$BOOTTOKEN" 2>/dev/null || cur=""; }
|
||||||
|
[ "$cur" = "$btok" ] || exit 0
|
||||||
|
if [ -c /dev/wwan0at0 ] && { [ -c /dev/wwan0at1 ] || [ "$i" -ge 2 ]; }; then
|
||||||
|
if apply_modem_drx force >/dev/null 2>&1; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sleep 3
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
|
) >/dev/null 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
@@ -159,18 +239,26 @@ status() {
|
|||||||
printf 'modprobe_conf=absent\n'
|
printf 'modprobe_conf=absent\n'
|
||||||
fi
|
fi
|
||||||
printf 'wcn36xx_param=%s\n' "$(cat /sys/module/wcn36xx/parameters/listen_interval 2>/dev/null || echo n/a)"
|
printf 'wcn36xx_param=%s\n' "$(cat /sys/module/wcn36xx/parameters/listen_interval 2>/dev/null || echo n/a)"
|
||||||
printf 'modem_drx_now=%s\n' "$(timeout 6 /usr/libexec/msm-modem-uim-selection at auto 'AT$QCDRX?' 2>/dev/null | tr -d '\r' | grep -o '\$QCDRX: [0-9]*' | head -n 1)"
|
printf 'wcn36xx_screen_off_offload=%s\n' "$(cat /sys/module/wcn36xx/parameters/screen_off_offload 2>/dev/null || echo n/a)"
|
||||||
|
drx_summary="$(timeout 8 /usr/libexec/msm-modem-uim-selection at all 'AT$QCDRX?' 2>/dev/null | awk '
|
||||||
|
/^\[wwan0at/ { gsub(/[\[\]]/, "", $0); p=$0; next }
|
||||||
|
/\$QCDRX:/ { gsub(/^[[:space:]]+|[[:space:]]+$/, "", $0); if (p != "") out = (out ? out " " : "") p ":" $0 }
|
||||||
|
END { print out }
|
||||||
|
')"
|
||||||
|
printf 'modem_drx_now=%s\n' "${drx_summary:-n/a}"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
boot|apply) boot ;;
|
boot) boot ;;
|
||||||
|
apply) apply_now ;;
|
||||||
|
modem-ready) modem_ready ;;
|
||||||
screenoff) screenoff ;;
|
screenoff) screenoff ;;
|
||||||
screenon) screenon ;;
|
screenon) screenon ;;
|
||||||
_park) park ;;
|
_park) park ;;
|
||||||
unpark) unpark ;;
|
unpark) unpark ;;
|
||||||
status) status ;;
|
status) status ;;
|
||||||
*)
|
*)
|
||||||
printf 'Usage: %s [boot|apply|screenoff|screenon|unpark|status]\n' "${0##*/}" >&2
|
printf 'Usage: %s [boot|apply|modem-ready|screenoff|screenon|unpark|status]\n' "${0##*/}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -745,6 +745,9 @@ enable_and_register_modem() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
timeout 4 mmcli -m any --3gpp-register-home >/dev/null 2>&1 || true
|
timeout 4 mmcli -m any --3gpp-register-home >/dev/null 2>&1 || true
|
||||||
|
if [ -x /usr/bin/bananarchy-power-policy.sh ]; then
|
||||||
|
/usr/bin/bananarchy-power-policy.sh modem-ready >/dev/null 2>&1 || true
|
||||||
|
fi
|
||||||
if command -v sxmo_hook_statusbar.sh >/dev/null 2>&1; then
|
if command -v sxmo_hook_statusbar.sh >/dev/null 2>&1; then
|
||||||
DISPLAY="${DISPLAY:-:0}" timeout 3 sxmo_hook_statusbar.sh modem >/dev/null 2>&1 || true
|
DISPLAY="${DISPLAY:-:0}" timeout 3 sxmo_hook_statusbar.sh modem >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
@@ -1320,6 +1323,46 @@ PY
|
|||||||
echo "ERROR: Empty AT command"
|
echo "ERROR: Empty AT command"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
run_at_dev() {
|
||||||
|
timeout 3 sh -c '
|
||||||
|
dev="$1"
|
||||||
|
cmd="$2"
|
||||||
|
tmpf="/tmp/at_resp_$$.txt"
|
||||||
|
rm -f "$tmpf"
|
||||||
|
cat "$dev" > "$tmpf" 2>/dev/null &
|
||||||
|
rpid=$!
|
||||||
|
sleep 0.04
|
||||||
|
printf "%s\r\n" "$cmd" > "$dev" 2>/dev/null || true
|
||||||
|
i=0
|
||||||
|
while [ "$i" -lt 16 ]; do
|
||||||
|
if grep -qE "(^|[[:space:]])(OK|ERROR|\+CME ERROR|\+CMS ERROR)([[:space:]]|$)" "$tmpf" 2>/dev/null; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 0.08
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
|
kill "$rpid" 2>/dev/null || true
|
||||||
|
wait "$rpid" 2>/dev/null || true
|
||||||
|
tr -d "\r" < "$tmpf" 2>/dev/null || true
|
||||||
|
rm -f "$tmpf"
|
||||||
|
' _ "$1" "$2" 2>/dev/null | sed '/^[[:space:]]*$/d' || true
|
||||||
|
}
|
||||||
|
if [ "$port" = "all" ]; then
|
||||||
|
got_any=0
|
||||||
|
for dev in /dev/wwan0at*; do
|
||||||
|
[ -c "$dev" ] || continue
|
||||||
|
resp="$(run_at_dev "$dev" "$at_cmd")"
|
||||||
|
if [ -n "$resp" ]; then
|
||||||
|
got_any=1
|
||||||
|
printf '[%s]\n%s\n' "${dev#/dev/}" "$resp"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "$got_any" -eq 1 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "ERROR: No response from modem AT channel"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
resp=""
|
resp=""
|
||||||
if [ "$PREFERRED_SIM_SLOT" = "2" ]; then
|
if [ "$PREFERRED_SIM_SLOT" = "2" ]; then
|
||||||
at_candidates="$port /dev/wwan0at1 /dev/wwan0at0"
|
at_candidates="$port /dev/wwan0at1 /dev/wwan0at0"
|
||||||
@@ -1328,10 +1371,10 @@ PY
|
|||||||
fi
|
fi
|
||||||
for candidate in $at_candidates; do
|
for candidate in $at_candidates; do
|
||||||
case "$candidate" in
|
case "$candidate" in
|
||||||
wwan0at0|wwan0at1)
|
wwan0at[0-9]*)
|
||||||
dev="/dev/$candidate"
|
dev="/dev/$candidate"
|
||||||
;;
|
;;
|
||||||
/dev/wwan0at0|/dev/wwan0at1)
|
/dev/wwan0at[0-9]*)
|
||||||
dev="$candidate"
|
dev="$candidate"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -1339,28 +1382,7 @@ PY
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$dev" ] && [ -c "$dev" ]; then
|
if [ -n "$dev" ] && [ -c "$dev" ]; then
|
||||||
resp="$(timeout 3 sh -c '
|
resp="$(run_at_dev "$dev" "$at_cmd")"
|
||||||
dev="$1"
|
|
||||||
cmd="$2"
|
|
||||||
tmpf="/tmp/at_resp_$$.txt"
|
|
||||||
rm -f "$tmpf"
|
|
||||||
cat "$dev" > "$tmpf" 2>/dev/null &
|
|
||||||
rpid=$!
|
|
||||||
sleep 0.04
|
|
||||||
printf "%s\r\n" "$cmd" > "$dev" 2>/dev/null || true
|
|
||||||
i=0
|
|
||||||
while [ "$i" -lt 16 ]; do
|
|
||||||
if grep -qE "(^|[[:space:]])(OK|ERROR|\+CME ERROR|\+CMS ERROR)([[:space:]]|$)" "$tmpf" 2>/dev/null; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 0.08
|
|
||||||
i=$((i + 1))
|
|
||||||
done
|
|
||||||
kill "$rpid" 2>/dev/null || true
|
|
||||||
wait "$rpid" 2>/dev/null || true
|
|
||||||
tr -d "\r" < "$tmpf" 2>/dev/null || true
|
|
||||||
rm -f "$tmpf"
|
|
||||||
' _ "$dev" "$at_cmd" 2>/dev/null | sed '/^[[:space:]]*$/d' || true)"
|
|
||||||
if [ -n "$resp" ]; then
|
if [ -n "$resp" ]; then
|
||||||
printf "%s\n" "$resp"
|
printf "%s\n" "$resp"
|
||||||
exit 0
|
exit 0
|
||||||
@@ -1370,10 +1392,12 @@ PY
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
mm_out="$(mmcli -m any --command="$at_cmd" 2>&1 || true)"
|
if [ "$port" = "auto" ]; then
|
||||||
if [ -n "$mm_out" ]; then
|
mm_out="$(mmcli -m any --command="$at_cmd" 2>/dev/null || true)"
|
||||||
printf "%s\n" "$mm_out" | sed "s/^response: '\(.*\)'$/\1/"
|
if [ -n "$mm_out" ]; then
|
||||||
exit 0
|
printf "%s\n" "$mm_out" | sed "s/^response: '\(.*\)'$/\1/"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "ERROR: No response from modem AT channel"
|
echo "ERROR: No response from modem AT channel"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -3135,6 +3159,24 @@ while True:
|
|||||||
w_txn = poll_stored_sms(ws, wms_addr, w_txn, sec_slot)
|
w_txn = poll_stored_sms(ws, wms_addr, w_txn, sec_slot)
|
||||||
last_poll = time.time()
|
last_poll = time.time()
|
||||||
|
|
||||||
|
def screen_is_idle():
|
||||||
|
if os.path.exists("/tmp/bananarchy_screen_locked") or \
|
||||||
|
os.path.exists("/run/bananarchy/cover-backlight"):
|
||||||
|
return True
|
||||||
|
try:
|
||||||
|
with open("/sys/class/backlight/backlight/bl_power", "r") as f:
|
||||||
|
if f.read().strip() != "0":
|
||||||
|
return True
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
with open("/sys/class/backlight/backlight/brightness", "r") as f:
|
||||||
|
if int(f.read().strip()) <= 0:
|
||||||
|
return True
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
if pending_inds:
|
if pending_inds:
|
||||||
@@ -3143,7 +3185,7 @@ while True:
|
|||||||
poll_timeout = 1.0
|
poll_timeout = 1.0
|
||||||
elif multipart_buf:
|
elif multipart_buf:
|
||||||
poll_timeout = 2.0
|
poll_timeout = 2.0
|
||||||
elif os.path.exists("/tmp/bananarchy_screen_locked"):
|
elif screen_is_idle():
|
||||||
poll_timeout = None
|
poll_timeout = None
|
||||||
else:
|
else:
|
||||||
poll_timeout = 1800.0
|
poll_timeout = 1800.0
|
||||||
@@ -3211,7 +3253,7 @@ while True:
|
|||||||
if full_tlvs:
|
if full_tlvs:
|
||||||
sync_sub1_calls(parse_call_info(full_tlvs), sec_slot, vs, voice_addr)
|
sync_sub1_calls(parse_call_info(full_tlvs), sec_slot, vs, voice_addr)
|
||||||
|
|
||||||
if not os.path.exists("/tmp/bananarchy_screen_locked") and time.time() - last_poll >= 1800.0:
|
if not screen_is_idle() and time.time() - last_poll >= 1800.0:
|
||||||
w_txn = poll_stored_sms(ws, wms_addr, w_txn, sec_slot)
|
w_txn = poll_stored_sms(ws, wms_addr, w_txn, sec_slot)
|
||||||
last_poll = time.time()
|
last_poll = time.time()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@@ -88,6 +88,10 @@ case "$newstate" in
|
|||||||
# kill the pin-entry dmenu if still open
|
# kill the pin-entry dmenu if still open
|
||||||
pkill -f sxmo_unlocksim.sh 2>/dev/null || true
|
pkill -f sxmo_unlocksim.sh 2>/dev/null || true
|
||||||
|
|
||||||
|
if [ -x /usr/bin/bananarchy-power-policy.sh ]; then
|
||||||
|
/usr/bin/bananarchy-power-policy.sh modem-ready >/dev/null 2>&1 &
|
||||||
|
fi
|
||||||
|
|
||||||
sxmo_modem.sh checkforfinishedcalls
|
sxmo_modem.sh checkforfinishedcalls
|
||||||
sxmo_modem.sh checkforincomingcalls
|
sxmo_modem.sh checkforincomingcalls
|
||||||
sxmo_modem.sh checkfornewtexts
|
sxmo_modem.sh checkfornewtexts
|
||||||
|
|||||||
@@ -0,0 +1,509 @@
|
|||||||
|
--- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
|
||||||
|
+++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
|
||||||
|
@@ -254,8 +254,36 @@
|
||||||
|
drm_dev_exit(idx);
|
||||||
|
}
|
||||||
|
|
||||||
|
+static void panel_mipi_dbi_disable(struct drm_simple_display_pipe *pipe)
|
||||||
|
+{
|
||||||
|
+ struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(pipe->crtc.dev);
|
||||||
|
+ struct mipi_dbi *dbi = &dbidev->dbi;
|
||||||
|
+ int idx;
|
||||||
|
+
|
||||||
|
+ if (dbidev->backlight)
|
||||||
|
+ backlight_disable(dbidev->backlight);
|
||||||
|
+
|
||||||
|
+ if (drm_dev_enter(pipe->crtc.dev, &idx)) {
|
||||||
|
+ mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF);
|
||||||
|
+ msleep(20);
|
||||||
|
+ mipi_dbi_command(dbi, MIPI_DCS_ENTER_SLEEP_MODE);
|
||||||
|
+ msleep(50);
|
||||||
|
+ drm_dev_exit(idx);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ mipi_dbi_pipe_disable(pipe);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
static const struct drm_simple_display_pipe_funcs panel_mipi_dbi_pipe_funcs = {
|
||||||
|
- DRM_MIPI_DBI_SIMPLE_DISPLAY_PIPE_FUNCS(panel_mipi_dbi_enable),
|
||||||
|
+ .mode_valid = mipi_dbi_pipe_mode_valid,
|
||||||
|
+ .enable = panel_mipi_dbi_enable,
|
||||||
|
+ .disable = panel_mipi_dbi_disable,
|
||||||
|
+ .update = mipi_dbi_pipe_update,
|
||||||
|
+ .begin_fb_access = mipi_dbi_pipe_begin_fb_access,
|
||||||
|
+ .end_fb_access = mipi_dbi_pipe_end_fb_access,
|
||||||
|
+ .reset_plane = mipi_dbi_pipe_reset_plane,
|
||||||
|
+ .duplicate_plane_state = mipi_dbi_pipe_duplicate_plane_state,
|
||||||
|
+ .destroy_plane_state = mipi_dbi_pipe_destroy_plane_state,
|
||||||
|
};
|
||||||
|
|
||||||
|
DEFINE_DRM_GEM_DMA_FOPS(panel_mipi_dbi_fops);
|
||||||
|
--- a/drivers/interconnect/qcom/icc-rpm.c
|
||||||
|
+++ b/drivers/interconnect/qcom/icc-rpm.c
|
||||||
|
@@ -511,6 +511,8 @@
|
||||||
|
qp->keep_alive = desc->keep_alive;
|
||||||
|
qp->type = desc->type;
|
||||||
|
qp->qos_offset = desc->qos_offset;
|
||||||
|
+ qp->bus_clk_rate[QCOM_SMD_RPM_ACTIVE_STATE] = U32_MAX;
|
||||||
|
+ qp->bus_clk_rate[QCOM_SMD_RPM_SLEEP_STATE] = U32_MAX;
|
||||||
|
|
||||||
|
if (desc->regmap_cfg) {
|
||||||
|
struct resource *res;
|
||||||
|
--- a/drivers/interconnect/qcom/msm8909.c
|
||||||
|
+++ b/drivers/interconnect/qcom/msm8909.c
|
||||||
|
@@ -1194,6 +1194,7 @@
|
||||||
|
.regmap_cfg = &msm8909_bimc_regmap_config,
|
||||||
|
.qos_offset = 0x8000,
|
||||||
|
.ab_coeff = 154,
|
||||||
|
+ .keep_alive = true,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct qcom_icc_node * const msm8909_pcnoc_nodes[] = {
|
||||||
|
@@ -1261,6 +1262,7 @@
|
||||||
|
.bus_clk_desc = &bus_0_clk,
|
||||||
|
.regmap_cfg = &msm8909_pcnoc_regmap_config,
|
||||||
|
.qos_offset = 0x7000,
|
||||||
|
+ .keep_alive = true,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct qcom_icc_node * const msm8909_snoc_nodes[] = {
|
||||||
|
@@ -1304,6 +1306,7 @@
|
||||||
|
.bus_clk_desc = &bus_1_clk,
|
||||||
|
.regmap_cfg = &msm8909_snoc_regmap_config,
|
||||||
|
.qos_offset = 0x7000,
|
||||||
|
+ .keep_alive = true,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct of_device_id msm8909_noc_of_match[] = {
|
||||||
|
--- a/drivers/net/wireless/ath/wcn36xx/main.c
|
||||||
|
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
|
||||||
|
@@ -39,6 +39,44 @@
|
||||||
|
module_param(listen_interval, uint, 0644);
|
||||||
|
MODULE_PARM_DESC(listen_interval, "Beacon listen interval (1-10, default 5)");
|
||||||
|
|
||||||
|
+static DEFINE_MUTEX(wcn36xx_dev_list_mutex);
|
||||||
|
+static LIST_HEAD(wcn36xx_dev_list);
|
||||||
|
+static bool screen_off_offload;
|
||||||
|
+
|
||||||
|
+static void wcn36xx_sync_screen_off_offload(struct wcn36xx *wcn, bool enable);
|
||||||
|
+
|
||||||
|
+static int wcn36xx_screen_off_offload_set(const char *val,
|
||||||
|
+ const struct kernel_param *kp)
|
||||||
|
+{
|
||||||
|
+ struct wcn36xx *wcn;
|
||||||
|
+ bool enable;
|
||||||
|
+ int ret;
|
||||||
|
+
|
||||||
|
+ ret = kstrtobool(val, &enable);
|
||||||
|
+ if (ret)
|
||||||
|
+ return ret;
|
||||||
|
+
|
||||||
|
+ mutex_lock(&wcn36xx_dev_list_mutex);
|
||||||
|
+ WRITE_ONCE(screen_off_offload, enable);
|
||||||
|
+ list_for_each_entry(wcn, &wcn36xx_dev_list, dev_node) {
|
||||||
|
+ mutex_lock(&wcn->conf_mutex);
|
||||||
|
+ wcn36xx_sync_screen_off_offload(wcn, enable);
|
||||||
|
+ mutex_unlock(&wcn->conf_mutex);
|
||||||
|
+ }
|
||||||
|
+ mutex_unlock(&wcn36xx_dev_list_mutex);
|
||||||
|
+
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static const struct kernel_param_ops wcn36xx_screen_off_offload_ops = {
|
||||||
|
+ .set = wcn36xx_screen_off_offload_set,
|
||||||
|
+ .get = param_get_bool,
|
||||||
|
+};
|
||||||
|
+module_param_cb(screen_off_offload, &wcn36xx_screen_off_offload_ops,
|
||||||
|
+ &screen_off_offload, 0644);
|
||||||
|
+MODULE_PARM_DESC(screen_off_offload,
|
||||||
|
+ "Enable WCN36xx ARP/NS/GTK and DTIM offloads while screen is off");
|
||||||
|
+
|
||||||
|
#define CHAN2G(_freq, _idx) { \
|
||||||
|
.band = NL80211_BAND_2GHZ, \
|
||||||
|
.center_freq = (_freq), \
|
||||||
|
@@ -266,7 +304,11 @@
|
||||||
|
|
||||||
|
wcn36xx_debugfs_init(wcn);
|
||||||
|
|
||||||
|
+ mutex_lock(&wcn->conf_mutex);
|
||||||
|
INIT_LIST_HEAD(&wcn->vif_list);
|
||||||
|
+ wcn->started = true;
|
||||||
|
+ wcn->power_params_offload = false;
|
||||||
|
+ mutex_unlock(&wcn->conf_mutex);
|
||||||
|
spin_lock_init(&wcn->dxe_lock);
|
||||||
|
spin_lock_init(&wcn->survey_lock);
|
||||||
|
|
||||||
|
@@ -301,6 +343,11 @@
|
||||||
|
wcn->scan_req = NULL;
|
||||||
|
mutex_unlock(&wcn->scan_lock);
|
||||||
|
|
||||||
|
+ mutex_lock(&wcn->conf_mutex);
|
||||||
|
+ wcn->started = false;
|
||||||
|
+ wcn->power_params_offload = false;
|
||||||
|
+ mutex_unlock(&wcn->conf_mutex);
|
||||||
|
+
|
||||||
|
wcn36xx_debugfs_exit(wcn);
|
||||||
|
wcn36xx_smd_stop(wcn);
|
||||||
|
wcn36xx_dxe_deinit(wcn);
|
||||||
|
@@ -841,6 +888,11 @@
|
||||||
|
bss_conf->bssid, false);
|
||||||
|
} else {
|
||||||
|
vif_priv->is_joining = false;
|
||||||
|
+ vif_priv->arp_offload_active = false;
|
||||||
|
+ vif_priv->ns_offload_active = false;
|
||||||
|
+ vif_priv->gtk_offload_active = false;
|
||||||
|
+ vif_priv->rekey_data.valid = false;
|
||||||
|
+ wcn->power_params_offload = false;
|
||||||
|
wcn36xx_smd_delete_bss(wcn, vif);
|
||||||
|
wcn36xx_smd_set_link_st(wcn, bss_conf->bssid, vif->addr,
|
||||||
|
WCN36XX_HAL_LINK_IDLE_STATE);
|
||||||
|
@@ -905,6 +957,8 @@
|
||||||
|
if (vif->type == NL80211_IFTYPE_STATION)
|
||||||
|
wcn36xx_smd_add_beacon_filter(wcn, vif);
|
||||||
|
wcn36xx_enable_keep_alive_null_packet(wcn, vif);
|
||||||
|
+ if (READ_ONCE(screen_off_offload))
|
||||||
|
+ wcn36xx_sync_screen_off_offload(wcn, true);
|
||||||
|
} else {
|
||||||
|
wcn36xx_dbg(WCN36XX_DBG_MAC,
|
||||||
|
"disassociated bss %pM vif %pM AID=%d\n",
|
||||||
|
@@ -912,6 +966,11 @@
|
||||||
|
vif->addr,
|
||||||
|
vif->cfg.aid);
|
||||||
|
vif_priv->sta_assoc = false;
|
||||||
|
+ vif_priv->arp_offload_active = false;
|
||||||
|
+ vif_priv->ns_offload_active = false;
|
||||||
|
+ vif_priv->gtk_offload_active = false;
|
||||||
|
+ vif_priv->rekey_data.valid = false;
|
||||||
|
+ wcn->power_params_offload = false;
|
||||||
|
wcn36xx_smd_set_link_st(wcn,
|
||||||
|
bss_conf->bssid,
|
||||||
|
vif->addr,
|
||||||
|
@@ -919,6 +978,15 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (changed & BSS_CHANGED_ARP_FILTER) {
|
||||||
|
+ if (vif_priv->arp_offload_active) {
|
||||||
|
+ wcn36xx_smd_arp_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->arp_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+ if (READ_ONCE(screen_off_offload))
|
||||||
|
+ wcn36xx_sync_screen_off_offload(wcn, true);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (changed & BSS_CHANGED_AP_PROBE_RESP) {
|
||||||
|
wcn36xx_dbg(WCN36XX_DBG_MAC, "mac bss changed ap probe resp\n");
|
||||||
|
skb = ieee80211_proberesp_get(hw, vif);
|
||||||
|
@@ -1079,8 +1147,6 @@
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#ifdef CONFIG_PM
|
||||||
|
-
|
||||||
|
static struct ieee80211_vif *wcn36xx_get_first_assoc_vif(struct wcn36xx *wcn)
|
||||||
|
{
|
||||||
|
struct wcn36xx_vif *vif_priv = NULL;
|
||||||
|
@@ -1095,6 +1161,72 @@
|
||||||
|
return vif;
|
||||||
|
}
|
||||||
|
|
||||||
|
+static void wcn36xx_sync_screen_off_offload(struct wcn36xx *wcn, bool enable)
|
||||||
|
+{
|
||||||
|
+ struct ieee80211_vif *vif;
|
||||||
|
+ struct wcn36xx_vif *vif_priv;
|
||||||
|
+
|
||||||
|
+ wcn->hw->conf.dynamic_ps_timeout = enable ? 40 : 200;
|
||||||
|
+ if (!wcn->started)
|
||||||
|
+ return;
|
||||||
|
+
|
||||||
|
+ if (!enable && wcn->power_params_offload) {
|
||||||
|
+ wcn36xx_smd_set_power_params(wcn, false);
|
||||||
|
+ wcn->power_params_offload = false;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ vif = wcn36xx_get_first_assoc_vif(wcn);
|
||||||
|
+ if (!vif)
|
||||||
|
+ return;
|
||||||
|
+
|
||||||
|
+ vif_priv = wcn36xx_vif_to_priv(vif);
|
||||||
|
+ if (vif_priv->bss_index == WCN36XX_HAL_BSS_INVALID_IDX)
|
||||||
|
+ return;
|
||||||
|
+
|
||||||
|
+ if (enable) {
|
||||||
|
+ 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;
|
||||||
|
+ } else if (vif->cfg.arp_addr_cnt != 1 && vif_priv->arp_offload_active) {
|
||||||
|
+ wcn36xx_smd_arp_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->arp_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (!vif_priv->ns_offload_active) {
|
||||||
|
+ if (!wcn36xx_smd_ipv6_ns_offload(wcn, vif, true))
|
||||||
|
+ vif_priv->ns_offload_active = true;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (vif_priv->rekey_data.valid && !vif_priv->gtk_offload_active) {
|
||||||
|
+ if (!wcn36xx_smd_gtk_offload(wcn, vif, true))
|
||||||
|
+ vif_priv->gtk_offload_active = true;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (!wcn->power_params_offload) {
|
||||||
|
+ if (!wcn36xx_smd_set_power_params(wcn, true))
|
||||||
|
+ wcn->power_params_offload = true;
|
||||||
|
+ }
|
||||||
|
+ } else {
|
||||||
|
+ if (vif_priv->gtk_offload_active) {
|
||||||
|
+ wcn36xx_smd_gtk_offload_get_info(wcn, vif);
|
||||||
|
+ wcn36xx_smd_gtk_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->gtk_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (vif_priv->ns_offload_active) {
|
||||||
|
+ wcn36xx_smd_ipv6_ns_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->ns_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (vif_priv->arp_offload_active) {
|
||||||
|
+ wcn36xx_smd_arp_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->arp_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+#ifdef CONFIG_PM
|
||||||
|
+
|
||||||
|
static int wcn36xx_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wow)
|
||||||
|
{
|
||||||
|
struct wcn36xx *wcn = hw->priv;
|
||||||
|
@@ -1173,6 +1305,13 @@
|
||||||
|
vif_priv->rekey_data.replay_ctr =
|
||||||
|
cpu_to_le64(be64_to_cpup((__be64 *)data->replay_ctr));
|
||||||
|
vif_priv->rekey_data.valid = true;
|
||||||
|
+ if (READ_ONCE(screen_off_offload)) {
|
||||||
|
+ if (vif_priv->gtk_offload_active) {
|
||||||
|
+ wcn36xx_smd_gtk_offload(wcn, vif, false);
|
||||||
|
+ vif_priv->gtk_offload_active = false;
|
||||||
|
+ }
|
||||||
|
+ wcn36xx_sync_screen_off_offload(wcn, true);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
mutex_unlock(&wcn->conf_mutex);
|
||||||
|
}
|
||||||
|
@@ -1459,15 +1598,15 @@
|
||||||
|
wcn->hw->wiphy->wowlan = &wowlan_support;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
- wcn->hw->max_listen_interval = 200;
|
||||||
|
- wcn->hw->conf.dynamic_ps_timeout = 200;
|
||||||
|
- wcn->hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
|
||||||
|
- /* Configurable beacon listen interval: with beacon filtering + BMPS
|
||||||
|
- * this lowers the idle RX wakeup floor at the cost of inbound latency. */
|
||||||
|
+ /* Clamp and apply listen_interval to max_listen_interval as well so
|
||||||
|
+ * ieee80211_register_hw() does not clobber conf.listen_interval back
|
||||||
|
+ * to 200 before association. */
|
||||||
|
+ if (listen_interval < 1 || listen_interval > 10)
|
||||||
|
+ listen_interval = 5;
|
||||||
|
+ wcn->hw->max_listen_interval = listen_interval;
|
||||||
|
wcn->hw->conf.listen_interval = listen_interval;
|
||||||
|
- if (wcn->hw->conf.listen_interval < 1 ||
|
||||||
|
- wcn->hw->conf.listen_interval > 10)
|
||||||
|
- wcn->hw->conf.listen_interval = 5;
|
||||||
|
+ wcn->hw->conf.dynamic_ps_timeout = READ_ONCE(screen_off_offload) ? 40 : 200;
|
||||||
|
+ wcn->hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
|
||||||
|
|
||||||
|
wcn->hw->queues = 4;
|
||||||
|
|
||||||
|
@@ -1592,6 +1731,8 @@
|
||||||
|
wcn->hw = hw;
|
||||||
|
wcn->dev = &pdev->dev;
|
||||||
|
wcn->first_boot = true;
|
||||||
|
+ INIT_LIST_HEAD(&wcn->vif_list);
|
||||||
|
+ INIT_LIST_HEAD(&wcn->dev_node);
|
||||||
|
mutex_init(&wcn->conf_mutex);
|
||||||
|
mutex_init(&wcn->hal_mutex);
|
||||||
|
mutex_init(&wcn->scan_lock);
|
||||||
|
@@ -1649,6 +1790,10 @@
|
||||||
|
if (ret)
|
||||||
|
goto out_unmap;
|
||||||
|
|
||||||
|
+ mutex_lock(&wcn36xx_dev_list_mutex);
|
||||||
|
+ list_add_tail(&wcn->dev_node, &wcn36xx_dev_list);
|
||||||
|
+ mutex_unlock(&wcn36xx_dev_list_mutex);
|
||||||
|
+
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
out_unmap:
|
||||||
|
@@ -1668,6 +1813,10 @@
|
||||||
|
struct wcn36xx *wcn = hw->priv;
|
||||||
|
wcn36xx_dbg(WCN36XX_DBG_MAC, "platform remove\n");
|
||||||
|
|
||||||
|
+ mutex_lock(&wcn36xx_dev_list_mutex);
|
||||||
|
+ list_del_init(&wcn->dev_node);
|
||||||
|
+ mutex_unlock(&wcn36xx_dev_list_mutex);
|
||||||
|
+
|
||||||
|
release_firmware(wcn->nv);
|
||||||
|
|
||||||
|
ieee80211_unregister_hw(hw);
|
||||||
|
--- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h
|
||||||
|
+++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h
|
||||||
|
@@ -153,6 +153,10 @@
|
||||||
|
bool valid;
|
||||||
|
} rekey_data;
|
||||||
|
|
||||||
|
+ bool arp_offload_active;
|
||||||
|
+ bool ns_offload_active;
|
||||||
|
+ bool gtk_offload_active;
|
||||||
|
+
|
||||||
|
struct list_head sta_list;
|
||||||
|
|
||||||
|
int bmps_fail_ct;
|
||||||
|
@@ -210,6 +214,9 @@
|
||||||
|
struct ieee80211_hw *hw;
|
||||||
|
struct device *dev;
|
||||||
|
struct list_head vif_list;
|
||||||
|
+ struct list_head dev_node;
|
||||||
|
+ bool started;
|
||||||
|
+ bool power_params_offload;
|
||||||
|
|
||||||
|
const char *nv_file;
|
||||||
|
const struct firmware *nv;
|
||||||
|
--- a/drivers/usb/chipidea/ci_hdrc_msm.c
|
||||||
|
+++ b/drivers/usb/chipidea/ci_hdrc_msm.c
|
||||||
|
@@ -34,6 +34,7 @@
|
||||||
|
#define HS_PHY_POR_ASSERT BIT(0)
|
||||||
|
|
||||||
|
struct ci_hdrc_msm {
|
||||||
|
+ struct device *dev;
|
||||||
|
struct platform_device *ci;
|
||||||
|
struct clk *core_clk;
|
||||||
|
struct clk *iface_clk;
|
||||||
|
@@ -51,6 +52,11 @@
|
||||||
|
struct ci_hdrc_msm *ci_msm = container_of(r, struct ci_hdrc_msm, rcdev);
|
||||||
|
void __iomem *addr = ci_msm->base;
|
||||||
|
u32 val;
|
||||||
|
+ int ret;
|
||||||
|
+
|
||||||
|
+ ret = pm_runtime_resume_and_get(ci_msm->dev);
|
||||||
|
+ if (ret < 0)
|
||||||
|
+ return ret;
|
||||||
|
|
||||||
|
if (id)
|
||||||
|
addr += HS_PHY_SEC_CTRL;
|
||||||
|
@@ -69,9 +75,19 @@
|
||||||
|
val &= ~HS_PHY_POR_ASSERT;
|
||||||
|
writel(val, addr);
|
||||||
|
|
||||||
|
+ pm_runtime_put(ci_msm->dev);
|
||||||
|
+
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+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.
|
||||||
|
+ */
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
static const struct reset_control_ops ci_hdrc_msm_reset_ops = {
|
||||||
|
.reset = ci_hdrc_msm_por_reset,
|
||||||
|
};
|
||||||
|
@@ -183,14 +199,17 @@
|
||||||
|
ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL);
|
||||||
|
if (!ci)
|
||||||
|
return -ENOMEM;
|
||||||
|
+ ci->dev = &pdev->dev;
|
||||||
|
platform_set_drvdata(pdev, ci);
|
||||||
|
|
||||||
|
ci->pdata.name = "ci_hdrc_msm";
|
||||||
|
ci->pdata.capoffset = DEF_CAPOFFSET;
|
||||||
|
ci->pdata.flags = CI_HDRC_REGS_SHARED | CI_HDRC_DISABLE_STREAMING |
|
||||||
|
CI_HDRC_OVERRIDE_AHB_BURST |
|
||||||
|
- CI_HDRC_OVERRIDE_PHY_CONTROL;
|
||||||
|
+ CI_HDRC_OVERRIDE_PHY_CONTROL |
|
||||||
|
+ CI_HDRC_SUPPORTS_RUNTIME_PM;
|
||||||
|
ci->pdata.notify_event = ci_hdrc_msm_notify_event;
|
||||||
|
+ ci->pdata.enter_lpm = ci_hdrc_msm_enter_lpm;
|
||||||
|
|
||||||
|
reset = devm_reset_control_get(&pdev->dev, "core");
|
||||||
|
if (IS_ERR(reset))
|
||||||
|
@@ -262,7 +281,6 @@
|
||||||
|
ci->ci = plat_ci;
|
||||||
|
|
||||||
|
pm_runtime_set_active(&pdev->dev);
|
||||||
|
- pm_runtime_no_callbacks(&pdev->dev);
|
||||||
|
pm_runtime_enable(&pdev->dev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -278,12 +296,47 @@
|
||||||
|
{
|
||||||
|
struct ci_hdrc_msm *ci = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
- pm_runtime_disable(&pdev->dev);
|
||||||
|
ci_hdrc_remove_device(ci->ci);
|
||||||
|
+ pm_runtime_get_sync(&pdev->dev);
|
||||||
|
+ pm_runtime_disable(&pdev->dev);
|
||||||
|
+ pm_runtime_put_noidle(&pdev->dev);
|
||||||
|
clk_disable_unprepare(ci->iface_clk);
|
||||||
|
clk_disable_unprepare(ci->core_clk);
|
||||||
|
}
|
||||||
|
|
||||||
|
+static int ci_hdrc_msm_runtime_suspend(struct device *dev)
|
||||||
|
+{
|
||||||
|
+ struct ci_hdrc_msm *ci = dev_get_drvdata(dev);
|
||||||
|
+
|
||||||
|
+ clk_disable_unprepare(ci->iface_clk);
|
||||||
|
+ clk_disable_unprepare(ci->core_clk);
|
||||||
|
+
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static int ci_hdrc_msm_runtime_resume(struct device *dev)
|
||||||
|
+{
|
||||||
|
+ struct ci_hdrc_msm *ci = dev_get_drvdata(dev);
|
||||||
|
+ int ret;
|
||||||
|
+
|
||||||
|
+ ret = clk_prepare_enable(ci->core_clk);
|
||||||
|
+ if (ret)
|
||||||
|
+ return ret;
|
||||||
|
+
|
||||||
|
+ ret = clk_prepare_enable(ci->iface_clk);
|
||||||
|
+ if (ret) {
|
||||||
|
+ clk_disable_unprepare(ci->core_clk);
|
||||||
|
+ return ret;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static const struct dev_pm_ops ci_hdrc_msm_pm_ops = {
|
||||||
|
+ RUNTIME_PM_OPS(ci_hdrc_msm_runtime_suspend, ci_hdrc_msm_runtime_resume,
|
||||||
|
+ NULL)
|
||||||
|
+};
|
||||||
|
+
|
||||||
|
static const struct of_device_id msm_ci_dt_match[] = {
|
||||||
|
{ .compatible = "qcom,ci-hdrc", },
|
||||||
|
{ }
|
||||||
|
@@ -295,6 +348,7 @@
|
||||||
|
.remove_new = ci_hdrc_msm_remove,
|
||||||
|
.driver = {
|
||||||
|
.name = "msm_hsusb",
|
||||||
|
+ .pm = pm_ptr(&ci_hdrc_msm_pm_ops),
|
||||||
|
.of_match_table = msm_ci_dt_match,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
--- a/drivers/usb/chipidea/ulpi.c
|
||||||
|
+++ b/drivers/usb/chipidea/ulpi.c
|
||||||
|
@@ -95,7 +95,8 @@
|
||||||
|
{
|
||||||
|
int cnt = 100000;
|
||||||
|
|
||||||
|
- if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI)
|
||||||
|
+ if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI ||
|
||||||
|
+ (ci->platdata->flags & CI_HDRC_OVERRIDE_PHY_CONTROL))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
while (cnt-- > 0) {
|
||||||
@@ -6085,7 +6085,21 @@ CONFIG_PM_OPP=y
|
|||||||
# CONFIG_SIOX is not set
|
# CONFIG_SIOX is not set
|
||||||
# CONFIG_SLIMBUS is not set
|
# CONFIG_SLIMBUS is not set
|
||||||
CONFIG_INTERCONNECT=y
|
CONFIG_INTERCONNECT=y
|
||||||
# CONFIG_INTERCONNECT_QCOM is not set
|
CONFIG_INTERCONNECT_QCOM=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_MSM8909=y
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8916 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8937 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8939 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8953 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8974 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8976 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8996 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_OSM_L3 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCM2290 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCS404 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SDM660 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SM6115 is not set
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SMD_RPM=y
|
||||||
CONFIG_INTERCONNECT_CLK=y
|
CONFIG_INTERCONNECT_CLK=y
|
||||||
# CONFIG_COUNTER is not set
|
# CONFIG_COUNTER is not set
|
||||||
# CONFIG_MOST is not set
|
# CONFIG_MOST is not set
|
||||||
|
|||||||
+52891
-52693
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.
@@ -6085,7 +6085,21 @@ CONFIG_PM_OPP=y
|
|||||||
# CONFIG_SIOX is not set
|
# CONFIG_SIOX is not set
|
||||||
# CONFIG_SLIMBUS is not set
|
# CONFIG_SLIMBUS is not set
|
||||||
CONFIG_INTERCONNECT=y
|
CONFIG_INTERCONNECT=y
|
||||||
# CONFIG_INTERCONNECT_QCOM is not set
|
CONFIG_INTERCONNECT_QCOM=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_MSM8909=y
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8916 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8937 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8939 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8953 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8974 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8976 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_MSM8996 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_OSM_L3 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCM2290 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_QCS404 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SDM660 is not set
|
||||||
|
# CONFIG_INTERCONNECT_QCOM_SM6115 is not set
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SMD_RPM=y
|
||||||
CONFIG_INTERCONNECT_CLK=y
|
CONFIG_INTERCONNECT_CLK=y
|
||||||
# CONFIG_COUNTER is not set
|
# CONFIG_COUNTER is not set
|
||||||
# CONFIG_MOST is not set
|
# CONFIG_MOST is not set
|
||||||
|
|||||||
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" ] || \
|
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/msm.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/xt_owner.ko.zst" ] || \
|
||||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
||||||
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
|
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ if command -v docker >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
if [ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/$DTB_FILE" ] || \
|
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/msm.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/xt_owner.ko.zst" ] || \
|
||||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
||||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
|
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
|
||||||
@@ -250,6 +251,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" \
|
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"
|
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/msm/msm.ko.zst"
|
||||||
fi
|
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"
|
||||||
|
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/panel-mipi-dbi.ko.zst" \
|
||||||
|
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny/panel-mipi-dbi.ko.zst"
|
||||||
|
fi
|
||||||
if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds" ] && \
|
if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds" ] && \
|
||||||
[ -d "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/leds" ]; then
|
[ -d "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/leds" ]; then
|
||||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/"*.ko* \
|
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/"*.ko* \
|
||||||
|
|||||||
@@ -82,7 +82,13 @@ EOF
|
|||||||
echo "[2f/5] Applying VM-BMS FIFO sanity and Wi-Fi listen-interval policy patch..."
|
echo "[2f/5] Applying VM-BMS FIFO sanity and Wi-Fi listen-interval policy patch..."
|
||||||
patch -p1 < /bananarchy/patches/kernel/0007-msm8909-bms-fifo-wifi-policy.patch
|
patch -p1 < /bananarchy/patches/kernel/0007-msm8909-bms-fifo-wifi-policy.patch
|
||||||
fi
|
fi
|
||||||
if [ ! -f include/config/auto.conf ] || ! grep -q "CONFIG_NETFILTER_XT_MATCH_OWNER=m" .config 2>/dev/null; then
|
if ! grep -q "screen_off_offload" drivers/net/wireless/ath/wcn36xx/main.c 2>/dev/null; then
|
||||||
|
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 [ ! -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
|
||||||
echo "[3/5] Preparing kernel configuration..."
|
echo "[3/5] Preparing kernel configuration..."
|
||||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- olddefconfig
|
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- olddefconfig
|
||||||
@@ -114,6 +120,9 @@ EOF
|
|||||||
echo "[2f/5] Applying VM-BMS FIFO sanity and Wi-Fi listen-interval policy patch..."
|
echo "[2f/5] Applying VM-BMS FIFO sanity and Wi-Fi listen-interval policy patch..."
|
||||||
patch -p1 < /bananarchy/patches/kernel/0007-msm8909-bms-fifo-wifi-policy.patch
|
patch -p1 < /bananarchy/patches/kernel/0007-msm8909-bms-fifo-wifi-policy.patch
|
||||||
|
|
||||||
|
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 "[3/5] Preparing kernel configuration and Module.symvers..."
|
echo "[3/5] Preparing kernel configuration and Module.symvers..."
|
||||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- olddefconfig
|
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- olddefconfig
|
||||||
@@ -137,6 +146,8 @@ EOF
|
|||||||
KBUILD_MODPOST_WARN=1 M=drivers/spi modules
|
KBUILD_MODPOST_WARN=1 M=drivers/spi modules
|
||||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||||
KBUILD_MODPOST_WARN=1 M=drivers/gpu/drm/msm modules
|
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/tiny modules
|
||||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||||
KBUILD_MODPOST_WARN=1 M=net/netfilter modules
|
KBUILD_MODPOST_WARN=1 M=net/netfilter modules
|
||||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||||
@@ -187,7 +198,8 @@ EOF
|
|||||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/power/
|
/bananarchy/prebuilt/kernel-6.12.1-msm8916/power/
|
||||||
cp -a drivers/net/wireless/ath/wcn36xx/wcn36xx.ko \
|
cp -a drivers/net/wireless/ath/wcn36xx/wcn36xx.ko \
|
||||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/wcn36xx/
|
/bananarchy/prebuilt/kernel-6.12.1-msm8916/wcn36xx/
|
||||||
cp -a drivers/gpu/drm/msm/msm.ko /bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/
|
cp -a drivers/gpu/drm/msm/msm.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 \
|
cp -a net/netfilter/xt_owner.ko net/netfilter/nft_redir.ko \
|
||||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/netfilter/
|
/bananarchy/prebuilt/kernel-6.12.1-msm8916/netfilter/
|
||||||
cp -a /bananarchy/src/leds-msm8905-torch/leds-msm8905-torch.ko \
|
cp -a /bananarchy/src/leds-msm8905-torch/leds-msm8905-torch.ko \
|
||||||
@@ -231,6 +243,7 @@ EOF
|
|||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/bluetooth \
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/bluetooth \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/power/supply \
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/power/supply \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/net/wireless/ath/wcn36xx \
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/net/wireless/ath/wcn36xx \
|
||||||
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/tiny \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux \
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/spi
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/spi
|
||||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6/*.ko.zst \
|
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6/*.ko.zst \
|
||||||
@@ -245,6 +258,8 @@ EOF
|
|||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/power/supply/
|
/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 \
|
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/
|
/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/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 \
|
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/mux/*.ko.zst \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux/
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux/
|
||||||
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/spi/*.ko.zst \
|
cp -a /bananarchy/prebuilt/kernel-6.12.1-msm8916/spi/*.ko.zst \
|
||||||
@@ -267,6 +282,7 @@ EOF
|
|||||||
chown -R "$HOST_UID:$HOST_GID" /bananarchy/prebuilt/kernel-6.12.1-msm8916 \
|
chown -R "$HOST_UID:$HOST_GID" /bananarchy/prebuilt/kernel-6.12.1-msm8916 \
|
||||||
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916 \
|
/bananarchy/overlay/rootfs/lib/modules/6.12.1-msm8916 \
|
||||||
/bananarchy/overlay/rootfs/boot \
|
/bananarchy/overlay/rootfs/boot \
|
||||||
|
/bananarchy/devices \
|
||||||
/bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 \
|
/bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 \
|
||||||
/bananarchy/src/leds-msm8905-torch \
|
/bananarchy/src/leds-msm8905-torch \
|
||||||
/bananarchy/src/msm8905-cam
|
/bananarchy/src/msm8905-cam
|
||||||
|
|||||||
@@ -372,9 +372,9 @@ fi
|
|||||||
|
|
||||||
echo "[check] Known-good flashable image set..."
|
echo "[check] Known-good flashable image set..."
|
||||||
for pair in \
|
for pair in \
|
||||||
"89173379f80ca8c7a0153dd49196eed04bdf039f9a94f8f239ad12928a04abb6 images/bananarchy-nokia-argon.img" \
|
"3be4664961482bbe811512613d85d932d53298d46c0f87e3a0dfdb3173ac7f00 images/bananarchy-nokia-argon.img" \
|
||||||
"58e2df065a761e5476135971d37d3c09681621ff6c68e5e4d6f9eec852a11d74 images/bananarchy-nokia-beatles.img" \
|
"0178e8c3d5f8dec79cdfda28a73044ea8f65b5cf0d9cbb7c7b12a55e65b46b8a images/bananarchy-nokia-beatles.img" \
|
||||||
"199fe9a0b926e8ddf9815b0d7a901d913aa5b79be78fc4202a9ed2651ca493ac images/boot-bananarchy-nokia-beatles.img" \
|
"4e16742bc1c2461cd6a63f15009a2c0a8550dae7adf7f1ab83209d3df21726ae images/boot-bananarchy-nokia-beatles.img" \
|
||||||
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
|
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
|
||||||
set -- $pair
|
set -- $pair
|
||||||
want=$1
|
want=$1
|
||||||
@@ -1146,6 +1146,57 @@ if ! grep -qF '/etc/bananarchy-no-deep-standby' \
|
|||||||
"$BASE_DIR/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_screenoff.sh"; then
|
"$BASE_DIR/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_screenoff.sh"; then
|
||||||
fail "screenoff hook spawns sxmo_autosuspend.sh even when deep standby is disabled"
|
fail "screenoff hook spawns sxmo_autosuspend.sh even when deep standby is disabled"
|
||||||
fi
|
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" || \
|
||||||
|
! grep -qF 'M=drivers/gpu/drm/tiny modules' "$BASE_DIR/scripts/build-kernel-audio.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"
|
||||||
|
fi
|
||||||
|
if [ ! -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"
|
||||||
|
fi
|
||||||
|
for kopt in CONFIG_INTERCONNECT_QCOM=y CONFIG_INTERCONNECT_QCOM_MSM8909=y CONFIG_INTERCONNECT_QCOM_SMD_RPM=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 -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"
|
||||||
|
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 | \
|
||||||
|
grep -q 'screen_off_offload'; then
|
||||||
|
fail "prebuilt wcn36xx.ko.zst is missing the screen_off_offload parameter"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
for dts in \
|
||||||
|
"$BASE_DIR/devices/nokia-argon/qcom-msm8905-nokia-argon.dts" \
|
||||||
|
"$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beatles.dts" \
|
||||||
|
"$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts" \
|
||||||
|
"$BASE_DIR/devices/nokia-tough/qcom-msm8905-nokia-coconut.dts" \
|
||||||
|
"$BASE_DIR/devices/nokia-sparkler/qcom-msm8909-nokia-sparkler.dts" \
|
||||||
|
"$BASE_DIR/devices/nokia-sparkler/qcom-msm8909-nokia-leo.dts"; do
|
||||||
|
if ! grep -qF 'qcom,msm8909-bimc' "$dts" || \
|
||||||
|
! 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"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if ! grep -qxF 'MODEM_DRX_MODE=6' "$BASE_DIR/overlay/rootfs/etc/bananarchy-power-policy.conf" || \
|
||||||
|
! grep -qxF 'DSDS_SECONDARY_MODE=active' "$BASE_DIR/overlay/rootfs/etc/bananarchy-power-policy.conf" || \
|
||||||
|
! grep -qF 'if [ "$port" = "all" ]; then' "$BASE_DIR/overlay/rootfs/usr/libexec/msm-modem-uim-selection" || \
|
||||||
|
! grep -qF 'def screen_is_idle():' "$BASE_DIR/overlay/rootfs/usr/libexec/msm-modem-uim-selection" || \
|
||||||
|
! grep -qF 'for dev in /dev/wwan0at*;' "$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-power-policy.sh" || \
|
||||||
|
! grep -qF 'modem-ready) modem_ready ;;' "$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-power-policy.sh" || \
|
||||||
|
! grep -qF '/usr/bin/bananarchy-power-policy.sh modem-ready' "$BASE_DIR/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_modem.sh" || \
|
||||||
|
! grep -qF 'WIFI_OFFLOAD_PATH=/sys/module/wcn36xx/parameters/screen_off_offload' \
|
||||||
|
"$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-display-power-sync"; then
|
||||||
|
fail "userspace DSDS DRX, dsds-daemon dark-screen gate, or wcn36xx screen_off_offload sync is missing"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[check] Abjects IRC default network..."
|
echo "[check] Abjects IRC default network..."
|
||||||
IRC_SRC="$BASE_DIR/src/dwm-plugins/irc_plugin.cpp"
|
IRC_SRC="$BASE_DIR/src/dwm-plugins/irc_plugin.cpp"
|
||||||
|
|||||||
Reference in new issue
Block a user