Commit graph

73 commits

Author SHA1 Message Date
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
TeYuan Wang
df00439087 Allow more CPU resources when launch camera
Bug: 297367915
Test: Confirm user_vote_bypass can be applied during camera launch when SKIN severity is lower than CRITICAL
Change-Id: I1134f577bd4101572d8cbe291322a1a4b035cfde
2023-09-06 22:38:25 +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
Treehugger Robot
9d6a29bd5f Merge "thermal: update powerhints for thermal trips" into udc-qpr-dev 2023-08-22 12:43:29 +00:00
KRIS CHEN
dde8de3c16 Merge "Boost top-app during FP storage access" into udc-d1-dev am: 77cdce7772
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/24465996

Change-Id: I5074395a9a204f9265c50dbcbede03f801bd7a72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 06:33:12 +00:00
KRIS CHEN
77cdce7772 Merge "Boost top-app during FP storage access" into udc-d1-dev 2023-08-21 06:00:35 +00:00
Kris Chen
34875da5c3 Boost top-app during FP storage access
Bug: 290709897
Test: enroll fingerprint
Change-Id: I14e81be2c826046fcd498c2a5af3caf217ed1aa9
2023-08-21 10:47:23 +08: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
TeYuan Wang
d28196ccc3 thermal: add CPU policy for camera mode
Disable VIRTUAL-SKIN-CPU-HIGH for camera mode

Bug: 290225694
Test: run camcorder
Change-Id: I175f95df41cd72e1075dc19be488642ad5e3f073
2023-07-25 23:21:54 +00:00
David Chao
a782655d54 thermal: update powerhints for thermal trips
Add switch on/off to remove dependency on powerhint.json
when updating thermal thresholds

Bug: 283038681
Test: Build and boot on device
Change-Id: Ibf318176ba5e2c51b2989080c860560f1f1351a0
2023-07-21 06:56:03 +00:00
Treehugger Robot
7942a16adf Merge "CAMERA_CAPTURE_CPU_THROTTLE powerhint: Adjust CPU frequency caps, use cam1 EM" into udc-d1-dev 2023-07-14 23:41:42 +00:00
Ali K. Zadeh
ea5ddc4e5b CAMERA_CAPTURE_CPU_THROTTLE powerhint: Adjust CPU frequency caps, use cam1 EM
Bug: 288988849
Test: ODPM, capture latency, framedrops (https://docs.google.com/spreadsheets/d/1D8_gsLGdNEGOxoN6HA59EBORqTv7d9oM3LAQPe11BNE/edit?resourcekey=0-4m7SdJwoBlFm9FnmHAkXOA#gid=1867870464, https://buganizer.corp.google.com/issues/288988849#comment27)
Change-Id: If09afa009e172fa48cfa22de5b28395f2d0137f7
2023-07-14 19:47:04 +00:00
Taeju Park
d2d2c3628c powerhint: Add default PMU limit frequency for the reset
Bug: 290295565
Change-Id: Ied704dfe1c0beb756f8e26eea0d82820bc0e9e2e
Signed-off-by: Taeju Park <taeju@google.com>
2023-07-14 01:26:03 +00:00
Treehugger Robot
5be931bae4 Merge "Add GPU power hint for Zuma" into udc-d1-dev 2023-07-13 17:47:48 +00:00
Ali K. Zadeh
59bddaa0a2 Enable prefer_idle during CAMERA_LAUNCH
Test: Launch latency improves for front camera (https://b.corp.google.com/issues/290225016#comment4)
Bug: 290225016
Change-Id: Ica1a0af3ecdff7d158cb62644571316283998f31
2023-07-11 21:47:07 +00:00
Yunju Lee
a314f25a44 Add GPU power hint for Zuma
Bug: 228076319
Bug: 278493002
Test: Perfetto trace inspection
Change-Id: I24c7637221640bad71235488c2de07abf07f3b75
2023-07-07 21:40:10 +00:00
Kame(TeYuan) Wang
5fa8ce0a35 Merge "thermal: switch thermal policy by game mode" into udc-d1-dev 2023-06-28 07:20:46 +00:00
Kame(TeYuan) Wang
c7fa4c6588 Merge "powerhint: remove the duplicate thermal powerhint settings" into udc-d1-dev 2023-06-28 07:20:00 +00:00
Rick Yiu
8f7d02cd08 Disable prefer idle for TA and FG when screen-off
Bug: 236868627
Test: work as expected
Change-Id: I1f45577a99b47136cb6620c846c3417a9696451e
2023-06-27 06:26:02 +00:00
TeYuan Wang
2e7e899744 thermal: switch thermal policy by game mode
Bug: 273618797
Test: run Genshin and confirm thermal profile properties
Change-Id: I567010a9ecc339f23dae967074954c355ab8089e
2023-06-26 18:10:48 +00:00
Ali K. Zadeh
6419d5e67d Remove CPU hard-caps and enable PMU for 30fps
Bug: 285043350
Test: ODPM/Framedrops (https://docs.google.com/spreadsheets/d/1fch2nTNXzsjrlsTwgj5asMULLSzW_iaKQRGv9sTZJvw/edit?usp=sharing&resourcekey=0-TYGsgX17mWRZdPYL3tBnjA)
Change-Id: Icf6af9d289f0facdbeb92910b8f963384dda6149
2023-06-22 21:50:58 +00:00
TeYuan Wang
09427323e1 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 shiba with emul_temp
Change-Id: I352cb3dc52440373a6eebdebe77fb8c5cc24890d
2023-06-22 18:48:07 +00:00
Shijie (Jessie) Hu
2c1eee9f02 [Project11] Powerhint for project11
Bug: 284500427
Test: Ongoing. with ag/23546319

- Create powerhint for project11. Powerhints are branched from
  CAMERA_STREAMING_STANDARD with some modification
  - Add back MIFTargetNode
  - Set MIFTargetNode value to 20 80 to avoid MIF operation point go to max
  - Value need more test before final submission.

Change-Id: I47659cca7e0a26e240e91b1d1a49dc61d76b6b90
2023-06-14 13:19:54 -07:00
paulsu
3e3acc0906 Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default
Bug: 280258727
Test: Found regression in b/286002292, local test.
Change-Id: I78db6fefe042f0b380e48f1fad5ccb477dd38dbe
Signed-off-by: paulsu <paulsu@google.com>
2023-06-14 04:29:03 +00:00
TreeHugger Robot
95302b8c54 Merge "powerhint: Reduce StaleTimeFactor" into udc-d1-dev 2023-06-13 07:47:11 +00:00
Treehugger Robot
8bd33ebc3b Merge "powerhint: boost DSU to 1.8GHZ" into udc-d1-dev 2023-06-09 22:51:27 +00:00
Ziyi Cui
b15cd964d3 powerhint: Reduce StaleTimeFactor
Reduce StaleTimeFactor for power saving

Bug: 269523712
Test: boot and run uibench
Change-Id: I1bc2483a30c11bfe840f796ddc11e3c9496f5e78
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-06-09 21:49:42 +00:00
TreeHugger Robot
150adb6227 Merge "powerhint: Enable PMU limit" into udc-d1-dev 2023-06-08 01:54:13 +00:00
TreeHugger Robot
08b63e2f9c Merge "Create group throttle powerhint" into udc-d1-dev 2023-06-07 21:46:03 +00:00
Ali K. Zadeh
55d7041956 Enable PMU, use cam2 EM profile for 240fps
Bug: 279955604
Test: ODPM/Framedrop
(https://docs.google.com/spreadsheets/d/1XZptKVjIAt1mVPOvYH2JeHOhOlOufmxQX7tbSsq22KA/edit?usp=sharing)

Change-Id: Iad6199abd7cbc3fdbb3f25f8d88d78694feacc1f
2023-06-07 16:27:14 +00:00
Ali K. Zadeh
ea56957483 Use all cores, reduce DVFSHeadroom, CPUUtilThreshold for 240fps
Bug: 279955604
Test: ODPM/Framedrop/Kibbles (b/279955604#Comment7, b/279955604#Comment9)
Change-Id: Ie5d00dd23ec005cb981e8d6f26d91e2b39648de0
2023-06-07 16:26:47 +00:00
paulsu
4b0a0e63ee Create group throttle powerhint
Test: Local test
Bug: 280258727
Signed-off-by: paulsu <paulsu@google.com>
Change-Id: I447d4a0859f4af681f83df8fa094718959bc2619
2023-06-07 08:13:13 +00:00
Taeju Park
aaab542d55 powerhint: Port powerhints for LAUNCH from Pantah
Bug: 258095095
Change-Id: I481b807f87f61f115d5b6d43a42410fbbe3c2d1e
Signed-off-by: Taeju Park <taeju@google.com>
2023-06-06 21:06:24 +00:00
David Chao
8feb306189 thermal: update powerhints for thermal trips
- Add 5C for LITTLE core trips
- Set Big early throttling at 5C above control temp after
  trip change to avoid irq storm. This would act as alert for
  PI loop

Bug: 241784772
Test: Device can boot to home and Tj thresholds changes properly by
powerhint.

Change-Id: Id9ddb9aad98a7a6d192f97001317e1eff72c6246
2023-06-05 12:07:02 -07:00
Yvonne Yip
439f08b516 powerhint: Fix down_rate_limit hints for shiba
Bug: b/283319548
Test: Boot and check trace from display inactive to active

Change-Id: I564c17042c4877deed4c3d29ad696a0d8a74611b
2023-05-31 14:28:45 -07:00
Ali K. Zadeh
c3a29e0de7 Merge "Enable PMU, use cam2 EM profile for 60fps" into udc-d1-dev 2023-05-27 20:28:08 +00:00
Ali K. Zadeh
a853895d3f Enable PMU, use cam2 EM profile for 60fps
Bug: 256723111
Test: ODPM/Framedrop (https://docs.google.com/spreadsheets/d/1U7RvqW7x7PbZh-NML_HvBuaXDHbnUDN4QrRCdUHzPQI/edit?usp=sharing)
Change-Id: I4384078b49075c43490909f56f3297ad63ff9987
2023-05-26 23:50:17 +00:00
Wei Wang
1e6f2fad18 perf: change the order of the rate limit vote
Bug: b/283319548
Test: none
Change-Id: Icf23f3ce0286045846785459ef8066ff5ae5b8c2
Signed-off-by: Wei Wang <wvw@google.com>
2023-05-26 15:08:00 -07:00