Commit Graph

59 Commits

Author SHA1 Message Date
samou
e79b7cdacc thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: I613fbb3d170f6befeaf8c884bce4b5455729ba2e
Signed-off-by: samou <samou@google.com>
2024-08-12 12:32:21 +00:00
guibing
415a0f80b5 Adpf:lynx: switch to multitier heuristic boost.
Bug: 344685639
Test: Checked the trace file running on the device.
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I8f21008a15f1805d6b193e56cdd8ba5146270e90
2024-07-26 23:20:09 +00:00
guibing
35869b9660 Adpf:lynx: enable heuristic boost.
Heuristic boost will adjust the ADPF boost profile when the
powerhal detects the power session is very janky, providing more
boost for deadline sensitive threads managered in the session.

Bug: 341111433
Test: adb shell dumpsys android.hardware.power.IPower/default;
      Check the device adpf sessions' traces.
Change-Id: I191ed6f479a8f49082d64e9fb1723884634133c7
2024-05-17 07:07:34 +00:00
Matt Buckley
d0fd806ba8 Add POWER_EFFICIENCY uclamp max to adpf config
Add the "UclampMax_EfficientBase" value to the ADPF config in the
powerhint.json to specify efficient core scheduling in the static
case, and "UclampMax_EfficientOffset" for the dynamic case, for this
device.

Bug: 277285195
Test: manual
Change-Id: I694eed1342c5becbd3161b88342cd66868ddb78b
2024-04-29 19:42:06 +00:00
Jimmy Shiu
3773cd4163 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values
Bug: 329483662
Test: Manual Test
Change-Id: I1001f1f81839e9bd696785269d72d0e30bfd7da8
2024-04-10 11:45:08 +00:00
Jimmy Shiu
b4234a4d1a powerhint: set uclampmin_init value for applying CPU Load boost
Bug: 329483662
Test: Manual Test
Change-Id: Icd31a2abfdb724ee83a34125bb7f49e320acd947
2024-04-03 01:04:46 +00:00
Sam Paradis
dfea7bf269 Change FACE_UNLOCK_BOOST to Maximize CPU Frequency
This is part of an optimization that limits the length and prevelance of
this power hint. Strict, ultra-agression minimizes power and latency
versus always-on mid aggression.

Bug: 297964952
Change-Id: I0dac04d30e623a869be89ac6a5cfe002a64da48e
2024-03-13 17:12:21 +00:00
David Chen
61c2524f0b Add zoom boost in powerhint for L10
This patch is meant to reduce frame drop rate in 60FPS video recording with zoom in/out.
The boost will be triggered at 60FPS video recording while zoom ratio change (for each request that contain zoom ratio control in metadata), and will last for 15 frames.

Test: gca_smoke_test
Bug: 315102326
Change-Id: I7f0587881c131590f629dab838aa734a8b082c70
2023-12-12 08:53:26 +00:00
Yvonne Yip
2d460b2afc powerhint: game mode tuning
Test: test build
Bug: 295636226
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:00d94318d492669c6c132d702ee73ccd515fa5bf)
Merged-In: Ie1c7672d9950630ee868538e49937580d3aece4d
Change-Id: Ie1c7672d9950630ee868538e49937580d3aece4d
2023-12-06 23:30:39 +00:00
Yvonne Yip
7b14f3da28 powerhint: add game mode tuning nodes
Add down_rate_limit_us nodes, tapered_dvfs_headroom nodes.

Test: check sysfs when playing game
Bug: 295636226
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cdf834206df344a704f7f6f21e503f0e3abd4bbb)
Merged-In: Iae9629e0f69d437f7444022d81a478d0c12f2bbe

Change-Id: Iae9629e0f69d437f7444022d81a478d0c12f2bbe
2023-12-06 23:30:29 +00:00
guibing
f43795206a powerhint: lynx: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in powerhint json file to match the change.

Bug: 289151587
Test: UIbench ab test.
Change-Id: I9b4ac68990cd720deac7d933f1b2fc25e406cc40
2023-10-13 17:18:24 +00:00
Jimmy Shiu
8bfa084300 powerhint: Add DISPLAY_CHANGE hint
Add DISPLAY_CHANGE hint for display layout change due to rotation or
switching between inner and outer panels.

Bug: 298150450
Test: build pass
Change-Id: Ic36b8b9928e9cdffce3697b5eb12cb586dcc5d7d
2023-10-03 14:57:34 +00:00
Rick Yiu
6802c8083d Disable limiting camera_hal for LAUNCH hint
If auto rotation is enabled, it will trigger LAUNCH hint while
camera is running if device rotates, which could limit camera_hal
tasks to little cores. So, disable it first until there is a new
hint for the rotation event.

Bug: 297273578
Test: build pass
Change-Id: I5040ae4893632f7f7b88cb23ad45554f17fee04c
2023-09-19 07:10:47 +00:00
Chungkai Mei
8b64ced3ef disable vendor idle balancer
Camera is highly optimized in launched devices, so that we disable idle balancer to avoid influencing previous optimization.

Bug: 281489720
Change-Id: I210f5c14ec589b06e8d8e80799cf7cb650baa9c5
Signed-off-by: Chungkai Mei <chungkai@google.com>
2023-07-12 14:48:37 +00:00
TeYuan Wang
e63989fe9d powerhint: remove the duplicate thermal powerhint settings
For the current design, thermalHAL will only enable one hint base on the current severity and disable the previous one. As a result, the power hint of higher severity should maintain the actions from lower severity which cause the larger config size and maintenance effort.

The new thermalHAL design will keep the lower severity's hint enabled, so we could remove the duplicate policies from higher level.

Bug: 241737737
Test: verified lynx by emul_temp
Change-Id: Icd62dcdcbc0c2651cb6522d6663bc513646bbaad
2023-06-15 15:49:50 -07:00
paulsu
196d3648b3 Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default am: 3eb0dc523f am: 9c8844e266
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/23672755

Change-Id: Ib499d1b25b490fd0d5b1601530b5c9adb65111c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 09:50:47 +00:00
paulsu
3eb0dc523f Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default
Bug: 280258727
Test: Found regression in b/286002292, local test.
Change-Id: Ief3d1bded3add877b23b4c2b211cef6d5a9eaf57
Signed-off-by: paulsu <paulsu@google.com>
2023-06-14 05:19:42 +00:00
Ziyi Cui
a75c39090f powerhint: Reduce StaleTimeFactor
Reduce StaleTimeFactor for power saving

Bug: 269523712
Test: boot and run uibench
Change-Id: I5d6c88ce46074673c87476d1dcc20c4fd9b9b1e7
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-06-13 17:34:36 +00:00
paulsu
599c4d1bd8 Create group throttle powerhint
Test: Local test
Bug: 280258727
Change-Id: I1e767f78b85a04cde8f048885af2d129a01321a8
Signed-off-by: paulsu <paulsu@google.com>
2023-06-08 17:17:32 +00:00
Qais Yousef
d57beb455c The dvfs headroom was split into its own knob. Update to use it.
util_threshold only controls migration margin now. dvfs headroom has its
own new knob.

Bug: 261705301
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I48d330cb7d9d82d05ec0dfc4b38ea0d8a22409aa
2023-05-12 01:02:23 +00:00
Peter (YM)
378190d82f thermal: lower tj control temp during battery save
Use LOW_POWER power hint to detect and lower the control temp
for junction control loops.

Bug: 266011718
Test: Build and boot on device. Check thermal control temperatures
during battery save

Change-Id: If2e0756b24913ed5d71e499e219f7b60b947baaa
2023-04-25 21:48:15 +00:00
Qais Yousef
c0f618e356 powerhint.json: Update uclamp_min hint to account for margin
Upstream has fixed relationship between uclamp_min and margin which
means uclamp_min value between 80-100% of capacity of the CPU is a valid
value and will not cause upmigration.

To keep the current hints in powerhint.json the same, we must update
uclamp_min to be capacity_orig_of(medium_cpu) + 1.

This change is dependent on uclamp vs fits margin in GKI, vendor
modules. And an improvement in sched_pixel to ignore the 25% boost if
the only reason to request the frequency is uclamp_min.

To cater for the later - we multiply each uclamp_min value with 1.25
- except ones that look intentionally set around capacity boundaries.

Bug: 261695590
Test: PtsUiBench
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I4689a953734b6049da14ec13ef399c1c686b1024
2023-04-25 21:27:34 +00:00
Jimmy Shiu
b55d0a7933 powerhint: Boost GPU(302000) by 1st frame
Take ADPF_FIRST_FRAME hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: If9265845c3497e64f9fe944a24061ca21cbedd82
2023-04-19 22:02:15 +00:00
Jimmy Shiu
ea74506c5e powerhint: Boost GPU(302000) by 1st frame
Take ADPF_FIRST_FRAME hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: I840c7f1c1c8347ba71b9139ea3615669c9294071
2023-03-07 01:13:51 +00:00
David Chao
0ad211e236 thermal: more aggresive dex2oat throttling am: ba9a2b62a6 am: c64dc6f6ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21455927

Change-Id: Idd8c51a734287799d57d1f0fc2f48cc8beb5fd5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-06 05:53:44 +00:00
David Chao
ba9a2b62a6 thermal: more aggresive dex2oat throttling
Bug: 269409489
Test: Build and boot on device
Change-Id: I255adfbe33937a04c7d9bd37bd4831e35c07f688
2023-03-06 04:39:02 +00:00
Rick Yiu
90f1fab540 Change CAMERA_CAPTURE_CPU_THROTTLE setting
Sync the value to CAMERA_STREAMING_STANDARD.

Bug: 260372860
Test: build pass
Change-Id: I5dc425e995cf8856867c7bcfb21cfa202329b105
2023-01-31 06:53:45 +00:00
Rick Yiu
49e68d8056 Change CAMERA_CAPTURE_CPU_THROTTLE setting
Sync the value to CAMERA_STREAMING_STANDARD.

Bug: 260372860
Test: build pass
Change-Id: I5dc425e995cf8856867c7bcfb21cfa202329b105
2023-01-18 23:01:02 +00:00
Luke Chang
b2e0d61b9f powerhint: add CPU_LOAD_RESET rule
Set minimum mif freq for 1st frame to avoid memlat can't reflect in
time.

Test: Build and check 1st frame boost
Bug: 259275437
Bug: 263383561

Change-Id: I48c563ff6a565598e90243b16a27068be69c85eb
Signed-off-by: Luke Chang <lukechang@google.com>
2023-01-08 16:48:28 +00:00
Chungkai Mei
47ab30f2e5 Remove UClampThreshold hint
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-08 09:43:26 +00:00
pointerkung
1be5765f1e Camera powerhint update
Sync PMU and EM_Profile tuning changes (ag/19819352, ag/20017229) for 60fps power saving.

Bug: 253411744
Test: Build pass, GCA, Camera power/performance evaluation
Change-Id: I21ddc855c0eace1ad516ba1c9ccd9736fc924671
2022-11-30 05:33:25 +00:00
Rick Yiu
e57a5f03b5 Change the default cpuset of camera daemon
Changing cpuset itself takes time, so we should reduce the cpuset
change as possible. Since all camera streaming mode change to the
same cpuset value, we could make it default setting.

Bug: 240889279
Test: build pass
Change-Id: I11a865fa2eeeb67225d4b129497b1cd85237644f
2022-11-21 10:17:59 +00:00
Kyle Lin
c821db2c4c powerhint: relax the cap when camera exit
Camera hints was canceled at activityStop and applied the rule for
a while after LAUNCH hint, exten the LAUNCH HINT to fix it.

Bug: 255927500
Test: build and launch/exit camera
Change-Id: I86b19467f6038a7fde0935bf79f0a0e6bc76523b
2022-11-11 17:45:52 +08:00
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