Commit Graph

26 Commits

Author SHA1 Message Date
pointerkung
ea20ad99c3 Camera: Enable optimized TNR frequency and create TNR low power hint.
Bug: 243729855
Test: Build pass, GCA, check 4K60 and 240fps TNR clock frequency
Change-Id: I7cede8b8518abb2b16628b6ac5964b8a0c1693d7
2022-11-01 11:33:43 +00:00
Rick Yiu
b05312f680 Limit camera daemon cpuset to little cores when app launch
When exiting camera app, camera daemon is still busy in background,
which may affect the launch animation of launcher. So, limit the cpuset
of camera daemon to little cores for 1 second when there is app launch
hint to improve it. This only happens when camera is running. Also bypass this behavior when video recording is active.

Bug: 240889279
Test: camera daemon cpuset changed as expected
Change-Id: I130b1e4718f8e5ef47ad761a2a73d86697d0f8bc
2022-11-01 07:27:31 +00:00
pointerkung
d71041d54d Increase MIF frequency for 30fps
This CL increases min MIF frequency to 1352000 in 30fps mode.
Although the MIF power consumption increases due to this
change, but the reduction in CPU cycles results in over-all SoC
power saving. This change also doesn't negatively impact framedrop
rate.

P22 change is ag/19820773.

Bug: 256564865
Test: Build pass, GCA, Camera power and performance evaluation
Change-Id: Iacf9172f0ce9edeecb14d38edc3c1466e7e4c7fe
2022-10-31 09:10:08 +00:00
Shanmuga Pandi M
b4fdef36a5 Don't set the min CPU frequency to max frequency for CAMERA_SHOT
Bug: 254797125
Test: 3rd party APP snapshot, GCA live video shot

Change-Id: I7b1012dec9764ebed7744ffa4216028f2948eb9d
2022-10-21 09:58:06 +00:00
Shanmuga Pandi M
9342bb887b [L10] Relax CPU minimum frequency boost for LAUNCH_CAMERA
Bug: 248960565
Test: CTS testCameraLaunch, GCA
Change-Id: I075b7f4447327be4ef601c531b43473f79dbc74a
2022-09-30 06:28:38 +00:00
David Chao
9f17360f7b thermal: more aggressive thermal throttling policy
- CPU/GPU more aggressive throttling

Bug: 248392264
Test: boot to home and thermal throttling worked properly
Change-Id: Idfa7ec21877a11000d2c6d17e4bbcabc9606f58c
2022-09-28 19:01:48 +08:00
pointerkung
554e1ecc47 Change util threshold of camera streaming high
Fine-tune the util threshold to "1100 1078 1024"

Bug: 243729855
Test: Build pass, GCA, 60fps recording power and performance test
Change-Id: I4a348127b913aa4783f69ba468be1fd77f784def
2022-09-20 03:22:36 +00:00
Richard Chang
8c5b4c367a powerhint: clean up unused hints in L10
INTERACTION is removed but some actions still use it.

Bug: 246738037
Test: pts-tradefed run commandAndExit pts -m PtsPerformanceTestCases -t
com.google.android.perf.pts.PowerHintJsonVerifyTest

Change-Id: Id7028106ac7ff1d41dc7d325aad5fa4d69bc2a54
2022-09-19 05:12:55 +00:00
TeYuan Wang
564f900b35 Remove frequency boost of big cores for FACE_UNLOCK
Bug: 245619770
Test: build
Change-Id: I46d29985e3ae859e61d9757d5451bd8509d31797
2022-09-16 09:01:53 +00:00
Siddharth Kapoor
a4a301a5fd Replace GPUMinFreq 151000 with 202000
Bug: 240479599
Change-Id: If7a5970b4f6d6049fc0aee4fc7caeb99ccbbdf21
2022-09-03 07:25:51 +00:00
Rick Yiu
28970d2643 Remove RestrictedCpuset hint
With systemui now changed its cpuset in early stage, we no longer
need RestrictedCpuset hint as workaround.

Bug: 242775562
Test: build pass
Change-Id: I8075188e82295f45fb7df1a88769eef37e7aec81
2022-09-02 04:59:41 +00:00
Rick Yiu
d6b9941038 Config dex2oat according to thermal status
Config dex2oat cpuset and thread count according to thermal status.

LIGHT cpuset = 0,1,2,3,4,5 thread = 6
MODERATE cpuset = 0,1,2,3 thread = 4
SEVERE cpuset = 0,1,2,3 thread = 4
CRITICAL cpuset = 0,1,2,3 thread = 2
EMERGENCY cpuset = 0,1,2,3 thread = 1

Bug: 242948832
Test: build pass
Change-Id: I04adb1aeb343b71a2741aaef1ad776398a3be1b7
2022-08-31 07:52:02 +00:00
jimmyshiu
b031889746 Enable ADPF CPU hints for SF
Allow these devices to send CPU hints to PowerHAL from SF to reduce
drops and save power.

Bug: b/241152899
Bug: b/195990840

Test: https://android-build.googleplex.com/builds/abtd/run/L70800000956157278
Change-Id: I81df99f4ec01f417d1589e2323de599819993590
(Port from commit 8a419466b86ab07a25fc18d7d6a2a9ee154f6839)
2022-08-29 12:23:04 +00:00
Kyle Lin
b06ff4dd49 Update MIFTargetLoad default values
Bug: 237365265
Test: build, boot and check the values
Change-Id: Ibdafe72dc7200c11f3aa84e49e49e6ed0d359b42
2022-08-26 10:28:46 +08:00
jimmyshiu
38d324f8d0 Remove FPS boost
Bug: 241312961
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I8e15a1b750e45e89fc12d2c021e9e0a756a1d394
2022-08-23 05:22:05 +00:00
jimmyshiu
6817895610 Remove universal touch boost
Bug: 236781877
Test: PtsUiBench
Change-Id: Icae3f31286dafcd7ca0df8fad07916d5a76f7929
Merged-In: Icae3f31286dafcd7ca0df8fad07916d5a76f7929
2022-07-25 18:36:45 +00:00
pointerkung
bedc610607 MIF frequency optimization for 60fps video recording use-case
This CL sets the MIF min clock frequency to 1539MHz, which based on
initial ODPM and MIPS measurements shows benefit both in terms of power
consumption and cycles-per-instructions (CPI), reducing the gap with R4
device.

L10 power and performance impact tests will update on the bug.

Bug: 239651545
Test: Build pass, GCA
Change-Id: I1b057f187e45bad46f4661bd5673f0f88aab3a93
2022-07-20 11:50:32 +00:00
sashwinbalaji
52219877d1 thermal: update control temp in powerhint
1) Change the default trip_point_1_temp and trip_point_2_temp in accordance to new config provided by hardware.
2) Removing AUR nodes

Bug: 233329602
Test: Used local build to verify the trip_point_1_temp & trip_point_2_temp when VIRTUAL_SKIN
severity is changed on updating quiet_therm temp.

Change-Id: I267032c23c22952e5eea106ca3b84a8cd74729a0
2022-06-29 12:48:36 +00:00
chungkai
c083bfcf65 powerhal: update powerhint
Test: Build pass
Bug: 236819367
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I407d64f6e0a1dad86db08b70059faae3eb78b5e8
2022-06-23 01:42:11 +00:00
Andy Hsu
429da86fff Sync GPU Powerhint settings.
Test: CTS.
Change-Id: Ie72bad0141c1e3b345e6809d2c87fe63a1f8f6f5
2022-06-23 01:04:40 +08:00
pointerkung
67854a9479 Camera: Update target load for high streaming case
Update target load due to Pro mid CPU
this hint impact the high streaming use case like 60fps / 120fps and
240fps.

Bug: 236682655
Test: GCA
Change-Id: I0f486e44267d30efa12b6c30ebf1d7aea8989892
2022-06-21 20:03:54 +08:00
chungkai
a928bbe50d powerhal: sync latest powerhint
we need disable uclamp_threshold and reduce_prefer_idle, boost FG group when apps launch and remove FPS based hints for TA boost.

Bug: 233423618
Test: build pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I3fe9318d46426c1e5ef7defe85126501313d419f
2022-05-24 06:15:59 +00:00
jimmyshiu
0a966c52ae powerhint: Add Adpf Profiles for L10
Add Adpf Profiles:
1. REFRESH_60FPS
2. REFRESH_90FPS
3. REFRESH_120FPS
4. UiHighBoostWithoutPid
5. UiLowBoostWithoutPid
6. UiLowNoneBoost
(Default is index 0)

Bug: 202158746
Test: boot to home
Change-Id: Ice04c590ac2ac9ff6dbeac1640fc9e3731a7e725
2022-04-20 13:47:14 +00:00
Daeho Jeong
c33e27eb8b disable powerhint for F2FS gc_urgent mode
Disable the powerhint for F2FS gc_urgent mode, since we are going to
replace this with the smart idle maintenance service.

Test: turn on/off the screen & check /sys/fs/f2fs/dm-*/gc_urgent
Bug: 214430685
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: Ia07ea20078c82f62cc450fd2b0fade83a65e66ae
2022-03-16 12:05:07 -07:00
Wei Wang
7474ca7df9 Temporarily disable GPU power hold during LAUNCH boost
P21 has been using GPU power hold during app launch to mitigate jank
from GPU power on latency.
However this same mechanism seems causing instability (may be related
to the new inter-frame power optimization). While the root cause is
being investigated, disable the boost.

Bug: 223828284
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Id04a1d09ebd5b36c1c7c55824da34bffb6435cab
2022-03-11 15:12:23 -08:00
Jimmy Shiu
3164f3d31b powerhint: fork powerhint from gs201
Fork the powerhint.json from gs201 and align the config with panther

Bug: 207573241
Test: build and boot pass
Change-Id: Ic517f1cd5462f3653de3742834ec251362e7849d
2022-03-02 13:47:49 +08:00