Commit graph

494 commits

Message SHA1
tama-common: Switch to py extract utils
Change-Id: Ia13b728464495ff208ca1a706847b11af5c93ae8

LuK1337   authored and   Danny Trunk   commited 2025-04-04 10:11:41 +02:00
f2ac07aeac
tama-common: switch to common QCOM AIDL bootctrl HAL
Change-Id: I04ab771d3b1c38b58913607fbff1bb3b55e1fe25

Cosmin Tanislav   authored and   Danny Trunk   commited 2025-03-26 12:19:14 +01:00
d1b34a3501
tama-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b

Tyler Wear   authored and   Danny Trunk   commited 2025-03-10 23:24:00 +01:00
802335277e
Revert^2 "tama-common: Switch to common lights HAL"
This reverts commit b831f0a976.

Reason for revert: Common HAL handles it just fine

Change-Id: Ie7cc2c90e4d7bf43a432440de57746f168860ce2

Danny Trunk   authored and   Gerrit Code Review   commited 2025-02-17 20:25:37 +00:00
739b70b45f
Revert "tama-common: Switch to common lights HAL"
This reverts commit d2a1b9ff4e.

Reason for revert: Blink didn't work

Change-Id: I4bdbca2a3c62d71d16500eb5e07b4d1e2ff46dfb

Danny Trunk   authored and   Gerrit Code Review   commited 2025-02-17 20:11:40 +00:00
b831f0a976
tama-common: Switch to common lights HAL
Change-Id: If515e7c3f6e5b6895076f1d8381fb2c22bd1b3de

LuK1337   authored and   Danny Trunk   commited 2025-02-17 00:19:47 +01:00
d2a1b9ff4e
tama-common: modem-config: Add more modem configs
Copied from:
* I3213_Customized_UK_1318-2262_53.1.A.3.85_R9C
* I3223_Customized_US_53.1.A.3.134-R9C

Change-Id: I35e4e7ad6284a74f24512b571d2a0649c9b558d5

LuK1337   authored and   Danny Trunk   commited 2025-02-16 23:42:28 +01:00
6fd996ed17
tama-common: fstab: Reserve 128MB for critical system components.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

128MB ought to be enough for anybody.

Test: builds, boots
Bug: 62024591
Change-Id: I412ed9b0a885668ebe4c6c677a3bd0cd7f44080b
Signed-off-by: Alberto97 <albertop2197@gmail.com>
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>

Jeff Sharkey   authored and   Danny Trunk   commited 2025-02-15 19:32:53 +01:00
949d38fbbe
tama-common: fstab: enable quota for ext4 userdata
* our kernel has already enabled the necessary configs
 * https://source.android.com/docs/core/storage/faster-stats

Change-Id: I328dfe62716fba77b55225c8f8166515be8ace02

linckandrea   authored and   Danny Trunk   commited 2025-02-15 19:32:36 +01:00
0ccde41d01
tama-common: rootdir: remove Sony's vm parameters
* Z3fold wasn't included in the new kernel as such these tweaks are useless

Change-Id: Ife19223eabc80e8d9f551e15a49999aed2e799f7

linckandrea   authored and   Danny Trunk   commited 2025-02-15 19:32:30 +01:00
9af7f31b0f
tama-common: rootdir: tweaks power config
* remove caf schedutil strings to align to the current xiaomi-sdm845 config
 * remove cpu_boost as it is redundant

 * remove process reclaim strings (it's not even enabled in our kernel)

 * remove ufs scaling as it is now disabled in the kernel

Change-Id: I8d89414431d2a89d74103490c725abcdb7dbbe84

linckandrea   authored and   Danny Trunk   commited 2025-02-14 23:37:24 +01:00
52c962453f
tama-common: lmkd: use default values
* ditch the current config as it was meant for android 10[*1]
 * lmkd will now use the PSI mechanism[*2] (since is now enabled on our kernel)

 *1 https://source.android.com/docs/core/perf/lmkd?hl=it#configuring-lmkd
 *2 https://source.android.com/docs/core/perf/lmkd?hl=it#userspace-lmkd-in-android-r

Change-Id: I2d1059a0562b4beb973ab31897e1a654dd0ebfaf

linckandrea   authored and   Danny Trunk   commited 2025-02-14 23:36:04 +01:00
e3c8371673
tama-common: Increase ro.lmk.medium to prevent kills at medium vmpressure
Setting ro.lmk.medium to 800 to prevent important processes from being
killed at medium vmpressure levels.

Bug: 77299493
Test: lmkd_unit_test
Merged-In: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Change-Id: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit c954ec2eb318518cfa5c6f64a688fd8c809e91c5)

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:32:21 +01:00
e7f83378fc
tama-common: Enable memory stats logging in user mode LMKD
Bug: 74443701
Test: Tested manually
Merged-In: I288098e17d5fc65923758152bba5e786a75edc4c
Change-Id: I288098e17d5fc65923758152bba5e786a75edc4c
(cherry picked from commit 56395c15a57eda7aa59a7615422677d5a8075350)

Rajeev Kumar   authored and   Danny Trunk   commited 2025-02-14 23:32:06 +01:00
ac4fa79a7f
tama-common: Switch lmkd to use minfree levels for kill decisions
Enable ro.lmk.use_minfree_levels flag to use minfree levels to decide
when lmkd should kill. This makes lmkd work the same way lowmemorykiller
kernel driver used to work.

Bug: 77299493
Bug: 75322373
Test: lmkd_unit_test
Change-Id: Ic29d7fd21af1cb6af3a7d2a175d210775a09987e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:29:13 +01:00
c7bd32ec9c
tama-common: Set lmkd configuration properties
Bug: 63631020

Change-Id: I16a183e8e4625e8b98cefdc9c8a7b650556a2b55
Signed-off-by: Suren Baghdasaryan <surenb@google.com>

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:28:01 +01:00
54c04f94ae
tama-common: Drop Android LMK parameters configuration
Android LMK was disabled in the kernel in favor of Low Memory Killer Daemon (lmkd).

Change-Id: Ibd97ea48bf6cc635277a7e23fb460ee7f1737121

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 23:27:36 +01:00
1765f73f14
tama-common: Adjust powerhint for QOS interface
Currently all writes to the dev interface are done
by WriteStringToFd that uses char internally.

The current values seem to expect to be written as s32,
this sadly won't happen and triggers a special case in
the write handling of pm_qos_power_write:
it expects char buffers to be encoded as base16 and
decodes them.
This means the current 44 is actually 0x44 -> 68 seen by
the kernel.

Luckily it seems like both accepted values for this node
don't hit the threshold to enter C2, so it was never
noticed in real usage and didn't effect the device
C-States handling during hints.

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Ic544d4dcaa1edc3de913aed737baf1af88a45360

Luca Stefani   authored and   Danny Trunk   commited 2025-02-14 23:26:54 +01:00
71ee92703e
tama-common: Update WFD system stack from OOS 15.0.0.201(EX01)
Change-Id: Ia31624004a10c5e471a146646237bd240e38d07a

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
19947e28d2
tama-common: Remove OMX audio codecs
* OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I940be6716b603e848c44839bb87ad690eb55e86f

Michael Bestas   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
8a96523f3e
tama-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: I32f0b0abe680c1f350268115a3cc5488a2a57ec3

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
b980c3532d
tama-common: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5

Yumi Yukimura   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
9ecd8b21ba
tama-common: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Ib8ae3114ffae6ea5457cb9829fbbecfd7f065b66

Michael Bestas   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
a2c02d13c3
tama-common: rootdir: set vm page-cluster to 0
* same value used by xiaomi-sdm845-common
 * optimal value according to https://wiki.archlinux.org/title/Zram

Change-Id: Icea5cbf22a23fd49fa287e2f5a7fdee4555acd91

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
30194f11f8
tama-common: rootdir: set zram size as a percentile value
* this allows aurora to have more zram without requiring a dedicated fstab
 * other tama devices will still have 1gb of zram

Change-Id: I88fc3706464a146c74ca67f4c3539e8210bcc005

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
081ef555ec
tama-common: Define SYS_NICE caps for android.hardware.audio@2.0-service.
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31

Sidipotu Ashok   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
1bf951b1c4
tama-common: init: Remove racey printk setups
Configure printk from init.qcom.sh only.

Change-Id: I4eff77fd5cd121f31156c2fbdac1208dec6c9ac5

Melody Olvera   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
e49d8881d2
tama-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
45620805e9
tama-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124

Rick Yiu   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
1007e3e73d
tama-common: sepolicy: allow vendor_init to access watermark_scale_factor
Bug: 251881967
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0840cf19f9c3120aaacc49de751fdd0a55aebf5f

Martin Liu   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
b6365e9816
tama-common: rootdir: cleanup init.target.rc
* remove duplicate strings

Change-Id: Ie16e87f25a589295e1d1c8d1c6c6b1c745dac072

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
4301f0be9a
tama-common: rootdir: rework power init scripts
* move almost everything to init.qcom.power.rc
 * cleanup init.qcom.post_boot.sh by removing unused methods
 * set vendor.post_boot.parsed to "1" during "on boot" phase

Change-Id: I69d6396aff29f82df0424ba8093b75c97cf9df56

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
c88f4799e3
tama-common: add TARGET_HAS_6GB_RAM for aurora
* XZ2P has 6gb of RAM, while every other tama device have 4gb

Change-Id: I733b9c000cf983cdc247b443435e1a0c24ec7ffa

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
60af9157ed
tama-common: configs: Update performance values in xml file
MPEG4SW decoder  performance values are modified
as per cts test results.

Change-Id: I56a5aac08354b3f8d6896a335b82219533560a39

Sanjay Singh   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
f17361d5e8
tama-common: configs: update MPEG4SW performance values
* taken from xiaomi-sdm845-common as @3ef34d86b47dcff99dd788c67277bd38cc422418

Change-Id: Iea2f1daf93b9e7eea4bb114772f65801058b92a5

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
78451c7e5e
tama-common: configs: Update performance values in xml file
Performance values are modified as per cts test results.

Change-Id: Ia7be05ceb27aa70daf7e408bc1c6cc5784431abf

Paras Nagda   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
45da28fe5c
tama-common: configs: remove divx/divx4/vc1
* they were already disabled since the initial bringup

Change-Id: I607e41ee7c475d5e5894e1ed8714d046c424d509

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
94e4d8ade1
tama-common: introduce touchHAL to manage glove mode
* kanged from sake as @3a8f1b3d8f07e9654d7c9633779d1f70a5a399a9
  * gesture & high polling rate support were removed
  * use tama common sys path for touchscreen features

Change-Id: Iff6d8ace406b9f466b272d3632b23b97d6a7fffe

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
b91f7aae2b
tama-common: sepolicy: label every touchscreen glove_mode sys path
Change-Id: I6cb76c1f80896364bc88e7d640c25a6d5b309740

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
d7cbc19b40
tama-common: rootdir: setup for smart cover
* the necessary sepolicy is already written
 * just as stock

Change-Id: I0f85007a4d0e0cf49567261ffaefac2acdc06888

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
1ac814f1a3
tama-common: Remove quotes in TARGET_RECOVERY_PIXEL_FORMAT
Change-Id: Ic400a47f0b4b8d2884082b99df3fe2e09c9438f6

Luofan Chen   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
ead43ecbff
tama-common: Do not override ro.opengles.version
Change-Id: I84fb4d3f09a519384e005af7bc9085b17c26b7f7

Michael Bestas   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
803ac61ea1
tama-common: remove local power-libperfmgr
* we're using common lineage power-libperfmgr

Change-Id: I8ef3f4db699ce20ed0ec2544576cddeb95adfc68

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
eb90c625a7
Revert "tama: configs: Remove schedboost in powerhint.json"
This reverts commit b07ddab579.

 * now it works as intended

Change-Id: If158fca036e20e0acf39a978541d248d144d83f6

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
f8f81f5d64
tama-common: sepolicy: allow sched_boost to be written
Change-Id: I75d2849223f653b9de2aa4e21731e57add25b0ec

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
79b870c42d
tama-common: powerhint: raise devfreq min_freq
* 180000000 is too low and sometimes causes a ping pong effect

Change-Id: Ibfbfba3ce1ef293addd4abbdaa3e40a1dace3d46

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
f19555c188
tama-common: powerhint: raise little cluster's scaling_min_freq
* this match the value in init.qcom.post_boot.sh

Change-Id: I771ef52bae8e3ba7d34cbc9a456f6db5f1be9a7b

linckandrea   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
712665a1ed
tama-common: Fix duplicate WFD blobs
Change-Id: Icfbd4c6e9bff9275d310d4de65dd82045084f916

Danny Trunk   commited 2024-10-18 15:10:00 +02:00
ab9ae3dd25
sdm845-common: Remove PRESIGNED from hotword apps
Change-Id: Ic46a9be692bf6e5d1c0e10b91de128e6febda32b

LuK1337   authored and   Danny Trunk   commited 2024-10-16 19:20:45 +02:00
79d268905e
tama-common: lights: Redo alpha sanity check
Change-Id: I08f335eba806fa10792fe5a9c348cc59327b3b4d

LuK1337   authored and   Bruno Martins   commited 2024-06-20 22:49:32 +00:00
b6c4613537