Commit graph

25 commits

Author SHA1 Message Date
Rick Yiu
4981fc30f8 Add sched qos support
Add task profiles and set permissions.

Bug: 355612114
Flag: NONE init rc file does not support flag
Test: build pass
Change-Id: I44ab2097bbf919c1487d40ee68e74100c11b8891
2024-12-06 08:19:59 +00:00
Jimmy Shiu
7f7e44cc15 [task_profiles]Add MaxPerformance and PreferIdle to InputPolicy profile.
Flag: com.android.input.flags.enable_input_policy_profile
Bug: 369574417
Change-Id: I7800c8a86f60a7513fdd6a4470002e6a62ede4ec
2024-10-02 03:13:49 +00:00
Jerry Chang
b6da7df66e Add input event profile to mitigate input latency of input threads
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: I0c0a39e3fc03d8df4e9e87cf61fb8e1dafcfc996
2024-09-18 12:08:38 +00:00
guibing
e9d930291a init: gs101: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: UIbench ab test
Change-Id: I6f8aa26587578860483d6ededf88e9c04a926644
2023-10-13 17:19:09 +00:00
Rick Yiu
eb8f4ddf63 Relax cpuset for OTA
With vendor group throttling, we could relax the ota cpuset.

Bug: 201260585
Test: cpuset changed as expected
Change-Id: I1c5ce6f96fca9f17db9aea9271d89f99ecd30fce
2023-05-01 07:58:51 +00:00
chungkai
abf92a16d6 sched: move sysfs to procfs
Modify the path of vendor_sched nodes

Test: work normally
Bug: 216207007
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Id9d85bb742dbfe96cc7e9fe8572a6a610a9f592e
2022-03-29 10:02:47 +00:00
Rick Yiu
4f3baf3b80 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
(cherry picked from commit 72b0f768ee)
2022-03-01 04:23:36 +00:00
Rick Yiu
ec9700f0fb Change the cpuset of OtaProfiles
Previous setting is based on cpu shares, which is disabled first, so
we need to change the setting.

Bug: 218420168
Test: build pass
Change-Id: I5528fdccb77f82fc6b4b463476b85aff6b72dbc3
2022-02-08 14:38:02 +08:00
Wei Wang
3c5725a6d8 Remove cpu controller usage in P21
To avoid lock contention, removing cpu controller usage completely for
p21.

Bug: 208895940
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I80fdd7301d23243ac8e4b2e633cc1e16283227ea
2022-01-31 11:40:53 -08:00
Rick Yiu
219111e484 Appy vendor setting for OtaProfiles
Use a new vendor group, ota, for OtaProfiles, and set its uclamp.max
and group_throttle to 40%, which benefits both performance and power
of OTA process.

Bug: 199006579
Test: value set as expected
Change-Id: I63375f3a286f27ab6c54413d6488b175305e6607
2022-01-11 08:58:11 +00:00
Rick Yiu
461433004f gs101: Re-enable bg groups
Bg groups are disabled on sc-v2 first, re-enable them on master for
more evaluation.

Bug: 171740453
Test: check bg groups are active
Change-Id: I6bfbbd79fa898cde99d3ba31ff5766de0e4b4c7a
2021-12-15 09:05:41 +00:00
Wei Wang
2cf22ea5b3 Remove bg group usage
Given the current suspects that the bg throttling may cause extra longer
runnable in P21, remove its usage.

Bug: 208895940
Test: book and check cfs group
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: If7f20646e944eab8d42e6698e08069b608a0ea7a
2021-12-13 22:45:55 +00:00
Rick Yiu
1b06962002 Configure dex2oat group settings
Also associate with its vendor group.

Bug: 201223712
Test: build pass
Change-Id: I86a2e2eb628d2f412079e9c8321809f48b1e4be3
2021-10-26 07:09:27 +00:00
Wei Wang
414066f103 Use sysbg group for system background jobs
Bug: 201428466
Test: Build and boot check system_server's sched group
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I03396b661788de0a5963e29abfd95f609e9dc7ec
2021-10-12 13:50:57 -07:00
Rick Yiu
853246aeb8 gs101: Add a new profile for camera power tuning
Create CameraServicePower profile.

Bug: 192607122
Test: build pass
Change-Id: Ia4ff63dabc51d449d4b4acc95a2685c10643c509
2021-07-23 13:49:53 +00:00
vincechiu
f3b644db0c Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-07-23 09:03:24 +00:00
Jimmy Shiu
b653411208 ADPF: taskprofile for uclamp fork reset group
Add ResetUclampGrp and NoResetUclampGrp taskprofiles to manage vendor
uclamp_fork_set flag.

Bug: 191973176
Test: build and manual test
Change-Id: Ia9c5677c7d5855bb874a714678246ee06c9471bb
2021-07-21 00:47:38 +00:00
Wei Wang
30393266aa Boost SF when interaction hint is active.
We have seen cases SF main thread running longer occasionally which may
run in danger of missing frames. This CL lifts cpufreq for SF when touch
boost is active to compensate the sudden jump of its cpu demand.

Bug: 192099706
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I49b2d589249f60a38eab907afbadfbcfdd233d1c
2021-07-14 06:18:59 +00:00
Wei Wang
2fee52bbf5 Relax SurfaceFlinger cpuset and adding uclamp.min for RenderEngine
SurfaceFlinger IPC improved with mid and big cores, relaxing cpuset will
help improve its efficiency. For render engine, we set uclamp.min to
skip scheduling on little cores.

FWIW, we let the RT scheduler figure out what is good for perf/power.

Bug: 170507315
Bug: 191054286
Test: Build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I880cf549e33a3a2f629e8260366c4ce8c34c3ae6
2021-06-15 19:15:18 +00:00
Rick Yiu
daa6fa640b gs101: Modify system and system-background gropus
NormalPerformance is for system, and ServicePerformance is for
system-background.

Bug: 182509410
Test: build pass
Change-Id: Ifeec11de42fa880cd00b34d504bf6d8ff90dd15c
2021-05-21 17:13:34 +00:00
Taeju Park
185653e3a2 vendor_hook: separate uclamp configuration
Bug: 182509410
Test: build
Change-Id: Ide71afdbeb5fd79800823d0d8bb9b2a3a54bcca9
Signed-off-by: Taeju Park <taeju@google.com>
2021-05-12 18:28:50 +00:00
Jia-yi Chen
a6889fd404 Revert "Update power hint for camera workload"
This reverts commit 637fc9e8d727121276cf8dea2976ac52f8da8d15.

Reason for revert: Camera EBUF overflow observed after launching GCA.

Bug: 187760882
Change-Id: I2357d943f4b4d96ffa7a156671ac7c790640a5ed
2021-05-11 02:22:56 +00:00
Wei Wang
e895392c27 Update power hint for camera workload
1) Enable prefer_high_cap_enable
2) Set high_capacity_start_cpu to 4
3) Set cpu.uclamp.latency_sensitive to 0
4) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4ea14e82bf65f72a1113359cd163230a767e816b
2021-05-10 18:29:41 +00:00
Rick Yiu
e8d7fb7f88 gs101: Change LogFailures to string
To match the definition of proto file.

Bug: 184715843
Test: function works
Change-Id: I8d6106bdc6978edb292e1f3ef0237469a77fe902
2021-04-10 04:19:36 +00:00
Robin Peng
c2b5ca99e3 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I2ebf7f019afed1cbe9b60dcd82581bd3a52fe109
2021-03-06 16:31:12 +08:00