Commit graph

160 commits

Author SHA1 Message Date
Ali K. Zadeh
5ef91438ed Merge "Make PreferHighcap settings for VideoCall consistent between devices" into 24D1-dev am: aa9721834c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/caimito/+/27030005

Change-Id: Id7e317d070c34a1f281b5ee013e15d5d54768c96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 21:31:14 +00:00
Ali K. Zadeh
3f30ceb9e1 Change PMU_BIG_LIMIT_FREQUENCY of 1298MHz to 1396MHz
1298MHz is no longer in the list of available frequencies of the big
core. This CL replaces this value with the next available one which is
1396MHz.

Bug: 304536786
Test: device boot
Change-Id: I2f58c18c41494e0a0ea4b006f641f55405b72cfd
2024-04-22 21:11:25 +00:00
Ali K. Zadeh
3d27c634c1 Merge "Increase SPC thresholds for 60fps" into 24D1-dev 2024-04-22 21:11:03 +00:00
Ali K. Zadeh
c3a6514d48 Increase SPC thresholds for 60fps
This CL increase SPC threshold for little core to 55, and for mid core
to 32. Tests show that in a loaded scenario, framedrop rate can reduce
to almost zero, while not impacting the power in the unloaded (baseline)
scenario.

Bug: 304536786
Test: 1080p60: https://docs.google.com/spreadsheets/d/10g6mWm8q9FgnBDvC1CzYWgVM6DZZJQLdAYqf2zW209U/edit?usp=sharing
Test: 4k60: https://docs.google.com/spreadsheets/d/1Rnz5gkqgoHFz5vwq5uezy8JD1uGkq_52fqDAmBetafY/edit?usp=sharing&resourcekey=0-zAOJ1GPbHWGYdU5QlUaH3Q
Test: Loaded - 1080p60: https://docs.google.com/spreadsheets/d/1Ae1sFdXfHL0R_za3o7tUhws-4Xs3F7XktPld9Eh0xYE/edit?usp=sharing&resourcekey=0-dPQmBCXISNX_GA8s2uzLcw
Test: Loaded - 4k60: https://docs.google.com/spreadsheets/d/1QeSJjTRhyL41Bjm9wF9tKcC8mHpC02vkr6R2qJlNA1w/edit?usp=sharing
Change-Id: I077a42349527721f31eeb10c4521f48c1448374a
2024-04-19 22:02:04 +00:00
Ali K. Zadeh
c2a2ce209d Make PreferHighcap settings for VideoCall consistent between devices
Bug: 323257509
Test: device boot
Change-Id: I3ba16e14c75847ef0bf08dee946ead65d762f63c
2024-04-19 18:10:58 +00:00
Treehugger Robot
a061186a2c Merge "adpf:caimito: update hboost jank check time factor." into 24D1-dev am: c9cf9bdb16
Original change: https://googleplex-android-review.googlesource.com/c/device/google/caimito/+/27017387

Change-Id: I12dfa4a5721da87ee315e84d9c4e7a18b8f9d85b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 02:43:03 +00:00
Treehugger Robot
c9cf9bdb16 Merge "adpf:caimito: update hboost jank check time factor." into 24D1-dev 2024-04-19 02:32:32 +00:00
Ali K. Zadeh
aff503a0c5 Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD am: d5db58d628
Original change: https://googleplex-android-review.googlesource.com/c/device/google/caimito/+/26943567

Change-Id: I71fb60f250b2875f3ccbe49ee83cf8474988e9d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 00:42:59 +00:00
guibing
95f08c856a adpf:caimito: update hboost jank check time factor.
Update it to align with the HWUI target duration scale factor,
so the adjusted jank check time duration is same as expected frame
timeline's duration.

HWUI target duration scale factor is 70%, and its inverse value is
approximately 1.43.

Bug: 204204746
Test: adb shell dumpsys android.hardware.power.IPower/default;
      Check the device adpf sessions' traces.

Change-Id: Id835b30e7acd50b34840131669eaf3894ea5e629
2024-04-18 22:21:55 +00:00
Ali K. Zadeh
90fcc6cea2 Merge "Increase TAUClampBoost during capture to reduce latency" into 24D1-dev am: a57ee838cb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/caimito/+/26943660

Change-Id: I345d5039e5276b41e6cc28d81b0a190fe3c31856
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-18 20:53:04 +00:00
Ali K. Zadeh
d5db58d628 Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD
SPC threshold is too low for both Little and Mid cores. This CL increases this
threshold to 55 for Little Core and to 30 for Mid core.
Test results show lower framedrop rate in presence of background load,
without having a negative impact on the power.

Test: 1080p30: https://docs.google.com/spreadsheets/d/1ANQ7hCkvDR03vHVKfy_i8Eh2tyKEw2qpZmFktCACCgI/edit?resourcekey=0-JXymSV8n68bVlqG2B2MVOw#gid=839467803
Test: 4k30: https://docs.google.com/spreadsheets/d/1YBz9TahcF7iMLRC6iPCl-t_-Vx_Lu6qNTdrs_EmOvZk/edit?resourcekey=0-UarnZQ86b6Vt_LBBjeZQQg#gid=586707919
Test: 1080p120: https://docs.google.com/spreadsheets/d/1kgSEqpT24_qmMrIPGjUkxTVsqVZg5gJAWOCu7p2n02c/edit#gid=697949868

Test: Loaded: Spc Lit 55: https://docs.google.com/spreadsheets/d/1j3MBl0uyjQQmeqC-JN6pqDpYd9FI4UfQq8xXfJcwcis/edit?resourcekey=0-BsWXhyH5D6QJGU2nqfoi_Q#gid=1983120744
Test: Loaded: Spc Mid 30: 1080p30 https://docs.google.com/spreadsheets/d/1FeHEOp_XHM_NJdXeTgDi9VZY2Nql_44aJEvEVtCHWUQ/edit#gid=1505208441
Test: Loaded: Spc Mid 30: 4k30: https://docs.google.com/spreadsheets/d/137ltu2nq5aN-5gA7CxwrCVpUC3fLRE94D30hsaH0-SI/edit#gid=17725636

Bug: 304536786

Change-Id: I07c81d6c3297e54202dc8966b4306d77daf34447
2024-04-18 20:46:34 +00:00
Ali K. Zadeh
a57ee838cb Merge "Increase TAUClampBoost during capture to reduce latency" into 24D1-dev 2024-04-18 20:35:43 +00:00
Treehugger Robot
c40039b4c9 Merge "powerhint.json: enable gpu capacity signalling." into main 2024-04-17 18:53:24 +00:00
Rick Yiu
e5df2a1fb3 Merge "Revert "Add cpuset system group"" into 24D1-dev 2024-04-17 08:06:59 +00:00
Rick Yiu
8153899d60 Revert "Add cpuset system group"
This reverts commit 8116ee60ba.

Reason for revert: need more perf evaluation

Bug: 328210236
Test: build pass
Change-Id: Id389c7b78c8c168a3015cd207b6d7b1a00c5d3a2
2024-04-17 05:05:44 +00:00
Ali K. Zadeh
7af4854125 Increase TAUClampBoost during capture to reduce latency
Bug: 298227152
Test: 12mp: https://docs.google.com/spreadsheets/d/1LT4Nxiffr0V63SBEhdD3W7VXtaZGTEWT7vD70yio5Is/edit?resourcekey=0-eE7u5RnJP_E0hBZX8AO7BQ#gid=1777320174
Test: 50mp: https://docs.google.com/spreadsheets/d/1n0nnfl9W_m683SsjJuA5rpvcMVhn1uK1r38P8vgYfbQ/edit?resourcekey=0-nYeECKN1CTDFfsVhNn72cA#gid=1511403903
Change-Id: I632940ec5fe01cdd026c50960657142ea589d155
2024-04-16 18:46:47 +00:00
Wei Wang
2da6c42eeb Merge "adpf:caimito: add hboost junk detection time factor into power hint json files." into 24D1-dev 2024-04-16 03:50:58 +00:00
guibing
4a72fa6721 adpf:caimito: add hboost junk detection time factor into power hint json files.
Bug: 204204746
Test: adb shell dumpsys android.hardware.power.IPower/default;
      Check the device adpf sessions' traces.
Change-Id: Id2912923a55c7788271312db9feefdecbfbc380f
2024-04-16 00:03:58 +00:00
Kevin DuBois
77e40d3a53 powerhint.json: enable gpu capacity signalling.
Enables a signal indicating that the app has janked as
detected by the ADPF API.

Test: perf / power tests
Bug: 290625326
Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2
2024-04-15 14:10:54 -07:00
Rick Yiu
8116ee60ba Add cpuset system group
Set cpuset system group to little and mid cores only when screen
off.

Bug: 328210236
Test: build pass
Change-Id: I3c116998e3bb5f347b8a0d401b7a22c458b19657
2024-04-15 14:40:17 +00:00
guibing
64592cbc5a caimito: Add heuristic boost configs in power hint json files.
Bug: 204204746
Test: Power hal launches in device without configuration parsing issue.
Change-Id: I316abe2c302fc528b558b5fff30f77dd7b438e12
2024-04-12 21:11:45 +00:00
Chungkai Mei
04ff9efa0d reorder the powerhint.json
since exynos driver take a longer time during access MEM/INT/DSU/BCI file nodes, change the order of powerhint and do other boost first

Bug: 329209796
Change-Id: I63a709d0607f5999cd30c8fe12de0699934b4c53
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-04-12 08:04:18 +00:00
Jimmy Shiu
b4d0311ea5 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values
Bug: 329483662
Test: Manual Test
Change-Id: I06d4774d81506080858127a9f992500d92b78ba7
2024-04-10 11:45:05 +00:00
Wei Wang
13d745f1af Merge "Disable auto prefer idle explictly for some conditions" into 24D1-dev 2024-04-09 16:00:46 +00:00
Rick Yiu
3b22e46ef6 Disable auto prefer idle explictly for some conditions
In auto prefer idle mode, a task in top-app will be granted prefer
idle if it satisfied the conditions. So turn auto prefer idle off
if top-app prefer_idle is explictly disabled. Also turn auto prefer
off when other group enables prefer_idle explictly.

Bug: 236868627
Test: build pass
Change-Id: I6e5694dfd9b5ed30bfad31509415027d5bac71cb
2024-04-09 04:12:14 +00:00
Ali K. Zadeh
1bd6e91fec Thermal Boost for severe thermal state
Bug: 299487324
Test: framedrop rates improve in
https://docs.google.com/spreadsheets/d/1XKNwe82bjAqUfEcRTCgMStI6DfSZdjsupi1rcyLynZk/edit#gid=1123570530, https://docs.google.com/spreadsheets/d/1IHiPRzkSdtn140oaksbO8vRAGfpzUXhKBcdqrMDOFvo/edit?resourcekey=0-qyzlX1XyVmWNSv3SVc04uQ#gid=1703956858
Change-Id: I7ed38eaf28178fbf26404f195a276d72752b5671
2024-04-04 22:33:46 +00:00
TeYuan Wang
df6bb6e93c thermal: remove PMU_POLL control for game mode
We already have the CPU scheduler optimization for game mode to sustain
the power and perf, so keep PMU_POLL being disabled to avoid the interfence on CPU scheduler.

Bug: 329697728
Test: run genshin
Change-Id: Ifb6838be9767d67cc1cf6a8109a33c5bfd402727
2024-04-04 00:29:41 +00:00
Jimmy Shiu
917e155a3b powerhint: set uclampmin_init value for applying CPU Load boost
Bug: 329483662
Change-Id: Ic7c08113b0ebb40ca34f44a8cea837856006517a
Test: Manual Test
2024-04-03 01:04:48 +00:00
Ali K. Zadeh
439a9ad00b Enable CDPreferIdle for 30 and 60fps, limit CPUset to 0-6, bump up MIF clock
This CL enables CDPreferIdle for both 30 and 60fps use-cases. It also
limits the CDCpuset to 0-6 to avoid using the BigCore. For 60fps
use-case, it additionally bumps up the MIF frequency to 1.539GHz which
can help reduce the power regression caused by enabling CDPreferIdle
(limiting it to around 10mW regression in CPU power).

Bug: 325510979
Test: https://buganizer.corp.google.com/issues/325510979#comment23
Change-Id: Ib5312882f5de80a95c6061f636d7f1f9642b6299
2024-04-01 17:26:47 +00:00
Zoy Shen
2078e7548a Merge "Powerhint: Enable big core reduction feature for GCA video recording CAMERA_STREAMING_HIGH and CAMERA_STREAMING_STANDARD." into 24D1-dev 2024-04-01 16:52:20 +00:00
Ali K. Zadeh
8a4681e93c Merge "Change CPU UtilThreshold, DVFSHeadroom, TAPreferHighCap for Video Call" into 24D1-dev 2024-03-28 18:33:50 +00:00
Yuan-Yuan Wang
efffb24595 Powerhint: Enable big core reduction feature for GCA video recording CAMERA_STREAMING_HIGH and CAMERA_STREAMING_STANDARD.
CAMERA_STREAMING_HIGH:
CPUSkipMask to 0x80

CAMERA_STREAMING_STANDARD:
CPUSkipMask to 0x80
TAPreferIdle to 0

Bug: 321322339
Test: kibble power/framedrops (b/321322339#comment50)
Change-Id: Ie2c8dc67f45558c303d210bb0edc7e32220c099f
2024-03-27 00:48:54 +00:00
Ali K. Zadeh
f195af9aa9 Change CPU UtilThreshold, DVFSHeadroom, TAPreferHighCap for Video Call
Bug: 323257509
Test: odpm/framedrops (b/323257509#comment7)
Change-Id: Ifdbee11c22e47feb6d45c9d3b14ea3c0de49f92f
2024-03-26 20:23:31 +00:00
Shijie (Jessie) Hu
4223660ea4 [Project11] Update Project11 powerhint
Bug: 328685643
Test: Power test show ~20mW CPU power increase. but cpu profiling show CPU operation frequency are lower than before, which will limit the impact when system level CPU throttle start.

- Project11 power hint reuse "streaming_standard" with extra MIF target tuning

Change-Id: If62e93032f9f4d69caa2f74e8a4cf4b2cf68be86
2024-03-25 22:12:47 +00:00
TeYuan Wang
cbfd667718 therma: disable LIGHT tier throttling when gaming
We already have the CPU scheduler optimization for game mode to sustain
the power and perf, so remove the CPU thermal policy at lower
temperature to avoid the interfence on CPU scheduler.

Bug: 329697728
Test: run genshin

Change-Id: Ib0d47b3de7b3550a3af4db37ef062f8c5d2ea262
2024-03-22 02:23:43 +00:00
Yvonne Yip
f981fa4f81 powerhint: revert dvfs_headroom settings for camera
Bug: 329905546
Test: boot
Change-Id: Ieb0869ab6e57a163ead89469f426be2d3e2f76a8
Merged-In: Ieb0869ab6e57a163ead89469f426be2d3e2f76a8
2024-03-16 20:25:52 +00:00
Treehugger Robot
037acd229b Merge changes from topic "cherrypicker-L29300030002471799:N07500030040648998" into 24D1-dev
* changes:
  powerhint: port migration margin settings from p23
  powerhint: port dvfs_headroom settings from p23
2024-03-14 00:12:06 +00:00
Yvonne Yip
8626e6e6dd powerhint: port migration margin settings from p23
Bug: 316035859
Test: boot
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:62221287956f6123e6bfe761de37ff1f3cb058c6)
Merged-In: I75a13076c9e388cb1628c80035d3f4f7a0905718
Change-Id: I75a13076c9e388cb1628c80035d3f4f7a0905718
2024-03-13 15:15:15 -07:00
Yvonne Yip
e7c6bf2d35 powerhint: port dvfs_headroom settings from p23
Bug: 322000346
Test: boot

Change-Id: I04cbd92a905135664059b338710993250566c9a7
Signed-off-by: Yvonne Yip <ykyyip@google.com>
(cherry picked from commit 5f65d099f0)
Merged-In: I04cbd92a905135664059b338710993250566c9a7
2024-03-13 17:21:08 +00:00
Sam Paradis
6999cf56b2 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: I71cb6ea9296126d576029196da87e5e76ef3ea4c
2024-03-13 17:12:22 +00:00
Yvonne Yip
33c9a3fb77 powerhint: fix duplicated LAUNCH action
Bug: 327623327
Test: boot
Change-Id: I9dd0b18acd4ea7e0ff0c9d6f5901c61e46428d12
2024-02-29 12:41:18 -08:00
Yvonne Yip
4269b04d39 Merge "powerhint: port changes from p23" into main 2024-02-28 00:26:01 +00:00
Yvonne Yip
361c057f61 powerhint: port changes from p23
- Add DISPLAY_CHANGE powerhint
- Add more boosts to LAUNCH_EXTEND
- Remove unused idle target residency settings

Test: boot
Change-Id: Iadaf2c57ce2e85c72bff9fbf4891300caa3eb469
2024-02-27 20:09:38 +00:00
Rick Yiu
e4c0d822f3 Merge "Revert "Disable auto prefer idle if ta prefer_idle is explictly disabled"" into main 2024-02-27 06:42:57 +00:00
Rick Yiu
f8d8a2b2db Revert "Disable auto prefer idle if ta prefer_idle is explictly disabled"
This reverts commit 3beb1e6364.

Reason for revert: to avoid potential power regression

Bug: 326507991
Change-Id: If0fa9544c1848cfa5e195570c805653a33e52a75
Test: build pass
2024-02-27 01:48:20 +00:00
Wei Wang
882fa9d0c7 Merge "Disable CDPreferHighCap, use cam2 for CAMERA_STREAMING_STANDARD" into main 2024-02-23 22:33:20 +00:00
Rick Yiu
3beb1e6364 Disable auto prefer idle if ta prefer_idle is explictly disabled
In auto prefer idle mode, a task in top-app will be granted prefer
idle if it satisfied the conditions. So turn auto prefer idle off
if top-app prefer_idle is explictly disabled.

Bug: 326507991
Test: build pass
Change-Id: Ie8d02bcc2291c00f12c337220d0d7ad80729d6a9
2024-02-23 07:56:43 +00:00
Ali K. Zadeh
0041bcd547 Disable CDPreferHighCap, use cam2 for CAMERA_STREAMING_STANDARD
Using cam2 will help reduce the framedrops for 120fps, and disabling
CDPreferHighCap helps with distributing the tasks to all cores and not
just being restricted to middle cores.

Test: https://g3doc.corp.google.com/wireless/android/camera/camera_performance_analyzer/power_tuning/results/g3doc/prefer_highcap_midcpus_30fps_120fps/index.md?cl=alikz/932
Test: https://docs.google.com/spreadsheets/d/1sKURR1tq0KJCTycw86BVk3wX2wWQ72HUDKq3rpzSLuc/edit?resourcekey=0-qbawDHe11an1OMQYqhj5Zw#gid=247988314
Test: https://docs.google.com/spreadsheets/d/1zOCS8hnphaNMcR_VoXgB3UkQl42i_r_CDY9Y7lzzZDA/edit?ouid=105033174378721646302
Bug: 322542383
Bug: 322229036
Bug: 311011064
Change-Id: I5bb427be8c1707515ab3ec2cea26bbb8ad338afa
2024-02-22 21:14:38 +00:00
Wei Wang
282a75b7cb Fix bad merge of powerhint.json for RCP
Bug: 324249957
Change-Id: I45723fe840e454efd71b7e3acc4879ed7fd3a5ce
Test: Build
2024-02-07 19:00:27 +00:00
Treehugger Robot
5cdd47ff89 Merge "Change set preferred idle mask to top-app" into main 2024-02-06 04:06:11 +00:00