Commit graph

90 commits

Author SHA1 Message Date
Ali K. Zadeh
bcafadef9c Increase PMU_MID_SPC_THRESHOLD to 23 for 60fps
Test results show that increasing Spc threshold for mid core to 23 can
help with framedrop rate without affecting the power.

Bug: 317052150
Test: https://docs.google.com/spreadsheets/d/1bpSfVptz8nolSPfeYfkbjnP9pIK3l-U1JyqPNCwOwLc/edit?resourcekey=0-oiFKaxI6PtSGR6yXed327w&gid=430808958#gid=430808958
Change-Id: I9d5efbc0b7465825b36bff0dc70671121198b8c3
2024-06-07 16:20:50 +00:00
Rick Yiu
d6c3e07eb4 Revert "Set big core to group_cfs_skip_mask for sys group"
This reverts commit 83bdd31a60.

Reason for revert: 2dQ3 kernel prebuilt not ready

Bug: 248621289
Change-Id: I34c8616bc6b39e178c665a77c266c2a60438a651
Test: build pass
2024-06-06 03:01:52 +00:00
Rick Yiu
83bdd31a60 Set big core to group_cfs_skip_mask for sys group
Set big core to group_cfs_skip_mask for sys group when screen is off,
so that sys group tasks will run less in big core.

Bug: 328210236
Test: build pass
Change-Id: I9ccb3035a480e88960951222c45d0ca8352082d9
2024-05-24 13:50:26 +00:00
Matt Buckley
58ab0d9afb Merge "Add POWER_EFFICIENCY uclamp max to adpf config" into main 2024-04-29 19:42:14 +00:00
guibing
340d8f1f91 Adpf:shusky: revert heuristic boost triggering condition.
This reverts previous JankCheckTimeFactor from 1.43 to 1.2.

Since the current reported duration doesn't include the GPU
part, the JankCheckTimeFactor needs to be smaller for matching
jank frame detection.

Bug: 204204746
Test: adb shell dumpsys android.hardware.power.Ipower/default;
      check adpf sessions' traces.
Change-Id: I9c7587b6b1507fae685561fcf008c5ab9ae73532
2024-04-25 22:52:15 +00:00
Treehugger Robot
6358b83b19 Merge "adpf:shusky: update hboost jank check time factor." into main 2024-04-19 02:32:32 +00:00
guibing
01660ca736 adpf:shusky: 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: I8565fa1352769e6f879ea5fc12412d00f254da3b
2024-04-18 22:52:12 +00:00
Wei Wang
6ae60dd4b7 Merge "adpf:shusky: add hboost junk detection time factor into power hint json files." into main 2024-04-16 03:50:58 +00:00
guibing
e6fe682d22 adpf:shusky: 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: If4c116e172b101eebe8a8b9b539f3a55e4299ca8
2024-04-16 00:17:11 +00:00
Treehugger Robot
6fdf23cbf2 Merge "shusky: Add heuristic boost configs in power hint json files." into main 2024-04-13 01:33:50 +00:00
guibing
97c7f4861e shusky: Add heuristic boost configs in power hint json files.
Bug: 204204746
Test: Power hal launches in device without configuration parsing issue.
Change-Id: I5f85f88699b468f2c5e0af05dcea0bfa3fba56d2
2024-04-12 23:29:12 +00:00
Rick Yiu
bfb341fb00 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: Id0dc5bda64686826f72aad4549b8edcb1ceb4502
2024-04-11 14:05:00 +00:00
Jimmy Shiu
d51ff23214 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values am: a928cbb681
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/26902700

Change-Id: I3edaf8ffc84231ec5c188ce1ed07791c04f087f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-10 16:37:22 +00:00
Jimmy Shiu
a928cbb681 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values
Bug: 329483662
Test: Manual Test
Change-Id: I2b4be8ee1d4f8a91196478d7b3c898f236365dff
2024-04-10 11:45:10 +00:00
Jimmy Shiu
88db876244 powerhint: set uclampmin_init value for applying CPU Load boost am: f4d3c1bd4b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/26809487

Change-Id: I8e5faa45469ab1ab4cfc2ad1a828ee970041195b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-03 04:19:42 +00:00
Jimmy Shiu
f4d3c1bd4b powerhint: set uclampmin_init value for applying CPU Load boost
Bug: 329483662
Test: Manual Test
Change-Id: Id844e1f5d05d207e668c1ff151361bece37ee2c4
2024-04-03 01:04:41 +00:00
Rick Yiu
024418b3a2 Change set preferred idle mask to top-app
Set default value to 0xff to exclude big core for all priorities, but
restore high and mid to 0x1ff when app launch.

Bug: 248621289
Test: value set correctly
Change-Id: If9696e02f2a54f07d5acb974ff0301ea936c53e0
2024-03-25 15:56:01 +00:00
Sam Paradis
693daacfbe 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: I384f2e04f69d570e10c8e52f2818c1ecde6be1a0
2024-03-13 17:12:19 +00:00
Sam Paradis
dbbb0c62ea 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: I384f2e04f69d570e10c8e52f2818c1ecde6be1a0
2024-03-09 01:56:27 +00:00
Rick Yiu
86f0717376 Revert "Disable auto prefer idle if ta prefer_idle is explictly disabled"
This reverts commit 34a3e400b9.

Reason for revert: to avoid potential power regression

Bug: 326507991
Change-Id: Id4e9de4b8b86702d796e553fa663d220c2e8a42a
Test: build pass
2024-02-27 03:05:52 +00:00
Rick Yiu
34a3e400b9 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: I2b4f4f016cc41d963d15b8f37370d86f2046ded0
2024-02-23 08:50:30 +00:00
Rick Yiu
8a5375227b Remove SchedLibMaskIn usage
Remove it since CONFIG_RVH_SCHED_LIB is disabled.

Bug: 323115768
Test: no error logs
Change-Id: I6d062be89f8c98863f7a3eeac722f1d05fc36a7c
2024-02-01 06:26:27 +00:00
Mao Lee
cadc77d9b5 powerhint: raise cam.uclamp_min to 250 during CAMERA_STREAMING_EXTREME
Increase the minimum operating frequency of the cam group to mitigate mutex contention and thereby reduce frame drops during 240fps slow-motion recording.

This solution synchronize from ag/25825179.

Test: GCA, CTS
Bug: 315422971
Change-Id: I8ab72ef5980edf881c034789d947dc578659cbe2
2024-01-25 07:19:12 +00:00
Lisa Liu
63ce8e2275 shusky: Change util threshold of LC
Changed to 50 percent. Keep LC util threshold 1280 for
GAME/ CAMERA_STREAMING_LOW/ CAMERA_STREAMING_STANDARD.

Bug: 303725890
Bug: 261704404
Test: scolloing CUJ
Change-Id: I0f48203dcfb8b3b650b593beed19bc050f710f9f
2023-11-30 01:58:40 +00:00
Guibing Cai
a5c8220e15 Merge "powerhint: shusky: update vendor_sched procfs paths" into main 2023-10-10 21:45:58 +00:00
Jimmy Shiu
7565d7c67d Merge "powerhint: Add DISPLAY_CHANGE hint" into main 2023-10-03 14:57:41 +00:00
guibing
c5bc42c17b powerhint: shusky: 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: I5bec729bf9a896819e89c637fc351daa59a0eea9
2023-09-29 18:27:35 +00:00
David Kimmel
9e97c64663 Merge "Game Mode Sched lib affinity" into udc-qpr-dev 2023-09-28 18:12:27 +00:00
David Kimmel
0c21866e59 Game Mode Sched lib affinity
Bug: 170648047

Test: sched / hints applied correctly

Change-Id: I50b21880a671cb4b40110bc7ac3d75de6e2dc946
Signed-off-by: David Kimmel <davidkimmel@google.com>
2023-09-28 07:53:23 -07:00
Qais Yousef
271412790a powerhint.json: Undo uclamp_max tuning in LAUNCH_EXTEND
Bug: 301807825
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I0f0b6752c76f0f6c5f725801f91c57f8f1e289bf
2023-09-27 22:28:39 +00:00
Treehugger Robot
9ee10fbd54 Merge "Enable tapered dvfs headroom in battery saver and thermal" into udc-qpr-dev 2023-09-25 17:25:11 +00:00
Qais Yousef
2ce3ab61b8 powerhint.json: Reset bg_uclamp_max on LAUNCH
And disable uclamp_max_filter so that we don't accidentally impact
LAUNCH time.

Bug: 301807825
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I913b50fb6e2896de96873e550e6299b7294f6bec
2023-09-25 16:02:46 +00:00
paulsu
aecb9d8989 Enable tapered dvfs headroom in battery saver and thermal
Bug: 295992028
Test: Boot to home
Change-Id: I04e5b286e2fb5853bd0206f8024807fe7bcd11a4
Signed-off-by: paulsu <paulsu@google.com>
2023-09-25 08:33:35 +00:00
Jimmy Shiu
6b142ae3ff 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: I853b5feb6cb963c9ae39959e84507c8c40fe7fbd
2023-09-23 12:11:26 +08:00
Jia-yi Chen
22a9935654 Restrict foreground cpuset to cpu0-5 when camera launch
Bug: 297789578
Test: Boot & check perfetto traces
Change-Id: I3d38149afb36f0b50804e2cced45d057482206ff
2023-09-15 15:11:03 +00:00
Rick Yiu
21985dbb77 shusky: Disable task packing
Disable task packing by default, but keep game mode on since it
may cause perf regression if disabled.

Bug: 295991841
Test: build pass
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b416077f48c36bba953502679d610c7bccf4ea8b)
Merged-In: Ie1116f2b253c7f5ce0ad309474ef7750a9fc5bb2
Change-Id: Ie1116f2b253c7f5ce0ad309474ef7750a9fc5bb2
2023-09-11 15:46:43 +00:00
Rick Yiu
36501f346b Disable limiting camera_hal for LAUNCH hint am: 1a082f01a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/24622708

Change-Id: I0c13d6ce4d3cc499888c7e47418b7004950add9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-04 02:54:01 +00:00
Rick Yiu
1a082f01a9 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: If472e2410e40f09372250e20dd7e23d315c5a576
2023-09-01 00:45:49 +00:00
Wei Wang
c545c3bc08 powerhint: mask game mode tuning for app launch
also clean up useless TAUClampBoost to reduce overhead

Test: Build
Bug: 294612493
Change-Id: I6a6082b860c5650bba87d48025da0e1c60f8dae8
Signed-off-by: Wei Wang <wvw@google.com>
2023-08-25 23:28:32 +00:00
Yvonne Yip
b1aa8bb0ea powerhint: disable prefer_idle in game mode
Test: Load powerhint file on device and verify tuned parameters are
default. Start Subway Surfers game and verify tuned parameters are
expected tuned values. Switch away from game, and quit the game, and
verify tuned parameters return to default.

Bug: 294612493
Change-Id: I2c518b27fbe7191dd1033dd3f3d8044330ccdf8c
2023-08-25 23:28:32 +00:00
Yvonne Yip
ea96611d82 powerhint: game mode tuning
Test: Load powerhint file on device and verify tuned parameters are
default. Start Subway Surfers game and verify tuned parameters are
expected tuned values. Switch away from game, and quit the game, and
verify tuned parameters return to default.

Bug: 294612493
Change-Id: Ibc0ba8fb1a9f2714d9509cecaa30c227aa4f8b69
2023-08-25 23:28:32 +00:00
Yvonne Yip
b68ea8c576 powerhint: add tapered_dvfs_headroom_enabled node
Test: Load powerhint on device and boot

Bug: 294612493
Change-Id: I823a18d5ee7b072115442a9af19645cce0605d72
2023-08-25 23:28:32 +00:00
Ali K. Zadeh
bd3429ab66 Merge "Set DSU min to 820MHz for CAMERA_STREAMING_HIGH use-case" into udc-qpr-dev 2023-08-22 22:48:18 +00:00
Ali K. Zadeh
ff32827267 Set DSU min to 820MHz for CAMERA_STREAMING_HIGH use-case
Bug: 294814988
Test: Kibbles (https://b.corp.google.com/issues/294814988#comment9)
Change-Id: Ia454b8aa08c866c4068ed6676e2438081e30e128
2023-08-22 20:49:42 +00:00
Matt Buckley
ee38ca5673 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: I408f207d41271fdf9ae7892ca89efa3bc02c2625
2023-08-19 05:18:15 +00:00
Jia-yi Chen
f70af577b4 Update CAMERA_SHOT hint
1) Set PMU_POLL to 0
2) Remove direct CPU freq settings but use UClamp

Bug: 295186805
Test: Run 3P snapshots and check logcat & perfetto trace
Change-Id: Ic8e8f6ab6439b378638a90e9d4238cd22db05e44
2023-08-10 11:30:10 -07:00
Ali K. Zadeh
5156c03b75 Set PMU_POLL to 0 instead of setting SPC threshold to 100 for CAMERA_ZOOMING_BOOST
Bug: 291979193
Test: Device boots okay with new powerhint file
Change-Id: I466873b118d12e1d72a237df72fa5d278ee2405d
(cherry picked from commit 0a99fb90e9)
2023-08-07 23:04:16 +00:00
Ali K. Zadeh
0a99fb90e9 Set PMU_POLL to 0 instead of setting SPC threshold to 100 for CAMERA_ZOOMING_BOOST
Bug: 291979193
Test: Device boots okay with new powerhint file
Change-Id: I466873b118d12e1d72a237df72fa5d278ee2405d
2023-08-07 21:00:07 +00:00
Yunju Lee
daa71f9265 Add write-only option to GPU power hint configuration
Bug: 291237127
Change-Id: I175440aa25170616c7caeda4aab71de966c7c69d
2023-07-27 20:21:49 +00:00
Ali K. Zadeh
137a4098bd Relax PMU capping during CAMERA_ZOOMING_BOOST
ag/24163297 defines a new power boost profile which gets applied during
camera transitioning its zoom ratio. This CL defines the parameters for
this boost profile to enhance the camera performance by relaxing the PMU
capping, which is achieved by setting the SPC thresholds to 100.

Bug: 291979193
Test: perfetto trace (https://ui.perfetto.dev/#!/?s=ee36305fa386b5e1825fe9982b984190b1c804cd3c2d0b0fe9c85b9df94659d7)

Change-Id: Id17721719151d216fa1bd3abd7bad613a0ee1c7b
2023-07-26 16:33:18 +00:00