Commit graph

122 commits

Author SHA1 Message Date
LuK1337
3e6db0abc2 sdm660-common: rootdir: set swappiness to 60 2024-01-14 17:19:23 +01:00
Volodymyr Zhdanov
49b6570b78 sdm660-common: rootdir: Don't configure zram in init.qcom.post_boot.sh
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Tashfin Shakeer Rhythm
f21f68411b sdm660-common: Enforce read-ahead to be 128 KB after boot
Google has mentioned that 512 KB performs worse under heavy memory pressure.
Therefore, hardcode 128 KB read-ahead for all which is optimal.
Also, remove the unused block paths.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
c81cf71b38 sdm660-common: rootdir: Do not pointlessly configure cpu boost
CAF's CPU boost has been disabled in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
1ae8e9ac22 sdm660-common: rootdir: Do not pointlessly configure rtg boost and pl
rtg boost and pl have been removed from schedutil in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Arian
fe308799a1 sdm660-common: rootdir: Remove printk loglevel setup from init.qcom.sh
Change-Id: I3bba49505efd42e2276116c5cdd31a921acf30a8
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Arian
8c7b7a78c2 sdm660-common: rootdir: Don't install test apps
Change-Id: I642691c52afa777eeed50a280574dcfba0eae155
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Pavankumar Kondeti
9c4a02b3e7 sdm660-common: rootdir: post_boot: set the default IRQ affinity for SDM660/SDM630/SDM845
Set the default IRQ affinity to the primary cluster for SDM660,
SDM630 and SDM845. When a CPU is isolated/hotplugged, the IRQ
affinity is adjusted to one of the CPUs from the default IRQ
affinity mask.

Change-Id: I1f33fdf2a06e1cb086904dabaaa0414aafcf07c5
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Randall Huang
5c11cadd03 sdm660-common: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
pix106
bc4950e9be sdm660-common: rootdir: drop schedtune 2023-03-20 07:18:06 +01:00
Quallenauge
ef773f16c7 sdm660-common: rootdir: Limit cpufreq rate via down-/up_rate_limit_us knobs.
This prevents to change the frequency in a very short
manner which seems to fast for the hardware and
causes performance drops.

Change-Id: I678d6dc3dc81d756ba1b2031cd369d95d9298ac0
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Sebastiano Barezzi
ea5d850def sdm660-common: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:57:01 +02:00
Edwin Moquete
097c21d39f sdm660-common: Update radio blobs from ginkgo
* Cleanup and disable ATFWD

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-05-15 10:25:30 +02:00
Kaushik Sadashiva Reddy
a7a76e8876 sdm660-common: rootdir: Remove legacy ril-daemon rules
CRs-Fixed: 2791395
Change-Id: I57c9d9b2ea5b71b0d7296a6758ff8305b3903a08
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
clarencelol
efae553016 sdm660-common: rootdir: Update init.rc and init.sh
from LA.UM.9.2.1.r1-08000-sdm660.0

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Edwin Moquete
dfe1a34663 sdm660-common: power-libperfmgr: Tweak CPUBW configs
* Also include this commit 60e8473847

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Subhajeet Muhuri
e92640f00f sdm660-common: rootdir: Drop the silver cluster's default IRQ affinity tuning
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: Reinazhard <reinazhard@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
ecd8dd08bd sdm660-common: rootdir: Configure and add more cpusets from 4.4
Signed-off-by: orges <me@orgesified.ml>
Change-Id: I85271cf5c420c74276fb0c6f26ce3d7fb9b1b8b6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: Moved post_boot cpusets to init.target instead

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Alex Naidis
564ddb664d
sdm660-common: Override readahead to 128KiB after post-boot
* Qualcomm decided to increase the read-ahead value to 512KiB [1].

 * This value resulted in frequent cases where read-ahead
   would be waiting for new I/O requests and thus ending
   up being synchronous rather than asynchronous.

 * As result, the main goal of Qualcomm's patch [1] which
   is to increase throughput ends up in a regression where
   read throughput is significantly lower than it ever
   would be with the recommended [2] read-ahead value.

 * This patch uses our existing loop in ramdisk to set
   the read-ahead value to 128KiB.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.19/commit/include/linux/mm.h?h=LA.UM.9.12.r1-09000-SMxx50.0&id=25d04e4ceb7c067907901842c223d62973d73a75
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v4.19.160#n2397

Change-Id: I1980d904568fe4f1ce7b676452bcc44e4689f02f
Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-06-27 22:21:00 +06:00
Shashi Shekar Shankar
55380ea688
sdm660-common: Update post_boot for sdm660 k4.14/k4.19 upgrade
Post_boot changes for sdm660 k4.14/k4.19 upgrade.

Change-Id: Ib891f1ca606cb686d38bba5f7fe101d395d8b6c3
CRs-Fixed: 2611111

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-07 09:20:14 +06:00
Vishalcj17
9922a089dd
sdm660-common: rootdir: Set up/down_rate_limit_us as 1000
- In my testing, i faced some CPU Stalls with the old setup. (caused some spikes in jitter and non-consistent hackbench).

- 1000 was perfect in my testing and did not hit over power usage.

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-17 01:31:59 +06:00
OdSazib
bdd0d21f13
sdm660-common: Checkout rootdir and init stuffs from caf
* adapt with eas and cleanup unnecessary stuffs
* Fixed offline charging and usb functions

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-08 14:06:33 +06:00
OdSazib
d40220f154
sdm660-common: Enable block-based 2GB zRAM for EAS
* Guard the post boot script for HMP only

Partially reverts commit fd809eba57.
Signed-off-by: OdSazib <odsazib@gmail.com>.
2020-12-22 20:57:05 +06:00
joshuous
fd869a1e7f
sdm660-common: rootdir: performance: Update power tweaks for EAS
Change-Id: I4133201f0735777a86f3bd59b007774cd7552304
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
Himanshu Agrawal
315e115009
init.qcom.usb.sh: Set USB default composition to 9091
Set USB default composition to 0x9091 having diag,serial_cdev,
rmnet,adb for 8909 with kernel 4.9.

Change-Id: I3066799d801bc9d8451b0d5a0bcd6d4055d1f735
2020-10-19 11:36:06 +06:00
Vol Zhdanov
6c2913c9b8
sdm660-common: add qcom early boot script
* to control power off alarm feature

Change-Id: I0d2f5b96f8604d459130aec5f20f87cc75c7bad0
2020-10-19 11:36:06 +06:00
Dušan Uverić
3c2614ac95
sdm660-common: rootdir: always use lz4 for compression
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I955323fdc7ac3230bcf3c7a3af1ab54ad4e841e6
2020-10-19 11:36:06 +06:00
Dušan Uverić
fa33bc54b6
sdm660-common: rootdir: migrate tunables from post-boot to init.performance.sdm660
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I00cd6a57a8e7401160aa9eefb96b73ce13a20b3c
2020-10-19 11:36:06 +06:00
Dušan Uverić
aa46d9b409
sdm660-common: rootdir: cleanup init.qcom
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: Ie7a2d7337b95e2d1a48e1c506d68d775aaafda8c
2020-10-19 11:36:06 +06:00
Nicholas Lim
302d73e8c6
sdm660-common: Drop CAF Adaptive LMK script
* In favor of Low Memory Killer Daemon (lmkd).
* Adaptive LMK was also dropped quite sometime ago
  making it useless to keep this script around.

Change-Id: Ie221d6f669d261bb871a77fed712b0df3f5ba248
2020-10-19 11:36:06 +06:00
Artem Borisov
2ab6731d33
sdm660-common: Disable PPR on all targets
* No matter how hard QC tried to improve these features, they still suffer
  from stability issues, mainly due to the unpredictable nature of vmpressure
  they rely on.

Change-Id: Icd14c79298a3c268abffa06ed17a79dececf423a
2020-10-19 11:36:05 +06:00
Saurabh
3501d248b5
sdm660: rootdir: Enable sys.use_fifo_ui prop if EAS is present
* When sys.use_fifo_ui is enabled, ActivityManager tracks the UI thread and RenderThread (the two most UI-critical threads) of the top application and makes those threads SCHED_FIFO instead of SCHED_OTHER. This effectively eliminates jitter from UI and RenderThreads; the traces that've gathered with this option enabled show runnable times on the order of microseconds instead of milliseconds.
* However, it should be enabled only when we have EAS i.e a capacity-aware RT scheduler because if RT load balancer is not capacity-aware, then there would be a 30% reduction in application startup performance.

Reference: https://source.android.com/devices/tech/debug/jank_jitter

Signed-off-by: Saurabh Charde <saurabhchardereal@gmail.com>
Signed-off-by: Aston-Martinn <advaithbhat9@gmail.com>
Change-Id: I8b55ad1899be985fc7357abaf06d68d6a130fb75
2020-08-12 02:11:32 +06:00
Raghavendra Kakarla
856bb08440
init.qcom.post_boot: Enable APSS Low Power Modes
Enable APSS LPMs for scuba.

Change-Id: I554b92197455ef01cffacb8e69ac9c79cf75774f
2020-08-12 02:11:32 +06:00
Dyneteve
a97ec5da65
sdm660-common: rootdir: Stop configuring read ahead from post_boot
Change-Id: Ic6706ee9ef05e8d465ff0c535e6feb876eb35e6c
2020-08-12 02:11:32 +06:00
Dusan Uveric
98660408d3
sdm660-common: ramdisk: adjust cpubw bwmon values
Those values seem off. CAF maybe messed them up as those values look possibly wrong.
Those values are used as powerhint values on pixel 2 and 3.

Signed-off-by: Dusan Uveric <dusan.uveric9@gmail.com>
Change-Id: I1eebb1f57a7e91f26b9900cda65ec151b05ecbd7
2020-08-12 02:11:32 +06:00
Artem Borisov
3eaea533e1
sdm660-common: Disable ALMK on all targets
* No matter how hard QC tried to improve these features, they still suffer
  from stability issues, mainly due to the unpredictable nature of vmpressure
  they rely on.

Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I8256abb91b7e3160670ec45a22fdceeecc2a928c
2020-08-12 02:11:32 +06:00
Max Weffers
10e587e287
sdm660-common: Start vendor.cdsprpcd only for sdm660
* disable it for sdm636 and sdm630
* fixes logspam on whyred with cdsprpcd not able to start

Change-Id: I4de5333709c2fb57f315b47842fbd12d4d80c36d
2020-08-12 02:11:32 +06:00
richagar
176cb160f9
Added new revision id 2.0.2 for lito
New revision id 2.0.2 added for lito along with 2.0

Change-Id: I98b23d9c160a61afd9a12d12eeda8a91aede87eb
2020-08-12 02:11:32 +06:00
Chitti Babu Theegala
6aaca1af7e
scuba: Initial power/perf tunings
Scheduler, Governor, LPM settings for scuba

Change-Id: Ibb5c29ea5bd8e93fe4759ef18c81500666c2a29c
2020-08-12 02:11:32 +06:00
Divyanand Rangu
28e54cf755
post_boot: updating post_boot for <=2 GB devices
Removing the check of 1GB RAM while enabling
low_ram target specific configurations to enable them
for 2GB RAM targets as well.
Updating ZRAM size to 75% of RAM for <2GB devices

Change-Id: I8d5341a4397cd20f2c59e7396801fcbea7fe5b73
2020-08-12 02:11:32 +06:00
Libo Jin
7bacadf2fb
Perf:Add input boost
Change-Id: I006c49ff5ee5412abc72855229c34ea81f0db4d8
CRs-Fixed: 2607022
2020-08-12 02:11:32 +06:00
Stylogey
0d5c6a79f6
sdm660-common: remove improvetouch related stuff
* Not host based touch processing isn't supported by the touchscreen.

Change-Id: Ibc841d8c36eda56e58184286676e1d710ff18392
2020-08-12 02:02:40 +06:00
Stylogey
5dd7ed0bc3
sdm660-common: rootdir: lower backround cpuset
Change-Id: Ice155da81b9cd63e5bd28c16b11b858f37d87dfa
2020-08-12 02:02:40 +06:00
Stylogey
ae3c954326
sdm660-common: rootdir: use lower screen-off cpus
Change-Id: I5eae018ec4e80b00e37dc9ff8cd356bc2cbb9280
2020-08-12 02:02:40 +06:00
Stylogey
177f2057df
sdm660-common: rootdir: import unmodified init.qcom.post_boot.sh
* from LA.UM.8.2.r1-06500-sdm660.0

Change-Id: Ibc72899b0ceeabb07a2828102b37b874ae3a3c80
2020-08-12 02:02:40 +06:00
Stylogey
60d1a018b4
sdm660-common: rootdir: remove unused init.mdm.sh
Change-Id: I6d6aac2872ad80b64f753d8f96a6e2c7731d5d0b
2020-08-12 02:02:39 +06:00
Stylogey
23b70a785a
sdm660-common: rootdir: update init.class_main
* from LA.UM.8.2.r1-06500-sdm660.0

Change-Id: I38e98ec836e41e8cd405cccd597fd10d3f8f11d2
2020-08-12 02:02:39 +06:00
Dušan Uverić
604c8b8600
sdm660-common: always do printk logging at KERN_WARNING level
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: Ia027713e15692f120628c376b7bbd99ae4c450f4
2020-08-12 02:02:38 +06:00
Matthew Leung
0ca316c45c
post_boot: Update htbp for Chitwan CDP
Change-Id: I3d20b83e3df9a8f47d34955e9024c12b58fbba26
2020-08-12 02:02:37 +06:00
Santosh Mardi
25736871b4
post_boot: update L3 nodes for lagoon target
Update L3 dcvs node paths used for configurations
in lagoon target.

Change-Id: Ifcdcf3343f63aaee10269893dfea90e71199d0f6
2020-08-12 02:02:37 +06:00