Commit graph

132 commits

Author SHA1 Message Date
Treehugger Robot
96d91001b0 Merge "Enable auto prefer idle" into main 2024-09-06 09:30:43 +00:00
Rick Yiu
da53d20798 Fix cpu mask for big core
The big core mask on zuma should be 0x100.

Bug: 248621289
Test: build pass
Flag: NONE powerhint change does not support flags
Change-Id: Id9dbd933505d3eaa2553ed1851883a3042028f16
2024-09-03 09:16:21 +00:00
Paulsu Su
d576c70006 Merge changes I1adc41ac,I0242977f into main
* changes:
  powerhint: Update not available frequency to reflect its actual behavior
  Update mismatched frequency for husky and shiba
2024-08-31 07:35:44 +00:00
Paulsu Su
e2a796691d powerhint: Update not available frequency to reflect its actual behavior
Some frequencies uses unavailable frequency other soc ex: ag/22293847, the patch update them to explicitly show the actual actions of driver.

Bug: 361294204
Change-Id: I1adc41aca636650b4eaad179d73bde030146347c
FLAG: NONE powerhint do not need flag
2024-08-31 05:20:01 +00:00
Jay Wang
97fa59f0ab Merge "powerhint: Lower CAM uclamp min" into main 2024-08-30 23:29:31 +00:00
Rick Yiu
a2b661cfc1 Enable auto prefer idle
Also disable prefer idle for TA and FG by default.

Bug: 236868627
Flag: NONE powerhint change does not support flags
Test: build pass
Change-Id: I0d06e707900ec9a85decbdecbd184532743c7de0
2024-08-27 15:04:37 +00:00
Rick Yiu
54c0accb7f Set big core to group_cfs_skip_mask for sys group by default
Let sys group tasks will run less in big core by default.

Bug: 328210236
Test: build pass
Change-Id: I0092c5d32091894750287fb1fb0c5756158d37b1
2024-08-27 14:50:20 +00:00
Paulsu Su
70363dbbfa Update mismatched frequency for husky and shiba
- Update freq for legacy mismatched frequency with the rule of scaling_max_freq will automatically round down, scaling_min_freq will round up. All powerhint behavior should not change.
- Remove some min/max frequency not used in any nodes.

Bug: 361294204
FLAG: NONE powerhint do not need flag
Change-Id: I0242977f05f859ad5c3c38673579e296e74c78ca
2024-08-22 02:35:18 +00:00
Jay
0dd1ab91a9 powerhint: Lower CAM uclamp min
Current CAM uclamp min is beyond MID clusters capacity when
CAM2 energy model is used. This causes most of camera HAL threads
scheduled on big cluster only with CAM2 EM profile.

Lowering CAM uclamp min so it is within MID clusters capacity for
both energe model

Flag: EXEMPT tuning changes
Test: check camera trace with proper uclamp value
Bug: 350629738

Change-Id: I40ce59d0a0d99ea6ba016a24245f44713485bc52
2024-08-12 22:57:41 +00:00
Sam Ou
625b03b77f Merge "thermal: Remove bcl related tzones" into main 2024-08-12 12:32:35 +00:00
samou
cd69a5a885 thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: I5091b906604fe5dec3b7e8ac6631fcd3acb0989d
Signed-off-by: samou <samou@google.com>
2024-08-06 04:03:22 +00:00
Treehugger Robot
0fe25ca786 Merge "Adpf:shusky: switch to multitier heuristic boost." into main 2024-07-27 00:58:16 +00:00
guibing
fab7721b14 Adpf:shusky: switch to multitier heuristic boost.
Bug: 344685639
Test: Checked the trace file running on the device.
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I8b3918ee11a34315155561bfd0b0a7e9a8f9f32d
2024-07-26 23:20:43 +00:00
Rick Yiu
55021e0056 Merge "Revert^2 "Set big core to cpu skip mask by default"" into main 2024-07-26 01:11:58 +00:00
Rick Yiu
df6fafe03a Revert^2 "Set big core to cpu skip mask by default"
This reverts commit 5d7958215d.

Reason for revert: 24Q4 kernel prebuilt ready

Bug: 248621289
Change-Id: Ia9fbfb2ead5c42fa849758ffba9210cf45b6396f
Test: build pass
2024-07-25 15:05:59 +00:00
lukechang
d6240b116e powerhint: adjust cpd target residency when interaction
Modify default BC (husky) / BC/MC(shiba) CPD target residency to 10ms.
Increase to 750ms during interaction.

Bug: 283233731
Bug: 350508026

Flag: EXEMPT bugfix

Test: power & perf cuj test

Change-Id: I02ef4cf1174f6b49cbc4734257d9dbe43b74b86e
Signed-off-by: lukechang <lukechang@google.com>
2024-07-11 04:39:35 +00:00
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
5d7958215d Revert "Set big core to cpu skip mask by default"
This reverts commit c6609a4bb9.

Reason for revert: 24Q3 kernel prebuilt not ready

Bug: 248621289
Change-Id: I53abd0932443fa437a487255b74e06dad18f7b9f
Test: build pass
2024-06-06 03:02:13 +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
c6609a4bb9 Set big core to cpu skip mask by default
Also reset the mask for launch and other camera streaming modes that
do not use it.

Bug: 248621289
Test: build pass
Change-Id: Id2f8f203359d4551d17f9b6ba02ee1c8e805fa3c
2024-06-04 14:00:14 +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
Treehugger Robot
745091a821 Merge "powerhint.json: enable gpu capacity signalling." into main 2024-04-10 19:31:11 +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
Kevin DuBois
fe02aeed6d powerhint.json: enable gpu capacity signalling.
Enables a signal indicating that the app has janked as
detected by the ADPF API.

Bug: 290625326
Test: perf / power tests

Change-Id: Iaf0f131cab90e4225642af243303473f56a34320
2024-04-08 11:27:12 -07: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
Jimmy Shiu
53efbd4d47 P23 DVFS headroom and ADPF tuning
Perf and Power tuning by
1. DVFS headroom from 1280 to 1100 for power saving
2. ADPF Pu from 1.0 to 0.6


Bug: 326322782
Change-Id: Icdbb6dda2472754f5e7fda9803ca885917b1120c
2024-02-29 02:12:49 +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
TeYuan Wang
4a777a1f1c shusky: change util threshold of LC
Changed to 50 percent for GAME

Bug: 299843257
Test: run genshin
Change-Id: I1c518347bd626f7eb1eef68968b40905d1ac70ff
2023-12-18 23:56:50 +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