Compare commits

...
Author SHA1 Message Date
Caleb Connolly 19be237c9d community/soc-qcom-sdm845: depend on msm-modem-ipa
This adds a new udev rule to disable waking up from suspend when the IPA
receives an interrupt. This may be the cause of some "random" wakeups
that people have reported on SDM845 devices. Until we get proper support
for handling these and filtering packets in the IPA itself, this avoids
those random wakeups and potential associated power drain.
2023-04-12 13:28:21 +01:00
Caleb Connolly 7bfca39d2d modem/msm-modem: subpackage to configure the IPA
The IPA has its wakeup enabled by default, add a subpackage with a udev
rule to disable the wakeup.
2023-04-12 13:28:20 +01:00
3 changed files with 22 additions and 4 deletions

No files matched your search

+2 -1
View File
@@ -3,7 +3,7 @@
pkgname=soc-qcom-sdm845
pkgdesc="Common package for Qualcomm SDM845 devices"
pkgver=14
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
@@ -50,6 +50,7 @@ nonfree_firmware() {
q6voiced
q6voiced-openrc
msm-modem
msm-modem-ipa
msm-modem-uim-selection
bootmac
alsa-utils
+11 -3
View File
@@ -1,18 +1,19 @@
pkgname=msm-modem
pkgver=7
pkgrel=1
pkgver=8
pkgrel=0
pkgdesc="Common support for Qualcomm MSM modems"
url="https://postmarketos.org/"
arch="armhf armv7 aarch64"
license="GPL-3.0-or-later"
depends="rmtfs rmtfs-openrc"
install="$pkgname.post-install"
subpackages="$pkgname-downstream $pkgname-uim-selection:uim_selection"
subpackages="$pkgname-downstream $pkgname-uim-selection:uim_selection $pkgname-ipa:ipa"
source="
msm-modem-downstream.initd
msm-modem-uim-selection.confd
msm-modem-uim-selection.initd
udev-downstream.rules
ipa-wakeup.rules
"
options="!check"
@@ -29,6 +30,12 @@ uim_selection() {
install -Dm755 "$srcdir/$subpkgname.initd" "$subpkgdir/etc/init.d/$subpkgname"
}
ipa() {
pkgdesc="$pkgdesc (IPA configuration)"
install -Dm644 "$srcdir/ipa-wakeup.rules" "$subpkgdir/usr/lib/udev/rules.d/67-ipa-wakeup.rules"
}
downstream() {
pkgdesc="$pkgdesc (downstream)"
depends="$pkgname libqipcrtr4msmipc libsmdpkt_wrapper keepfileopen"
@@ -43,4 +50,5 @@ sha512sums="
efbe0d23f2716e10f5ef0006c6eb21672a14e368ecceb74d296039bc539be2b35964af48efa0db69d0f410e7bee19ba0d69ab1ede43b9cfd443acde6997c8017 msm-modem-uim-selection.confd
9c91febb48409e574695bb04c989b361db9f7678321c6935772c19efae7dd16956bd4b91143b475adf898344225d4095448b95ccb824ced305966ea96b9ae32f msm-modem-uim-selection.initd
2a511c2e249d0ec5a52f04ffe1ef3d29cf3c4813143b103e54879ff89176ea45b1a5ffe21cb7dc2f1cdd84c3102ba45ef9926ed37e00b1ae12a36d01de35ea5a udev-downstream.rules
b80805dad5ed11fde647db82e5d1033905d33c64d6fa1bebe483481cfa49c4179ba98f0a2225adc5a5cbc780af5733d310cb9aa0c75eeeb32e68e05703e27123 ipa-wakeup.rules
"
+9
View File
@@ -0,0 +1,9 @@
# The IPA hardware on Qualcomm SoCs offloads network packet
# filtering and routing between different SoC components.
# It includes support for packet filtering, intended to allow
# the CPUs to suspend but be woken up for specific messages
# e.g. notifications from a notification push server.
# Support for such filtering is not yet available in the upstream
# driver, and all wakeups cause the display to turn on.
# Upstream prefer not to disable this in the kernel, so do it here.
ACTION="add", DRIVER=="ipa", ATTR{power/wakeup}="disabled"