Commit graph

26 commits

Author SHA1 Message Date
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
Yuan-Yuan Wang
6ad7d58a34 Powerhint: 1080p60 M1, set BCIMin to 700MHz and TAPreferHighCap to 0
Bug: 311011064
Test: odpm/framedrops (http://b/311011064#comment33)
Change-Id: I9d2abb734b6a6f609db5c8d4dc8d1b4dcd05fd2b
2024-02-01 01:22:28 +00:00
Rick Yiu
6e2659aed7 Change set preferred idle mask to top-app
Set default value to 0x7f to exclude big core for all priorities, but
restore high and mid to 0xff when app launch.

Bug: 248621289
Test: value set correctly
Change-Id: I8a002a8d326b7512baa8605eb57bd16658c597c3
2024-01-29 05:27:31 +00:00
Ali K. Zadeh
456150ae9d Use cam3 EM, and change CPU UtilThreshold, DVFSHeadroom, TAPreferHighCap for 30fps
This CL implements the suggestions in http://b/311011064#comment8 (except
for chaning the node affinities) for 30fps use-cases.

Bug: 311011064
Test: odpm/framedrops (http://b/311011064#comment25)
Change-Id: I62274049b2096353f9fe3c972338ed47fb99380b
2024-01-09 19:32:29 +00:00
Yvonne Yip
02bdbb369a powerhint: set cpd target residency to 10ms
Bug: b/314974028
Test: Load on device and boot

Change-Id: I587941c76ae914d2ab0c79371f159a7585098fce
2023-12-07 22:22:06 -08:00
TeYuan Wang
2a261b735d Correct the powerhint and thermal config
Bug: 312487312
Test: Komodo EVT1.0, and Caiman P1.0 can boot to home
Change-Id: Ia72c16840fa97ea1cd3c08523253b4fcde2d3ab8
2023-11-21 20:18:21 +00:00
Ramya Subramanian
16ae08548a thermal: optimize thermal policy for camera mode
Bug: 310748549
Test: sideloaded the cofig files and device rebooted to home

Change-Id: Ib2af1fd19099b58fd6ba23bde10ea59767b67e05
Signed-off-by: Ramya Subramanian <rsubr@google.com>
2023-11-18 23:38:20 +00:00
Yvonne Yip
93784bfd44 powerhint: port powerhints from zuma and update with latest hardware
Test: Load on device and boot
Bug: b/311275209
Change-Id: Iba9ebca14a639950069e4c7e0576dba30d77fd7e
2023-11-16 12:43:56 -08:00
guibing
c9f673f136 caimito: powerhint: 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: Manual check the paths in device
Change-Id: I2b84293738c948d868c5a009e66235a1b597a379
2023-11-14 00:56:53 +00:00
guibing
86752fa50e Reland caimito: powerhint: Use the same hints as zuma for baseline.
Use the latest udc-qpr-dev p23 zuma powerhints.
Support selecting different powerhints json file for prototype
and production devices.

Bug: 300108936
Test: Build passed;
      The expected powerhint json file was loaded in device test.
Change-Id: I65582266eb7b9aa90deabe452ea2482ba9d28118
2023-10-09 20:49:38 +00:00
Robin Peng
b5194d9b24 Migrate caimito devices into caimito folder from sha 31a6eb4c2ffbc
Bug: 291867277
Change-Id: Ia7d34e6ab34bdd03406391f98c58b04eb77671cd
2023-08-16 10:26:07 +00:00