Commit graph

54 commits

Author SHA1 Message Date
Rick Yiu
af6713737b Merge "The dvfs headroom was split into its own knob. Update to use it." into udc-dev 2023-05-12 01:02:24 +00:00
Qais Yousef
39f1bf7894 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: Id026048db7c9ec21fd843783b918201230774d2a
2023-05-10 10:30:11 +00:00
Mao Lee
1ff12806bb Camera: Add the property and create the power hint to adjust backend min clock for 1080p30fps video stream for front cameras
Bug: 279141417
Test: adb logcat, GCA, CTS
Change-Id: I0f2a11980d0db5893e5f235271d569184b11dd43
2023-05-08 03:28:11 +00:00
Rick Yiu
99bd5e7c56 Fix wrong setting of ML_ACC
Bug: 261695590
Test: device boots
Change-Id: I53ee01f334009c460eae1ea4faa7bdde094d22f4
2023-04-26 09:15:48 +00:00
Wei Wang
5f9e313f78 Merge "thermal: lower tj control temp during battery save" into udc-dev 2023-04-25 21:46:42 +00:00
Qais Yousef
777bbfe51a Merge "powerhint.json: Update uclamp_min hint to account for margin" into udc-dev 2023-04-25 21:27:51 +00:00
Peter (YM)
479ce68e37 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: Ic2f643a5c48aefdd7ea137674513cd57c82ab23d
Signed-off-by: Peter (YM) <peterym@google.com>
2023-04-24 13:31:54 +08:00
Jimmy Shiu
6e6e02f461 powerhint: Boost GPU(302000) by 1st frame
Use CPU_LOAD_RESET hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: I370657c0e01baf936144024c12c1f8502624073f
2023-04-12 22:04:23 +08:00
Qais Yousef
98f52f4845 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: I60f4d7cd2cecf7ff4d73fa0cee1a09522b1d9bfd
2023-04-06 16:35:17 +00:00
TreeHugger Robot
4993a8c17a Merge "Camera: Lower CPU min frequency for GCA_CAMERA_SHOT_ALLCPU" into tm-qpr-dev am: 34e623f4c7 am: eed02aafd7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/21982323

Change-Id: I78cf5fb4617e367aca0f62434dc99fcb63fcbcc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-28 00:40:09 +00:00
pointerkung
dabbb43dbf Camera: Lower CPU min frequency for GCA_CAMERA_SHOT_ALLCPU
Bug: 272483004
Test: Build pass
Change-Id: I8f5a9c5459913de33dad957c939b8f51cc832119
2023-03-13 13:46:14 +08:00
Jimmy Shiu
4726366a11 Merge "powerhint: Boost GPU(302000) by 1st frame" into tm-qpr-dev 2023-03-08 18:17:03 +00:00
Jimmy Shiu
ee538e6ebc 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: Iac5c503e6fd8f19f0252b65f9ef10ed82b3ed378
Merged-In: Iac5c503e6fd8f19f0252b65f9ef10ed82b3ed378
2023-03-07 01:16:29 +00:00
Jimmy Shiu
4e0918a63c 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: Iac5c503e6fd8f19f0252b65f9ef10ed82b3ed378
2023-03-07 01:15:37 +08:00
Wei Wang
93c1a22615 Merge "thermal: more aggresive dex2oat throttling" into tm-qpr-dev am: ffa79ad7a6 am: 5077617ce8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/21475504

Change-Id: I1c4d932464db851d062997132d2a25d1e1048f84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:48:51 +00:00
Wei Wang
ffa79ad7a6 Merge "thermal: more aggresive dex2oat throttling" into tm-qpr-dev 2023-02-24 22:26:30 +00:00
Rick Yiu
109fc044e1 Merge "Change CAMERA_CAPTURE_CPU_THROTTLE setting" into tm-qpr-dev am: 6011bed809 am: 26b5d65463
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/21153641

Change-Id: Iea3e74528c79ae66f6d13ba993e9c90a23048b6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-17 09:56:38 +00:00
TeYuan Wang
9fab91e5ed thermal: more aggresive dex2oat throttling
Bug: 267841021
Test: Build and boot on device
Change-Id: Ic8356a391fc21af070c6700a310b0975b3ee5a56
2023-02-17 13:00:55 +08:00
Rick Yiu
99308c016c Change CAMERA_CAPTURE_CPU_THROTTLE setting
Sync the value to CAMERA_STREAMING_STANDARD.

Bug: 260372860
Test: build pass
Change-Id: Ia38516acfd8979a020051062d6fb83805af45aab
2023-01-31 06:09:49 +00:00
TreeHugger Robot
047dba34df Merge "add powerhint for fusion zoom" into tm-qpr-dev am: 9c02d4eb2d am: 7852b02139
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/20939690

Change-Id: I362855bbc4333c2a54fd3188c07650cbfafdce17
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 03:24:04 +00:00
pashalee
9ff8a1a9a7 add powerhint for fusion zoom
Bug: 262862625
Test: manual tests

Change-Id: I97e6fe57a3393bafb60c57557f003fc64ffcaef8
2023-01-11 08:08:09 +00:00
Luke Chang
3a31fe8035 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: I46385209ad41bc1fc3d0ee31c73924a972fdf9fa
Signed-off-by: Luke Chang <lukechang@google.com>
2023-01-08 16:48:38 +00:00
Chungkai Mei
610ae756aa 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:34 +00:00
TreeHugger Robot
331e326532 Merge "Camera: Enable optimized TNR frequency and create TNR low power hint." into tm-qpr-dev 2022-12-01 09:00:55 +00:00
pointerkung
383bee5df3 Camera: Enable optimized TNR frequency and create TNR low power hint.
Bug: 250738213
Test: Build pass, GCA, 4K60 and 240fps power and performance verification
Change-Id: Iaf8d37a927276f58d1aece82dd54407c76118670
2022-12-01 05:48:18 +00:00
TreeHugger Robot
dd5689443b Merge "Change util threshold of camera streaming high" into tm-qpr-dev 2022-11-24 04:21:02 +00:00
pointerkung
7a9cbcd011 Change util threshold of camera streaming high
Fine-tune the util threshold to "1100 1078 1024"

Bug: 250738213
Test: Build pass, GCA, 60fps power and performance test
Change-Id: I09ab3996e09cadf1d8a84a442b63e075fb1ebdc3
2022-11-22 11:44:56 +00:00
TreeHugger Robot
5035bab359 Merge "Change the default cpuset of camera daemon" into tm-qpr-dev 2022-11-21 10:22:03 +00:00
Chih-ren Yu (Swim)
f090c50e45 Merge changes Ib01ea173,I839b75d1 into tm-qpr-dev
* changes:
  Don't set the min CPU frequency to max frequency for CAMERA_SHOT
  Enable the flag to increase thread priority for nodes stop
2022-11-19 15:48:14 +00:00
Chih-ren Yu (Swim)
4c1de0629f Don't set the min CPU frequency to max frequency for CAMERA_SHOT
Bug: 258444667
Test:
1. 3rd party APP snapshot, GCA live video shot
2. Camera Check list
Change-Id: Ib01ea173e8b8ee1fe9c9622422dd9aad3236cf46
2022-11-18 16:42:15 +00:00
Rick Yiu
6af6b35f85 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: Ic77ed789b80e51bef9de6ea9de366a0a240299ca
2022-11-17 01:27:31 +00:00
Kyle Lin
ac42ae0129 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: I823eead362aa32b5544f9cf51f1132ecfbf23c78
2022-11-14 12:38:55 +08:00
Rick Yiu
501618e861 Sync powerhint to latest setting
Bug: 241338098
Test: build pass
Change-Id: I2fba91ce1e570fce2b1f990c35619fc095371242
2022-10-23 09:23:16 +00:00
pointerkung
4aabd30d24 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.

Sync from L10 ag/19320914.

Bug: 250738213
Test: Build pass
Change-Id: If7be3253d5125734e3ce676488b5f2573b4a9f42
2022-10-04 10:10:15 +08:00
Rick Yiu
ecb1bd201b Relax CPU minimum frequency boost for LAUNCH_CAMERA
Bug: 245565600
Test: build pass
Change-Id: Ie6c4cef217216be4c1f4080c348ce045ca80ee50
2022-09-27 03:18:13 +00:00
TeYuan Wang
fb71a1c206 thermal: more aggressive CPU throttling policy
Bug: 239372646
Test: run MH and burn8
Change-Id: I52fa275d83f8392105e0e140ebe9969a1e213e99
2022-09-20 19:52:28 +08:00
Richard Chang
9bda873478 powerhint: clean up unused hints in F10
INTERACTION and LAUNCH_120FPS are removed but some actions still use
them.

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

Change-Id: I089e3e151973e1828e80e0da13f9816aaa9c2871
2022-09-19 03:25:10 +00:00
TeYuan Wang
f60da16f48 Remove frequency boost of big cores for FACE_UNLOCK
Bug: 245619770
Test: build
Change-Id: I248dda87480b9b6ee082abd3500eabc986182632
2022-09-15 15:01:44 +00:00
Siddharth Kapoor
398e87dc72 Replace GPUMinFreq 151000 with 202000
Bug: 240479599
Change-Id: If7a5970b4f6d6049fc0aee4fc7caeb99ccbbdf21
2022-09-05 22:05:01 -07:00
TreeHugger Robot
4775c372fe Merge "Config dex2oat according to thermal status" into tm-qpr-dev 2022-09-02 06:04:28 +00:00
Rick Yiu
3fddfd6c6b Merge "Remove RestrictedCpuset hint" into tm-qpr-dev 2022-09-02 04:59:43 +00:00
Rick Yiu
d3901e4f50 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: I7a2d662d96b0818d69c66d5cfb69ec751ef82e33
2022-09-01 08:33:40 +00:00
Rick Yiu
3da3205392 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: Ic27752a19e58d955418953937f787328d477ba6d
2022-08-30 06:49:10 +00:00
jimmyshiu
6a07310af2 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: manual
Change-Id: If485f2bb12c5e44e58f294807b5085016b148192
(Port from commit 8a419466b86ab07a25fc18d7d6a2a9ee154f6839)
2022-08-29 12:23:54 +00:00
jimmyshiu
24be6d7726 Remove FPS boost
Bug: 241312961
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I617b36bf2bb5169ea7389fb0ea2c198fec6d938b
2022-08-23 05:20:11 +00:00
jimmyshiu
a0dd02d48e Remove universal touch boost
Bug: 236781877
Test: PtsUiBench
Change-Id: Ic150bcf5ed8494fd696d1a8444fa86798621969e
Merged-In: Ic150bcf5ed8494fd696d1a8444fa86798621969e
2022-07-25 02:42:19 +00:00
chungkai
5ab49fb1d7 powerhal: update powerhint
Test: Build pass
Bug: 236819367
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I407d64f6e0a1dad86db08b70059faae3eb78b5e8
2022-07-13 02:25:34 +00:00
Andy Hsu
719100db20 Sync GPU Powerhint settings.
Bug: 238598981

Test: AOSP Camera.
Change-Id: Iac8771255b176d471337cadf949aa24be33fe402
2022-07-12 01:23:22 +00:00
pointerkung
27eabda6dd 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: 238166810
Test: build pass and camera preview
Change-Id: Icd593f8b9b87345947e65271f4cbf03cc47bdcae
2022-07-06 17:33:49 +08:00
Rick Yiu
43c64eb5a7 Reduce FG prefer_idle when display is idle
Bug: 178016953
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I3cd8ac39a58e7ef8f8855081e15c384cfd58ae9e
2022-04-21 16:39:41 +08:00