Age | Commit message (Collapse) | Author |
|
We have used qcom/ folder to host various services, scripts
and utilites, and naming the folder to qcom/, to begin with,
was very shortsighted from my end.
So we are renaming it to utils/ and moving it under a new
shared/ folder which should hopefully be our go to
destination for similar common tools/HALs going forward.
Change-Id: I15fe45dbe5bc4752d6a2ee87a3fbed4924a66f08
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
|
|
Sync up the vendor userspace daemons, used to bring
up the remoteprocs, to their upstream sources.
The following projects are being synced up to the
associated upstream commit IDs.
https://github.com/andersson/pd-mapper
9d78fc0c6143 (pd-mapper: Null terminate firmware_value string")
https://github.com/andersson/qrtr
commit 9dc7a88548c2 ("libqrtr: Zero-initialize sockaddr_qrtr")
Note: Dropped qrtr changes from commit
47e48a8d935b ("Android: Disable "treat warnings as errors".")
https://github.com/andersson/qrtr/commit/47e48a8d935b
https://github.com/andersson/rmtfs
695d0668ffa6 ("storage: fix out of bounds read")
https://github.com/andersson/tqftpserv
783425b550de ("ANDROID: Add Android.bp makefile")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Ic08ccff151c012f17e2dfe9529a91b2d1931df57
|
|
* Enabled multiple appended DTBs support to allow db845c
boot.img/vendor_boot.img to boot on rb5 as well.
* Introduced a vendor.hw property which will be used to run
device specific services.
* Folded Caleb's HDMI audio routing fix.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I779d01946ae359d5c405d959419e29460083e5df
|
|
Upstream commit eb9b7bfd5954 ("arm64: dts: qcom: Harmonize DWC
USB3 DT nodes name") (v5.14-rc1) changed the DTS USB node names,
breaking the sys.usb.controller property hardcoded in the
platfrom specific init.usb.common.rc
This script will get rid of the static/hardcoded proprty name
and set the property to the available on-board USB controller
from /sys/class/udc instead.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I1255cd9a3456510d93437989e7e378d9e6bc0c8b
|
|
Added SPDX-license-identifier-Apache-2.0 to:
audio/Android.mk
libmemtrack/Android.mk
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-MIT SPDX-license-identifier-OpenSSL
legacy_by_exception_only
to:
Android.bp
Added SPDX-license-identifier-BSD
to:
qcom/pd-mapper/Android.bp
qcom/qrtr/Android.bp
qcom/rmtfs/Android.bp
qcom/tqftpserv/Android.bp
Added SPDX-license-identifier-MIT
to:
gralloc/Android.mk
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: If3396b5bd63553d0fcdb8cc7abb79b73cec46a7a
|
|
Copied from device/amlogic/generic/hal/audio/ minus the
speaker equalizer filter file.
It is a generic and more feature rich HAL, plus it fixes
the occasional static noise we hear on db845c and PocoF1.
Removed the mixer control settings from qcom/init.qcom.rc
and added HDMI out mixer control in etc/mixer_paths.xml
to start with. ** Analog audio out is not tested yet. **
ToDo:
1. Fallback to Analog audio port if the monitor doesn't
support HDMI audio out.
2. Mic AEC support is integrated deep in this HAL, so I
didn't remove it. Might as well test and use that
feature on Pixel 3 and Poco F1. Same with speaker EQ,
though we may end up never using this equalizer
feature at all.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I85614abdd684ab67f405f4c0e48380668ade4e06
|
|
Found using HWASan.
Also sent upstream: https://github.com/andersson/pd-mapper/pull/5
Bug: 171327997
Change-Id: I69d07d0228719abbffb38aa709de39c1d8190158
|
|
This reverts commit 2cf92a4173d774ad491709f80fe8fe3aa1698e6a.
Needed to get WiFi working on android-5.4 kernel. Otherwise
we need to backport a chunk of in-kernel qrtr ns patches
from upstream (v5.7-rc1) kernel. Userspace qrtr-ns tool is
compatible with upstream kernel as well, check:
https://android-review.googlesource.com/c/1286419
Change-Id: Icf9654ed415fe77c8f22592feccd7c68f46bd765
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
|
|
* changes:
db845c: Revert "audio: Set analog port as default audio out"
db845c: audio: Fix HDMI mixer control
|
|
There is a kernel bug uncovered in db845c modem shutdown
path in v5.7-rc1, where "reboot" or "reboot bootloader"
commands do not work as expected when the device is
connected to a WiFi AP. The db845c hard crashes on
reboot, resulting in the device getting stuck in the usb
crash debug mode and not coming back up without a hard
power off. There is no reboot regression when the board
is not connected to any AP.
This kernel issue is already reported upstream:
https://lists.infradead.org/pipermail/ath10k/2020-April/014970.html
https://lists.infradead.org/pipermail/ath10k/2020-June/015206.html
For now here is a userspace workaround where we do not
wait for modem to shutdown gracefully (SIGTERM during
reboot), instead we stop the rmtfs service explicitly
using the "on shutdown" init trigger, thereby sending
a SIGKILL signal.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Ieb8b65ceb979b1f698ddf7ae48ce49652b99a9dc
|
|
"QUAT_MI2S_RX Audio Mixer MultiMedia2" needs
to be enabled for HDMI audio to work.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I1f2081e4354f039afd2a57a6a36d3afe021b420b
|
|
Set Analog and HDMI mixer controls for db845c
on boot completion using tinymix.
Put a 1 second sleep in-between pd-mapper and
tinymix to let sound/codecs initialized properly
before setting mixer controls. Also made sure
that audio out interface is ready before
audioserver service get started.
Change-Id: Ib321559815e5d22d224fc36a1fe6c21f52df3eec
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
|
|
No need to run qrtr-ns and qrtr-cfg services
explicitly. They are moved to kernel now
starting from v5.7-rc1.
We are keeping qrtr-lookup around for debugging.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I02d72e73ef3d64fed1c024a97cec3560241aff22
|
|
With the introduction of the in-kernel nameserver launching the user
space qrtr-ns will fail, but typically other services depends on its
presence. As such, go dormant instead of failing when noticed that the
name service is already present.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I62aa002294e6980bab0b5e1b7282212b8d2c3d57
|
|
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I8b6f6907fd27e775fd399b109cd660372a6a6252
|
|
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I44f1d53cb16bc91e05be530c55e15a2657660be6
|
|
Null terminate firmware_value string to prevent
strlen() read past the end of buffer.
Otherwise pd-mapper will crash:
console:/ # pd-mapper
FORTIFY: strlen: detected read past end of buffer
Aborted
134|console:/ #
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Id0b9e1dda2bae12e3a36f1ce40376d1161878894
|
|
Syncup with https://github.com/andersson/pd-mapper
upstream project up to commit:
ab5074fdd5e4 ("pd-mapper: Use remoteproc firmware to find jsons")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I4ad3c07977c1e41a657c6c0479ad6dee9c154374
|
|
Building the qcom tools, we see a lot of the following:
warning: arithmetic on a pointer to void is a GNU extension
Fix this by casting the void* ptrs to char* when doing pointer
arithmatic.
Change-Id: Id2b0098388406bfc434ee01344a39e3413cb281c
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
Add __unused annotations to qcom remoteproc userland programs
to avoid compiler warnings.
Change-Id: Idd9405ff03afbeeb76433f14d24ee40eef42ed7e
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
Adds the init.qcom.rc file to the build so the qcom remoteproc
userland code can be started and wifi can be initialized.
This pach was split out from earlier patch by Amit Pundir
<amit.pundir@linaro.org>
Change-Id: I2032e7c2d3d5d3a10b7afd387f97a93235a908cf
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
Null terminate firmware_value string to prevent
strlen() read past the end of buffer.
Change-Id: I57cd01c4d0c58c6057872bc4b36129f09bc034a3
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
On AOSP, /tmp is not available. Use /data/vendor instead
for temporary files.
Change-Id: I1d6ebd669573b3c3134e6da943ea9355ed83a3fe
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
Instead of hardcoding BY_PARTLABEL_PATH for AOSP,
reuse -o option as suggested by Bjorn to expand John's
patch to find correct partition by-name on newer
kernels (which is /dev/block/platform/soc*/*.*/by-name).
For example: On db845c running v5.4+ kernel we run:
rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-name -P -r -s
Change-Id: I05a18566370aff1018a79ec2c83532a2849ca359
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
|
|
/dev/qcom_rmtfs_mem0 fd is required to share the data.
Change-Id: I62a2605cdf699047654f3a0b222be9610bae1085
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
|
|
Add Qcom userspace tools and their respective sepolicy rules.
Userspace tools are downloaded from following github:
To trigger loading of wlan firmware on SDM845
git clone https://github.com/andersson/pd-mapper
Userspace reference for net/qrtr in the Linux kernel
git clone https://github.com/andersson/qrtr
Qualcomm Remote Filesystem Service Implementation
git clone https://github.com/andersson/rmtfs
Trivial File Transfer Protocol server over AF_QIPCRTR
git clone https://github.com/andersson/tqftpserv
Change-Id: Ic466af6fef010a9b71c90e38205f49a876b001e2
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
|