Commit graph

70 commits

Author SHA1 Message Date
Dobsgw
484f46a605
sm6375-common: rootdir: Fix PowerHAL nodes
Fix for:
libperfmgr: Failed to write to node: /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us with value: 2000, fd: -1
libperfmgr: Failed to write to node: /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us with value: 2000, fd: -1
libperfmgr: Failed to write to node: /sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us with value: 2000, fd: -1
libperfmgr: Failed to write to node: /sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us with value: 2000, fd: -1

Change-Id: I1e232a488ed8e7d87607f543425b6138cd6df53a
2025-04-22 12:01:31 +05:30
Anand S
6676ba9e20
sm6375-common: Drop duplicate rootdir scripts
* Already being included in vendor.

Change-Id: Ic9f9ebad2ed83685722554d8334da3902007c43b
2025-01-20 13:48:25 +05:30
dianlujitao
a10ea3beb1
sm6375-common: Nuke ATFWD
It's normally not used at all.

Change-Id: Idb824b3b8c783b6ac962e604df05f9154beb4ed2
2024-12-17 13:05:00 +05:30
Anand S
a42bde7bc4
sm6375-common: Explicitly set multisim property
* Our family of devices all use dual sim slots. So let's set the prop once and for all.

Change-Id: I68be2c6c65dcc7e114823fe9f93f5444a65f4420
2024-08-16 20:16:00 +05:30
Anand S
a315f406b1
sm6375-common: Update from MMI-U1UGS34M.23-82-2-2
* From fogos_g-user 14 U1UGS34M.23-82-2-2 0c9cb9 release-keys.

Change-Id: I4d85b2ea3aa6edf8e55df8155b21dbbce9ed6579
2024-07-23 19:38:04 +05:30
Sugakesshaa
436dc832b4
sm6375-common: Configure sched {up/down}migrate
Change-Id: I7e804b386cb1a632b18720a83fcea17fc45776a8
2024-07-21 20:16:00 +05:30
Adithya R
c440e2d2b3
sm6375-common: Move audio-app cpuset to 1-2
audio driver affines pm-qos requests to these cpus so it makes sense
to use them for audio-app as well

Change-Id: I61223db706042e215b1ab5ca9eb4562989e362f6
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Jake Weinstein
6e4c4fa62b
sm6375-common: Do not allow restricted tasks to run on big cores
The restricted cpuset is for system tasks that are
throttled because the screen is off. Google only
runs these tasks on the little cluster
to save power and we will follow suit.

Change-Id: I0174beb11dae2109df4ddf65304bd50c5cc05264
2024-07-21 20:16:00 +05:30
Jake Weinstein
3351ac9c03
sm6375-common: Move background cpuset to CPU0-1
Change-Id: I927eac32be54dea076d5c5f15f7e57ab4b57fc3b
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Vaisakh Murali
d24e229705
sm6375-common: Import stock cpuset parameters
Change-Id: I6f5ec83f53cc89de51c60e011f6a35c80cf590c9
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Kyle Lin
ef9b2da616
sm6375-common: Fine tune the read_ahead size
fine tune the read_ahead size for runtime

Change-Id: If7929c51222e325a019532ce0d16045a52778165
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Vaisakh Murali
038d9e8853
sm6375-common: Introduce a stub blair-post-boot script
This will be used to tune some parameters in the device. Only run
this script after proprietary kernel post-boot has run, so that
these changes are not overriden by the same.

Change-Id: Ibcef27a2813870c62d54c9d762eae9e03da677ad
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Bruno Martins
4ac703b559
sm6375-common: Enable powerhint parsing after boot completion
Change-Id: Ie065f234bfd949264b962bae80e400a446f65b80
2024-07-20 20:16:00 +05:30
Anand S
74fce3f5d0
sm6375-common: Drop power init script
* Switch back to old init script for power stuffs.
* Bring back post boot script.

Change-Id: Ifca0be0f7bb767dfeb601083e66e73c88521f880
2024-07-20 20:16:00 +05:30
Vivekachooz
c89c6beec2
sm6375-common: rootdir: Cleanup power init script
* Let powerhint handle this

Change-Id: If98c748567995b2bbb33bf0d9c1e2192b0c43b7c
2024-07-18 20:16:00 +05:30
Vivekachooz
d2cffdfdb0
sm6375-common: rootdir: Tune background cgroup uclamp values
* Values taken from gs201

Change-Id: Ice4cb9b6ee4845e5a965ead26f2775a1522b065c
2024-07-18 20:16:00 +05:30
Jake Weinstein
0c0f036d7a
sm6375-common: Use foreground cpuset/uclamp for gralloc
Makes sure rendering has enough capacity.

Change-Id: I7ad051248353485a8090bec578b2c4325ea06024
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Jake Weinstein
9be114c30d
sm6375-common: Use foreground uclamp for hwcomposer
Matches SF, makes sure rendering always
has enough capacity.

Also switches to task_profiles.

Change-Id: I2a2de504be7d3f4f66f31445f44fbbf9376bd927
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Vishalcj17
75531a87f2
sm6375-common: Switch hwcomposer to foreground CPU set
* Greatly affects the performance/latency of the display
   considering you have foreground set to 0-6 cores on <SM7350
   whilst being power efficient.

 * This shows an improvement on HWUI graph and even jankbench.

Change-Id: I6438375d844e1b1f38872fb53bdfadfb644fc722
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Suren Baghdasaryan
b721be0fd8
sm6375-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2024-07-18 20:16:00 +05:30
Sugakesshaa
1c76650adc
sm6375-common: powerhint: Setup uclamp boosting
- Make use of uclamp boost for top-app and foreground
  hints based on newer pixels

Co-authored-by: Vivekachooz <vivekachooz@gmail.com>
Change-Id: I70c4262230841b3c7bf84b4165916a22312f829f
2024-07-18 20:16:00 +05:30
Subhajeet Muhuri
dc8d9f8a10
sm6375-common: Set top-app schedtune.boost to 1
Fix for:
W libperfmgr: Failed to write to node: /dev/stune/top-app/schedtune.boost with value: 10, fd: -1

Change-Id: I1e394919b75e192def99c444993546634c951781
2024-07-18 20:16:00 +05:30
Vivekachooz
b96db6ee48
sm6375-common: Update permissions for powerhal
Change-Id: Id43043a24dd19eab0234def5121e811d18174096
2024-07-18 20:16:00 +05:30
Bruno Martins
276a5c6fcd
sm6375-common: Create power init script
* Gather all performance related items in one place
   and drop all deprecated services.

Change-Id: I4dbdc164c60136b0957a8c1ff67feafbaf471747
2024-07-18 20:16:00 +05:30
LuK1337
e136267d24
sm6375-common: init: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I10e0f26481cfa13994dab2370d9f9fb8a073cdc8
2024-07-18 20:16:00 +05:30
Wei Wang
d8ec9a75c6
sm6375-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2024-07-18 20:16:00 +05:30
Miguel de Dios
e7be3c83e4
sm6375-common: Change readahead to 128KiB on post-boot
Reduce readahead from 512KiB to 128KiB to reduce thrashing when we
have a lot of apps running.

Bug: 110908295
Bug: 80426378
Test: manual - device boots
Test: manual - check app launch does not take long
Test: cts-tradefed.sh run cts -m CtsCameraTestCases
Change-Id: I59c1f2f8a6fbb5e0d956ba07a40a2bfac3b61481
2024-07-17 19:38:04 +05:30
Anand S
7a96a5062f
sm7325-common => sm6375-common
* All configs updated from fogos U1UG34M.23-82-2 build

Change-Id: I6750c454f2eeec53205c56f033c76443e93b44ed
2024-07-03 12:56:42 +05:30
Nolen Johnson
143f1118e6 fixup! sm7325-common: Remove wait_for_keymaster and all references
* Oh wow, a second instance!

Change-Id: I97160cb66b218c3d9b5e8bf3c5eea6721e9e409f
2024-06-23 11:52:36 -04:00
Paul Crowley
5e3340a0aa sm7325-common: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
2024-06-23 11:51:28 -04:00
dianlujitao
b7db219e92
sm7325-common: Set timer trigger for charging LED
Required after recent kernel update. Based on QCOM commits:
  liblight: set "timer" trigger before setting delay for blinking
  display: light: set timer trigger before updating delay_on/off values
  display: light: clear timer trigger before setting brightness

Change-Id: Iaa4d78fe7411f299ba866de174782c269c068c23
2023-08-09 08:04:52 -07:00
LuckYViii
f6745648c0 sm7325-common: rootdir: Remove legacy ril-daemon and vendor.ril-daemon rules
* W libc : Unable to set property "ctl.stop" to "ril-daemon": error code: 0x20
* W libc : Unable to set property "ctl.stop" to "vendor.ril-daemon": error code: 0x20

Change-Id: I80784cb3d6ee3cf539b3a8b5dbcada2e8b850641
2023-06-21 13:27:23 -03:00
Nolen Johnson
383ae94428 [TMP] Revert "sm7325-common: Build Lineage Health HAL"
This reverts commit e63d405d36.

Reason for revert: Need to rework kernel side.

Change-Id: I5edfb82b02a63ab068dfe87878bc2be7edb197b1
2023-06-21 05:15:57 +02:00
Adithya R
dec61d442b sm7325-common: rootdir: Set ro.boot.hardware.revision
Bootloader sets ro.boot.revision, we can use this to show
"Hardware version" in model information in Settings.

Change-Id: Id2d825f60f792e6d05c0b34cfee811a0ac3b5604
2023-06-14 17:58:35 -06:00
Michael Bestas
e63d405d36 sm7325-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 13:59:05 -04:00
Michael Bestas
8cbf817fce sm7325-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-06-09 13:59:05 -04:00
Michael Bestas
104d9a6b48 sm7325-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-09 12:38:57 -04:00
Adithya R
33ddc4f499 sm7325-common: ramdisk: Nuke non-modified qti media script
We have want to ensure the one in the media folder gets copied

Change-Id: I2d85bb5c4989611139997b03c2b7e2e61fd4e19e
2023-06-09 08:17:34 +02:00
Marc Bourgoin
fcbf39be75 sm7325-common: Add init.oem.fingerprint2.sh
It turns out berlna still needs this to initialize FP sensor
even though in the real world only one is used, so we might
as well leave this in common for berlna and xpeng

Change-Id: I094d12dc7581099c611dc1ffedf63d065af04081
2023-04-28 08:09:37 -06:00
Marc Bourgoin
a0b19996f8 sm7325-common: Decommonize fingerprint HW ident entries from ramdisk
Only xpeng needs this

Change-Id: Iaac7d76f4cbdc32ef186fb7d327b2d3a8b195f9f
2023-04-23 00:45:15 -06:00
Marc Bourgoin
555896aae7 Revert "sm7325-common: Use bluetooth firmware from A52s"
This reverts commit bdbd9a4df4.

Reason: Xiaomi Mi 11 Lite 5G NE (lisa) got A13 stock ROM so we can just
flash their bluetooth firmware partition onto ours and fix the issue
right at the source and drop the fix we have in our device tree.

Change-Id: I21f4918f8d0fc794db29b4aa2235c238c36a800e
2023-03-11 03:04:30 +01:00
SGCMarkus
bdbd9a4df4 sm7325-common: Use bluetooth firmware from A52s
This fixes the bluetooth module crashing due to firmware that should support
BT LE as yupik is BT 5.2 but instead it fails.

Change-Id: If744eff8ceb7f665b0304fb4a506efd23926bbe1
2022-12-24 00:27:59 -07:00
Wang Han
16751d26f6 sm7325-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2022-12-11 17:49:01 +01:00
Rick Yiu
0c6409907d sm7325-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
2022-12-11 17:49:01 +01:00
Alexander Koskovich
1fae7ae657 sm7325-common: rootdir: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-12-11 17:49:01 +01:00
Cosmin Tanislav
f65f648212 sm7325-common: remove light hal
Change-Id: I5307764a5a04b5a28f940b31759a4552cc75a0a2
2022-10-08 00:09:40 +02:00
Mohammed Mirza Mandayappurath Manzoor
ca42ad08c8 sm7325-common: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2022-09-29 22:21:26 -04:00
Marc Bourgoin
032a78d43f sm7325-common: Import stock charge_only_mode
Change-Id: I3542bac25ac2a161a165c55cbabe93ec75c04ce8
2022-09-20 10:08:57 +02:00
dianlujitao
3605aa48b1 sm7325-common: Ensure multisim property gets set at early stage
Change-Id: I8066dbd0a466f008ec1ce3144b76922fe1b7e750
2022-09-03 12:27:22 -06:00
Jimmy Chen
52791ba7c5 sm7325-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-08-28 10:48:45 +02:00