Fix mmc1 microSD detection and suspended unbind abort for a1125 (ampere)
- Drop MMC_CAP2_FULL_PWR_CYCLE from sdhci_msm_probe() while retaining removable-SD-only MMC_CAP_AGGRESSIVE_PM, preventing mmc_select_voltage() from selecting vdd 0x10 (MMC_VDD_28_29) that sdhci_set_power_noreg() rejects - Raise PM8909 l11 (vmmc-supply) regulator-min-microvolt from 1.80 V (<0x1b7740>) to 2.95 V (<0x2d0370>) across all 6 device DTS/DTB targets while preserving 1.80-2.95 V on l12 (vqmmc-supply) - Move pm_runtime_get_sync(&pdev->dev) ahead of SDHCI_INT_STATUS and sdhci_remove_host() in sdhci_msm_remove(), and resume 7864900.sdhci power/control to 'on' before driver unbind in sxmo_sdcard.sh - Add l11 min-voltage, pm_runtime_get_sync, and MMC_CAP2_FULL_PWR_CYCLE guards in scripts/check-rebuild.sh, update docs, rebuild vmlinuz/DTBs and all 4 --mkinitfs a1125 (ampere) images, and pin their SHA-256 checksums
This commit is contained in:
1 parent
5d427e39ab
commit
1a229b0587
27 files changed
+26722
-26694
No files matched your search
@@ -112,7 +112,7 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
|
|||||||
- Keep standby battery invariants from `0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` and
|
- Keep standby battery invariants from `0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` and
|
||||||
`bananarchy-power-policy.conf`: `CPU_RPM_SLEEP=0`, `CPU_L2_SLEEP=0`, `MODEM_DRX_MODE=0`, `WIFI_LISTEN_INTERVAL=8`,
|
`bananarchy-power-policy.conf`: `CPU_RPM_SLEEP=0`, `CPU_L2_SLEEP=0`, `MODEM_DRX_MODE=0`, `WIFI_LISTEN_INTERVAL=8`,
|
||||||
`WIFI_STANDBY_RAT=gsm`, `msm8916-wcd-analog` `s2` gating, `pm8916_bms_vm` `screen_off` S3 OCV mode, `sdhci-msm`
|
`WIFI_STANDBY_RAT=gsm`, `msm8916-wcd-analog` `s2` gating, `pm8916_bms_vm` `screen_off` S3 OCV mode, `sdhci-msm`
|
||||||
`vmmc`/`vqmmc` `set_load` (`200 mA` / `20 mA` HPM in `sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, and `sdhci_msm_runtime_resume()`; `2 mA` / `0 mA` LPM in `sdhci_msm_runtime_suspend()`, paired with `regulator-allow-set-load;` on `l8`/`l11`/`l12` across DTS/DTBs and no static `regulator-system-load` on `l11`), removable-SD-only `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` in `sdhci_msm_probe()` (guarded against `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`), `qcom_q6v5_mss` `"mem"` in `proxy_clk_names`, `gcc_mss_q6_bimc_axi_clk` on `gcc_xo_data` with bootloader `0x45000 BIT(2)` cleared in `gcc_msm8909_probe()`, `opp-99999975` (`100 MHz` dark floor) across `qcom-msm8909.dtsi` and all 6 DTS files, and `msm8905-cam.c` RPM `l6`/`l17`
|
`vmmc`/`vqmmc` `set_load` (`200 mA` / `20 mA` HPM in `sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, and `sdhci_msm_runtime_resume()`; `2 mA` / `0 mA` LPM in `sdhci_msm_runtime_suspend()`, paired with `regulator-allow-set-load;` on `l8`/`l11`/`l12` and `2.95 V` min/max `<0x2d0370>` on `l11` across DTS/DTBs with no static `regulator-system-load` on `l11`), removable-SD-only `MMC_CAP_AGGRESSIVE_PM` (without `MMC_CAP2_FULL_PWR_CYCLE`) + `pm_runtime_get_sync()` before `sdhci_remove_host()` in `sdhci-msm`, `qcom_q6v5_mss` `"mem"` in `proxy_clk_names`, `gcc_mss_q6_bimc_axi_clk` on `gcc_xo_data` with bootloader `0x45000 BIT(2)` cleared in `gcc_msm8909_probe()`, `opp-99999975` (`100 MHz` dark floor) across `qcom-msm8909.dtsi` and all 6 DTS files, and `msm8905-cam.c` RPM `l6`/`l17`
|
||||||
regulator consumer voting (`regulator_get_optional`, never raw APSS SPMI writes on RPM LDOs).
|
regulator consumer voting (`regulator_get_optional`, never raw APSS SPMI writes on RPM LDOs).
|
||||||
- Keep the zero-lag plugin model: preloaded resident daemons guarded by lock/FIFO, `poll()` at 0% CPU, offscreen
|
- Keep the zero-lag plugin model: preloaded resident daemons guarded by lock/FIFO, `poll()` at 0% CPU, offscreen
|
||||||
`240x296` Pixmaps at `Y=24`, `PluginTheme`, `RELOAD_THEME`, idle blank/lock helpers, the 350 ms `dwm` wake guard, and
|
`240x296` Pixmaps at `Y=24`, `PluginTheme`, `RELOAD_THEME`, idle blank/lock helpers, the 350 ms `dwm` wake guard, and
|
||||||
|
|||||||
@@ -1644,7 +1644,7 @@ Live telemetry collected from a flashed `a1120` `nokia-beatles` unit running DSD
|
|||||||
- **Fix**: Removed `bluetooth` from `enable_service default` in `scripts/bootstrap-rootfs-container.sh` and added `rm -f "$TARGET_ROOTFS/etc/runlevels/default/bluetooth"` in `scripts/apply-bananarchy-overlay.sh`; persisted explicit user intent in `/home/user/.config/sxmo/bt_enabled` from `sxmo_bluetoothtoggle.sh` (`on()`/`off()`); enforced `rfkill block bluetooth` and service stop in `/etc/local.d/10-power-save.start` when `bt_enabled` is unset; and switched all three `sxmo_hook_start.sh` copies to check `bt_enabled` instead of raw `rfkill` status.
|
- **Fix**: Removed `bluetooth` from `enable_service default` in `scripts/bootstrap-rootfs-container.sh` and added `rm -f "$TARGET_ROOTFS/etc/runlevels/default/bluetooth"` in `scripts/apply-bananarchy-overlay.sh`; persisted explicit user intent in `/home/user/.config/sxmo/bt_enabled` from `sxmo_bluetoothtoggle.sh` (`on()`/`off()`); enforced `rfkill block bluetooth` and service stop in `/etc/local.d/10-power-save.start` when `bt_enabled` is unset; and switched all three `sxmo_hook_start.sh` copies to check `bt_enabled` instead of raw `rfkill` status.
|
||||||
2. **microSD (`mmc1`) `SDR104` `vmmc`/`vqmmc` kept active 24/7 (`~6-12 mA`)**:
|
2. **microSD (`mmc1`) `SDR104` `vmmc`/`vqmmc` kept active 24/7 (`~6-12 mA`)**:
|
||||||
- `sdhci@7864000` (`mmc1`) lacked `MMC_CAP_AGGRESSIVE_PM` (`caps = 0x405f030f`), causing `mmc_sd_runtime_suspend()` to return `0` without powering off the card. While idle, PM8909 `L11` (`2.9 V`, `0x4a46=0x80`) and `L12` (`1.8 V`, `0x4b46=0x80`, `0x4b45=0x80` NPM) stayed active continuously with an `SDR104` card in `tran` state.
|
- `sdhci@7864000` (`mmc1`) lacked `MMC_CAP_AGGRESSIVE_PM` (`caps = 0x405f030f`), causing `mmc_sd_runtime_suspend()` to return `0` without powering off the card. While idle, PM8909 `L11` (`2.9 V`, `0x4a46=0x80`) and `L12` (`1.8 V`, `0x4b46=0x80`, `0x4b45=0x80` NPM) stayed active continuously with an `SDR104` card in `tran` state.
|
||||||
- **Fix**: Extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) to set `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` exclusively on non-`mmc0`, non-8-bit, SD-capable hosts (`of_alias_get_id(node, "mmc") != 0 && !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & (MMC_CAP2_NO_SD | MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V))`), leaving rootfs eMMC `mmc0` (`sdhci@7824000`, which omits `no-sd;` in DTS) strictly excluded while powering off both `L11` and `L12` during removable microSD idle.
|
- **Fix**: Extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) to set `MMC_CAP_AGGRESSIVE_PM` exclusively on non-`mmc0`, non-8-bit, SD-capable hosts (`of_alias_get_id(node, "mmc") != 0 && !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & (MMC_CAP2_NO_SD | MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V))`), leaving rootfs eMMC `mmc0` (`sdhci@7824000`, which omits `no-sd;` in DTS) strictly excluded while powering off both `L11` and `L12` during removable microSD idle; kept `MMC_CAP2_FULL_PWR_CYCLE` off and raised PM8909 `l11` `regulator-min-microvolt` to `<0x2d0370>` (`2.95 V`) across all 6 DTS/DTBs (avoiding `Invalid vdd 0x10` in `sdhci_set_power_noreg()`); moved `pm_runtime_get_sync()` ahead of `SDHCI_INT_STATUS` / `sdhci_remove_host()` in `sdhci_msm_remove()`; and resumed `7864900.sdhci` before `unbind` in `sxmo_sdcard.sh`.
|
||||||
3. **Modem `qcom_q6v5_mss` pinning `BIMC_PLL` and `gcc_boot_rom_ahb_clk` on APSS (`~3-6 mA`)**:
|
3. **Modem `qcom_q6v5_mss` pinning `BIMC_PLL` and `gcc_boot_rom_ahb_clk` on APSS (`~3-6 mA`)**:
|
||||||
- `4080000.remoteproc` (`msm8909_mss` / `msm8916_mss`) kept `"mem"` (`gcc_boot_rom_ahb_clk`) in `.active_clk_names` indefinitely and enabled `gcc_mss_q6_bimc_axi_clk`, whose clock parent `&bimc_ddr_clk_src -> bimc_pll -> bimc_pll_early` held APSS `GCC_APCS_GPLL_ENA_VOTE` (`0x45000` `BIT(2)`) asserted 24/7.
|
- `4080000.remoteproc` (`msm8909_mss` / `msm8916_mss`) kept `"mem"` (`gcc_boot_rom_ahb_clk`) in `.active_clk_names` indefinitely and enabled `gcc_mss_q6_bimc_axi_clk`, whose clock parent `&bimc_ddr_clk_src -> bimc_pll -> bimc_pll_early` held APSS `GCC_APCS_GPLL_ENA_VOTE` (`0x45000` `BIT(2)`) asserted 24/7.
|
||||||
- **Fix**: Updated `0012` across `drivers/remoteproc/qcom_q6v5_mss.c` (moving `"mem"` from `.active_clk_names` into `.proxy_clk_names` released at `qcom_msa_handover()`) and `drivers/clk/qcom/gcc-msm8909.c` (re-parenting `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, adding `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src` and `system_noc_bfdcd_clk_src`, and clearing the bootloader APSS `BIT(2)` vote in `gcc_msm8909_probe()`).
|
- **Fix**: Updated `0012` across `drivers/remoteproc/qcom_q6v5_mss.c` (moving `"mem"` from `.active_clk_names` into `.proxy_clk_names` released at `qcom_msa_handover()`) and `drivers/clk/qcom/gcc-msm8909.c` (re-parenting `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, adding `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src` and `system_noc_bfdcd_clk_src`, and clearing the bootloader APSS `BIT(2)` vote in `gcc_msm8909_probe()`).
|
||||||
|
|||||||
+8
-8
@@ -35,7 +35,7 @@ Upcoming release build (`a1125` / `ampere` via `scripts/version.sh`) targeting *
|
|||||||
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
||||||
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
||||||
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
||||||
- **Disabled-by-default Bluetooth, removable microSD `MMC_CAP_AGGRESSIVE_PM`, MSS/BIMC clock unpinning, `100 MHz` idle OPP, IPv6 standby mute, and `pipewire`/`wireplumber` startup race fix (`0012`, `devices/*/*.dts`, `bootstrap-rootfs-container.sh`, `apply-bananarchy-overlay.sh`, `sxmo_bluetoothtoggle.sh`, `10-power-save.start`, `sxmo_hook_start.sh`, `10-power.conf`, `bananarchy-power-policy.sh`)**: removed `bluetooth` from OpenRC `default` runlevel (`rm -f /etc/runlevels/default/bluetooth`), tracked user opt-in via `/home/user/.config/sxmo/bt_enabled`, enforced `rfkill block bluetooth` + daemon stop at boot when unset, and switched `sxmo_hook_start.sh` to check `bt_enabled`; added `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` in `sdhci-msm.c` strictly for removable SD hosts (excluding `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`) so `L11`/`L12` power off during microSD idle; moved `"mem"` (`gcc_boot_rom_ahb_clk`) to `.proxy_clk_names` in `qcom_q6v5_mss.c`, re-parented `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, added `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src`/`system_noc_bfdcd_clk_src`, and cleared bootloader APSS `0x45000 BIT(2)` (`bimc_pll_early`) in `gcc_msm8909_probe()`; added `opp-99999975` (`100 MHz` = `gpll0 / 8`) across `qcom-msm8909.dtsi` and all 6 device DTS files to halve dark `powersave` L2/SCU clock draw; added `ipv6.method=ignore` in `10-power.conf`, `wlan0/disable_ipv6` standby toggling (preserving IPv6 ePDG VoWiFi), and post-`_park_rat` `--sig-hysteresis dark` in `bananarchy-power-policy.sh`; and guarded `superctl` `pipewire`/`wireplumber` startup in `sxmo_hook_start.sh`.
|
- **Disabled-by-default Bluetooth, removable microSD `MMC_CAP_AGGRESSIVE_PM`, `l11` `2.95 V` min voltage & safe unbind, MSS/BIMC clock unpinning, `100 MHz` idle OPP, IPv6 standby mute, and `pipewire`/`wireplumber` startup race fix (`0012`, `devices/*/*.dts`, `bootstrap-rootfs-container.sh`, `apply-bananarchy-overlay.sh`, `sxmo_bluetoothtoggle.sh`, `10-power-save.start`, `sxmo_hook_start.sh`, `sxmo_sdcard.sh`, `10-power.conf`, `bananarchy-power-policy.sh`)**: removed `bluetooth` from OpenRC `default` runlevel (`rm -f /etc/runlevels/default/bluetooth`), tracked user opt-in via `/home/user/.config/sxmo/bt_enabled`, enforced `rfkill block bluetooth` + daemon stop at boot when unset, and switched `sxmo_hook_start.sh` to check `bt_enabled`; added `MMC_CAP_AGGRESSIVE_PM` (without `MMC_CAP2_FULL_PWR_CYCLE`, which otherwise drops OCR to `MMC_VDD_28_29` `0x10` rejected by `sdhci_set_power_noreg()`) strictly for removable SD hosts (excluding `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`), set PM8909 `l11` `regulator-min-microvolt = <0x2d0370>` (`2.95 V`) across all 6 DTS/DTBs so `L11`/`L12` power off cleanly during microSD idle without losing `MMC_VDD_29_30`, moved `pm_runtime_get_sync()` ahead of `SDHCI_INT_STATUS` / `sdhci_remove_host()` in `sdhci_msm_remove()`, and resumed `7864900.sdhci` before `unbind` in `sxmo_sdcard.sh`; moved `"mem"` (`gcc_boot_rom_ahb_clk`) to `.proxy_clk_names` in `qcom_q6v5_mss.c`, re-parented `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, added `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src`/`system_noc_bfdcd_clk_src`, and cleared bootloader APSS `0x45000 BIT(2)` (`bimc_pll_early`) in `gcc_msm8909_probe()`; added `opp-99999975` (`100 MHz` = `gpll0 / 8`) across `qcom-msm8909.dtsi` and all 6 device DTS files to halve dark `powersave` L2/SCU clock draw; added `ipv6.method=ignore` in `10-power.conf`, `wlan0/disable_ipv6` standby toggling (preserving IPv6 ePDG VoWiFi), and post-`_park_rat` `--sig-hysteresis dark` in `bananarchy-power-policy.sh`; and guarded `superctl` `pipewire`/`wireplumber` startup in `sxmo_hook_start.sh`.
|
||||||
|
|
||||||
### System-core keypad debouncer (`0014`) and Nokia 8000 (`nokia-sparkler`) LRA vibrator isolation during media playback
|
### System-core keypad debouncer (`0014`) and Nokia 8000 (`nokia-sparkler`) LRA vibrator isolation during media playback
|
||||||
|
|
||||||
@@ -44,13 +44,13 @@ Upcoming release build (`a1125` / `ampere` via `scripts/version.sh`) targeting *
|
|||||||
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
|
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
|
||||||
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
||||||
- **Rebuilt local `a1125` (`ampere`) image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
- **Rebuilt local `a1125` (`ampere`) image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
||||||
- `images/bananarchy-nokia-argon.img`: `a0a02a8502736fae9c25de54cb8043231b2fd3ac488e123676cc8c3a35577ea1`
|
- `images/bananarchy-nokia-argon.img`: `2ba4620680a981a87fa8adf7a2fb6ab98d932c73f9de9be1c69981edc096d2a8`
|
||||||
- `images/bananarchy-nokia-beatles.img`: `9703ab732bac535ad83862a89c71931a4c16704b685f1bca45c23d7ac066c341`
|
- `images/bananarchy-nokia-beatles.img`: `23d1fdd6598bf0c5497b1e41a16888d966ad4ac3f4eee3aa04623b339c896c59`
|
||||||
- `images/boot-bananarchy-nokia-beatles.img`: `7eab3dcf44ba01f044e9b6dba3f786aebe80a3380884966e6ecd5dafc455c16a`
|
- `images/boot-bananarchy-nokia-beatles.img`: `0459151f37c746963dc734539a4284a0524b1b8ad777cd8690a87f928d2cec58`
|
||||||
- `images/bananarchy-nokia-coconut.img`: `5158dc6e545c975387ba29c44593afe2758a4cd926e0c43df90e8b79b72a6b37`
|
- `images/bananarchy-nokia-coconut.img`: `1f47b0f6b96c1637e1febaa6b5d150c2dd661ba9d200286315cb0400ca61a6a0`
|
||||||
- `images/boot-bananarchy-nokia-coconut.img`: `d79b51d86344441f170b1ddf205b721b54ce8c995a66bb611670065911768347`
|
- `images/boot-bananarchy-nokia-coconut.img`: `81695b3242403ebbd8631957a0ca67128b9791199e8121f58ed5e8f32ea2cc77`
|
||||||
- `images/bananarchy-nokia-sparkler.img`: `90ff40226f344d280b7a9cca1d23fb587cc987255c375b57969b3fd415c786b4`
|
- `images/bananarchy-nokia-sparkler.img`: `7e6b7bdc1ac96f748c46c6fde0f7debe2ae5562d0c2feb1f5ddfc274fd22717e`
|
||||||
- `images/boot-bananarchy-nokia-sparkler.img`: `4e1ddbfd5acc8335cb3e3e50b3fef46b9c6fe93afdaa9c2c0826500e63b60adf`
|
- `images/boot-bananarchy-nokia-sparkler.img`: `5fde23c229bcfcec276bfa064308a37736dc9f34bcb80c6f5b6c16400417adfa`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -408,7 +408,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x50>;
|
phandle = <0x50>;
|
||||||
|
|||||||
@@ -409,7 +409,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x50>;
|
phandle = <0x50>;
|
||||||
|
|||||||
Binary file not shown.
@@ -409,7 +409,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x50>;
|
phandle = <0x50>;
|
||||||
|
|||||||
Binary file not shown.
@@ -411,7 +411,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x50>;
|
phandle = <0x50>;
|
||||||
|
|||||||
Binary file not shown.
@@ -416,7 +416,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x44>;
|
phandle = <0x44>;
|
||||||
|
|||||||
Binary file not shown.
@@ -419,7 +419,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
l11 {
|
l11 {
|
||||||
regulator-min-microvolt = <0x1b7740>;
|
regulator-min-microvolt = <0x2d0370>;
|
||||||
regulator-max-microvolt = <0x2d0370>;
|
regulator-max-microvolt = <0x2d0370>;
|
||||||
regulator-allow-set-load;
|
regulator-allow-set-load;
|
||||||
phandle = <0x44>;
|
phandle = <0x44>;
|
||||||
|
|||||||
+13333
-13333
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
@@ -109,6 +109,7 @@ probe_controller() {
|
|||||||
fi
|
fi
|
||||||
if [ -w /sys/bus/platform/drivers/sdhci_msm/bind ]; then
|
if [ -w /sys/bus/platform/drivers/sdhci_msm/bind ]; then
|
||||||
if [ -e /sys/bus/platform/drivers/sdhci_msm/7864900.sdhci ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
if [ -e /sys/bus/platform/drivers/sdhci_msm/7864900.sdhci ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
||||||
|
printf "on" > /sys/devices/platform/soc@0/7864900.sdhci/power/control 2>/dev/null || true
|
||||||
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
||||||
sleep 0.15
|
sleep 0.15
|
||||||
fi
|
fi
|
||||||
@@ -254,6 +255,7 @@ do_unmount() {
|
|||||||
if ! is_mounted; then
|
if ! is_mounted; then
|
||||||
rm -f "$STATE_FILE" 2>/dev/null || true
|
rm -f "$STATE_FILE" 2>/dev/null || true
|
||||||
if [ "$force_mode" -eq 1 ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
if [ "$force_mode" -eq 1 ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
||||||
|
printf "on" > /sys/devices/platform/soc@0/7864900.sdhci/power/control 2>/dev/null || true
|
||||||
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
printf "SD card is not mounted\n"
|
printf "SD card is not mounted\n"
|
||||||
@@ -263,6 +265,7 @@ do_unmount() {
|
|||||||
if umount "$MOUNT_POINT" 2>/dev/null || umount -l "$MOUNT_POINT" 2>/dev/null; then
|
if umount "$MOUNT_POINT" 2>/dev/null || umount -l "$MOUNT_POINT" 2>/dev/null; then
|
||||||
rm -f "$STATE_FILE" 2>/dev/null || true
|
rm -f "$STATE_FILE" 2>/dev/null || true
|
||||||
if [ -e /sys/bus/platform/drivers/sdhci_msm/7864900.sdhci ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
if [ -e /sys/bus/platform/drivers/sdhci_msm/7864900.sdhci ] && [ -w /sys/bus/platform/drivers/sdhci_msm/unbind ]; then
|
||||||
|
printf "on" > /sys/devices/platform/soc@0/7864900.sdhci/power/control 2>/dev/null || true
|
||||||
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
printf "7864900.sdhci" > /sys/bus/platform/drivers/sdhci_msm/unbind 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
if [ "$force_mode" -ne 1 ]; then
|
if [ "$force_mode" -ne 1 ]; then
|
||||||
|
|||||||
@@ -59,9 +59,10 @@ diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
|
|||||||
msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
|
msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
|
||||||
|
|
||||||
+ /*
|
+ /*
|
||||||
+ * Enable aggressive runtime PM (power-cycle off during idle) strictly
|
+ * Enable aggressive runtime PM (power-off during idle) strictly on
|
||||||
+ * on removable SD slots. Never enable it on eMMC (mmc0 / 8-bit /
|
+ * removable SD slots. Never enable it on eMMC (mmc0 / 8-bit / no-sd /
|
||||||
+ * no-sd / HS200/HS400) because the rootfs lives on mmc0.
|
+ * HS200/HS400) because the rootfs lives on mmc0, and do not enable
|
||||||
|
+ * MMC_CAP2_FULL_PWR_CYCLE because sdhci_set_power_noreg rejects 0x10.
|
||||||
+ */
|
+ */
|
||||||
+ if (of_alias_get_id(node, "mmc") != 0 &&
|
+ if (of_alias_get_id(node, "mmc") != 0 &&
|
||||||
+ !(msm_host->mmc->caps & MMC_CAP_8_BIT_DATA) &&
|
+ !(msm_host->mmc->caps & MMC_CAP_8_BIT_DATA) &&
|
||||||
@@ -69,13 +70,29 @@ diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
|
|||||||
+ MMC_CAP2_HS200_1_8V_SDR |
|
+ MMC_CAP2_HS200_1_8V_SDR |
|
||||||
+ MMC_CAP2_HS400_1_8V))) {
|
+ MMC_CAP2_HS400_1_8V))) {
|
||||||
+ msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
|
+ msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
|
||||||
+ msm_host->mmc->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
/* Set the timeout value to max possible */
|
/* Set the timeout value to max possible */
|
||||||
host->max_timeout_count = 0xF;
|
host->max_timeout_count = 0xF;
|
||||||
|
|
||||||
@@ -2704,6 +2727,10 @@
|
@@ -2673,12 +2696,13 @@
|
||||||
|
struct sdhci_host *host = platform_get_drvdata(pdev);
|
||||||
|
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
||||||
|
struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host);
|
||||||
|
- int dead = (readl_relaxed(host->ioaddr + SDHCI_INT_STATUS) ==
|
||||||
|
- 0xffffffff);
|
||||||
|
+ int dead;
|
||||||
|
|
||||||
|
+ pm_runtime_get_sync(&pdev->dev);
|
||||||
|
+ dead = (readl_relaxed(host->ioaddr + SDHCI_INT_STATUS) ==
|
||||||
|
+ 0xffffffff);
|
||||||
|
sdhci_remove_host(host, dead);
|
||||||
|
|
||||||
|
- pm_runtime_get_sync(&pdev->dev);
|
||||||
|
pm_runtime_disable(&pdev->dev);
|
||||||
|
pm_runtime_put_noidle(&pdev->dev);
|
||||||
|
|
||||||
|
@@ -2704,6 +2728,10 @@
|
||||||
dev_pm_opp_set_rate(dev, 0);
|
dev_pm_opp_set_rate(dev, 0);
|
||||||
clk_bulk_disable_unprepare(ARRAY_SIZE(msm_host->bulk_clks),
|
clk_bulk_disable_unprepare(ARRAY_SIZE(msm_host->bulk_clks),
|
||||||
msm_host->bulk_clks);
|
msm_host->bulk_clks);
|
||||||
|
|||||||
+13333
-13333
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.
@@ -564,15 +564,15 @@ fi
|
|||||||
|
|
||||||
echo "[check] Known-good flashable image set..."
|
echo "[check] Known-good flashable image set..."
|
||||||
for pair in \
|
for pair in \
|
||||||
"a0a02a8502736fae9c25de54cb8043231b2fd3ac488e123676cc8c3a35577ea1 images/bananarchy-nokia-argon.img" \
|
"2ba4620680a981a87fa8adf7a2fb6ab98d932c73f9de9be1c69981edc096d2a8 images/bananarchy-nokia-argon.img" \
|
||||||
"9703ab732bac535ad83862a89c71931a4c16704b685f1bca45c23d7ac066c341 images/bananarchy-nokia-beatles.img" \
|
"23d1fdd6598bf0c5497b1e41a16888d966ad4ac3f4eee3aa04623b339c896c59 images/bananarchy-nokia-beatles.img" \
|
||||||
"7eab3dcf44ba01f044e9b6dba3f786aebe80a3380884966e6ecd5dafc455c16a images/boot-bananarchy-nokia-beatles.img" \
|
"0459151f37c746963dc734539a4284a0524b1b8ad777cd8690a87f928d2cec58 images/boot-bananarchy-nokia-beatles.img" \
|
||||||
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
||||||
"5158dc6e545c975387ba29c44593afe2758a4cd926e0c43df90e8b79b72a6b37 images/bananarchy-nokia-coconut.img" \
|
"1f47b0f6b96c1637e1febaa6b5d150c2dd661ba9d200286315cb0400ca61a6a0 images/bananarchy-nokia-coconut.img" \
|
||||||
"d79b51d86344441f170b1ddf205b721b54ce8c995a66bb611670065911768347 images/boot-bananarchy-nokia-coconut.img" \
|
"81695b3242403ebbd8631957a0ca67128b9791199e8121f58ed5e8f32ea2cc77 images/boot-bananarchy-nokia-coconut.img" \
|
||||||
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
||||||
"90ff40226f344d280b7a9cca1d23fb587cc987255c375b57969b3fd415c786b4 images/bananarchy-nokia-sparkler.img" \
|
"7e6b7bdc1ac96f748c46c6fde0f7debe2ae5562d0c2feb1f5ddfc274fd22717e images/bananarchy-nokia-sparkler.img" \
|
||||||
"4e1ddbfd5acc8335cb3e3e50b3fef46b9c6fe93afdaa9c2c0826500e63b60adf images/boot-bananarchy-nokia-sparkler.img" \
|
"5fde23c229bcfcec276bfa064308a37736dc9f34bcb80c6f5b6c16400417adfa images/boot-bananarchy-nokia-sparkler.img" \
|
||||||
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
||||||
set -- $pair
|
set -- $pair
|
||||||
want=$1
|
want=$1
|
||||||
@@ -2469,6 +2469,8 @@ if [ ! -f "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.
|
|||||||
! grep -qF 'regulator_set_load(mmc->supply.vqmmc, 20000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
! grep -qF 'regulator_set_load(mmc->supply.vqmmc, 20000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
! grep -qF 'regulator_set_load(host->mmc->supply.vmmc, 2000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
! grep -qF 'regulator_set_load(host->mmc->supply.vmmc, 2000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
! grep -qF 'MMC_CAP_AGGRESSIVE_PM' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
! grep -qF 'MMC_CAP_AGGRESSIVE_PM' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
|
grep -qF 'caps2 |= MMC_CAP2_FULL_PWR_CYCLE' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
|
! grep -qF 'pm_runtime_get_sync(&pdev->dev);' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
! grep -qF 'gcc_mss_q6_bimc_axi_clk' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
! grep -qF 'gcc_mss_q6_bimc_axi_clk' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
! grep -qF 'qcom_q6v5_mss.c' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
! grep -qF 'qcom_q6v5_mss.c' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
! grep -qF 'opp-99999975' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch"; then
|
! grep -qF 'opp-99999975' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch"; then
|
||||||
@@ -2544,6 +2546,10 @@ for dts in \
|
|||||||
if [ "$(grep -c 'non-removable;' "$dts" 2>/dev/null || echo 0)" -lt 2 ]; then
|
if [ "$(grep -c 'non-removable;' "$dts" 2>/dev/null || echo 0)" -lt 2 ]; then
|
||||||
fail "${dts#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
fail "${dts#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
||||||
fi
|
fi
|
||||||
|
if ! awk '/l11 \{/,/\};/ { if ($0 ~ /regulator-min-microvolt = <0x2d0370>;/) ok=1; if ($0 ~ /0x1b7740/) bad=1 } END { exit((ok && !bad) ? 0 : 1) }' \
|
||||||
|
"$dts"; then
|
||||||
|
fail "${dts#"$BASE_DIR/"} l11 must set regulator-min-microvolt = <0x2d0370> (2.95 V)"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
if command -v dtc >/dev/null 2>&1; then
|
if command -v dtc >/dev/null 2>&1; then
|
||||||
for dtb in "$BASE_DIR"/prebuilt/kernel-6.12.1-msm8916/dtbs/*.dtb; do
|
for dtb in "$BASE_DIR"/prebuilt/kernel-6.12.1-msm8916/dtbs/*.dtb; do
|
||||||
@@ -2558,6 +2564,8 @@ if command -v dtc >/dev/null 2>&1; then
|
|||||||
fail "${dtb#"$BASE_DIR/"} still contains static regulator-system-load"
|
fail "${dtb#"$BASE_DIR/"} still contains static regulator-system-load"
|
||||||
elif [ "$(printf "%s\n" "$dec_dts" | grep -c 'non-removable;' || echo 0)" -lt 2 ]; then
|
elif [ "$(printf "%s\n" "$dec_dts" | grep -c 'non-removable;' || echo 0)" -lt 2 ]; then
|
||||||
fail "${dtb#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
fail "${dtb#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
||||||
|
elif ! printf "%s\n" "$dec_dts" | awk '/l11 \{/,/\};/ { if ($0 ~ /regulator-min-microvolt = <0x2d0370>;/) ok=1; if ($0 ~ /0x1b7740/) bad=1 } END { exit((ok && !bad) ? 0 : 1) }'; then
|
||||||
|
fail "${dtb#"$BASE_DIR/"} l11 must set regulator-min-microvolt = <0x2d0370> (2.95 V)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user