Commit graph

119 commits

Author SHA1 Message Date
Michael Bestas
a9dfe05dfc
akita: Update powerhint.json from BP2A
Change-Id: I3aa8cb97c1bc2fdbedb6783a11b99e6c759caa41
2025-06-26 07:48:38 +03:00
guibing
7c926f7fb3 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values
Bug: 329483662
Test: adb shell dumpsys android.hardware.power.IPower/default
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I72b48c620713e8dd5d4dd688caf9f01e7020966b
2025-02-03 19:48:19 +00:00
guibing
6aef16af26 ADPF:akita: use tagged ADPF profile for SYSTEM_UI.
- Add a event node for SYSTEM_UI;
- Add a separate SYSTEM_UI profile.

Bug: 393196667
Test: adb shell dumpsys android.hardware.power.IPower/default
Flag: NONE powerhal doesn't have a flag yet
Change-Id: Ie7df5f87b163dd002b74fcd69332f0a8e7a26ef4
2025-02-03 19:48:19 +00:00
guibing
cb6d75503b ADPF:akita: remove unused adpf profiles.
Bug: 393196667
Test: adb shell dumpsys android.hardware.power.IPower/default
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I3d9b5a65f76ed3d8602e2d6b987831ba95a7cdd8
2025-01-30 23:25:49 +00:00
Qais Yousef
690039f44d powerhint: Enable auto migration margins/dvfs headroom by default
And reduce DownRateLimitUs to 500us as the system should be more
reactive now when something needs to rampup quickly.

Enable pertask iowait boost too as with auto dvfs headroom enabled all
tasks will start form 0 util_avg and this could impact iowait tasks
without this being enabled to help them migrate up to bigger cores.

Camera use cases should still use their own default DownRateLimitUs and
disable this feature to keep their dvfs_headroom tuning intact.

Bug: 392622882
Flag: EXEMPT powerhints are not compatible with flagging
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Iaf81e74c9c3b0e4a57b1708981ad878810189b20
2025-01-28 17:06:25 +00:00
Paulsu Su
5924f4edcc powerhint: Mask hints in AA and DISPLAY_IDLE
This CL adds a powerhint for AA mode to mask storming hint. DISPLAY_IDLE masks DISPLAY_UPDATE_IMMINENT and CPU_LOAD_RESET when Android Auto property is set. When navigation in Android Auto, the two hint with action to boost memlat is costly.

Bug: 380188115 
Change-Id: I825a56ac32a0ecdc8b441af9cb64e81b1d04f9a6
Test: Local test with desktop_head_unit_internal
Flag: EXEMPT powerhint change
2025-01-13 19:01:52 -08:00
Dmitry Skiba
79cd618b08 Add a way to disable auto prefer fit for launch.
This change introduces "is APF enabled" system properties, and
uses them as trigger conditions for APF nodes / pre-APF nodes.

By default APF nodes are active, and pre-APF nodes are inactive,
which maintains the situation before this change.

A future experiment will flip "is APF enabled" system properties,
deactivating APF nodes and activating pre-APF nodes. For more
info see go/pixel-perf-apf-experiment.

Bug: 365855872
Test: set vendor.powerhal.apf_enabled=false, vendor.powerhal.apf_disabled=true, observe auto_prefer_fit
procfs value staying "false" and instead preferred_idle_mask_mid
changing to 0x1ff during app launches
Flag: NONE powerhint change does not support flags
Change-Id: Iedf4e9283c2e5f20ae818abfcf475fefe953c9c8
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-06 07:43:30 +00:00
Treehugger Robot
b57fddb0b5 Merge "Revert "powerhint: enable auto_prefer_idle in games"" into main 2024-11-21 19:47:31 +00:00
Kame(TeYuan) Wang
137c188062 Revert "powerhint: enable auto_prefer_idle in games"
Revert submission 29817358-p23_auto_prefer_idle

Reason for revert: Power efficiency regression

Reverted changes: /q/submissionid:29817358-p23_auto_prefer_idle

Bug: 372961087
Test: manual testing
Change-Id: I840c146903434e310cf5db09c2530c5816bf4b81
2024-11-21 18:23:30 +00:00
Hong-Yen Lo
cfbfa0a365 Enable CDPreferHighCap for CAMERA_STREAMING_HIGH for akita
Test: 1080p60 power and perf, 4k60 power
Bug: 371210260
Flag: EXEMPT resource file only change
Change-Id: I2429f7f1ea07b877f095d3ba0954cd6851df2884
2024-10-22 08:35:27 +00:00
Ali K. Zadeh
933ab6323a Merge "[akita] Define CAMERA_MULTICAM_BOOST" into main 2024-10-15 23:10:57 +00:00
TeYuan Wang
8960e3eb31 powerhint: enable auto_prefer_idle in games
Bug: 372961087
Test: manual testing
Flag: NONE powerhint config change
Change-Id: I79251b43b1b3409b941ad45162847dece245cc9e
2024-10-11 22:02:30 +00:00
Rick Yiu
e5f155a3e3 Enable TA and FG prefer idle for some camera streams
These streams do not disable TA or FG prefer idle, so restore it.

Bug: 236868627
Flag: NONE powerhint change does not support flags
Test: build pass
Change-Id: I200c45f1422dc9e7a82620e27e2885c9afe3cfb8
2024-10-10 11:18:07 +00:00
Ali K. Zadeh
b22f973ff0 [akita] Define CAMERA_MULTICAM_BOOST
This CL defines CAMERA_MULTICAM_BOOST (with the same settings as the
existing CAMERA_ZOOMING_BOOST). Having both definitions is necessary to
be able to transition from zooming boost to multicam boost. Once the
multicam boost flag is fully rolled out, we can remove the
CAMERA_ZOOMING_BOOST.

Bug: 347829135
Test: adb logcat
Flag: EXEMPT resource file only change
Change-Id: I89f58da3836001f6dd5e566eb1520e785ac8f3de
2024-10-09 18:17:19 +00:00
Rick Yiu
13d9ccb178 Use auto prefer fit for launch
Enable auto prefer fit for high prio tasks when app launch, and tune
uclmap min settings for different task prio.

Bug: 353885521
Flag: NONE powerhint change does not support flags
Test: build pass
Change-Id: I8aa7187b7178626ed8bf0e04fd7a9a46d1247bd3
2024-09-16 15:03:27 +00:00
Rick Yiu
03b02b9d9d 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: I36695fdf1531b3aa4d3856abf23819e1f95e20ca
2024-09-03 15:31:27 +00:00
Rick Yiu
aa1d0e00c9 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
Flag: NONE powerhint change does not support flags
Change-Id: Ic1092af7b22905595be42756112a2959bfcd0b79
2024-09-03 15:31:06 +00:00
Rick Yiu
e22506213c 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
Flag: NONE powerhint change does not support flags
Change-Id: If69d19b4f8f7003bae4a268f19acf4fab18adb5b
2024-09-03 15:26:36 +00:00
Wei Wang
7305a6be0a Merge "powerhint: Lower CAM uclamp min" into main 2024-08-31 03:10:57 +00:00
Jay
7e5048c6c2 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: Id50149316baf2dd91b664d730e7f7753ffece5a2
2024-08-12 22:56:15 +00:00
Sam Ou
25a1493a40 Merge "thermal: Remove bcl related tzones" into main 2024-08-12 12:32:35 +00:00
samou
b1257dd9d6 thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: Iad49f5a64fc8bde9922dbed740c0aea9cec8a5e5
Signed-off-by: samou <samou@google.com>
2024-08-06 03:51:14 +00:00
guibing
9b8ff033a0 Adpf:akita: 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: I69d3bafbd982c53c3cabbbd18d264f68179c098f
2024-07-26 23:18:59 +00:00
lukechang
c9442b63b2 powerhint: adjust cpd target residency when interaction
Modify default BC/MC CPD target residency to 10ms.
Increase to 750ms during interaction.

Bug: 283233731
Bug: 350508026

Flag: EXEMPT bugfix

Test: power & perf cuj test

Change-Id: I6694ebd6f1f1f237bfd954eaca37cab9918c4b1e
Signed-off-by: lukechang <lukechang@google.com>
2024-07-12 07:50:21 +00:00
guibing
1dc6a9f589 Adpf:akita: 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: Ia90372cf08ddc31bfa527553b81e78084ac73f48
2024-04-25 22:51:37 +00:00
Treehugger Robot
95584ee8c9 Merge "adpf:akita: update hboost jank check time factor." into main 2024-04-19 02:32:32 +00:00
guibing
cbeff97fef adpf:akita: 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: Ia5b1090d54cd5b8c9490813a8ba74532a50f2b8a
2024-04-18 22:54:09 +00:00
Wei Wang
80b97eb058 Merge "adpf:akita: add hboost junk detection time factor into power hint json files." into main 2024-04-16 03:50:58 +00:00
guibing
2d10d8f4c3 adpf:akita: 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: I702d835376123985bd042e5d42180eb5558226ff
2024-04-16 00:12:16 +00:00
Treehugger Robot
174082bf11 Merge "akita: Add heuristic boost configs in power hint json files." into main 2024-04-13 01:33:50 +00:00
guibing
8783aa3573 akita: Add heuristic boost configs in power hint json files.
Bug: 204204746
Test: Power hal launches in device without configuration parsing issue.
Change-Id: I04a43fab7f866ed4aa516f7b538cb39e7b1942a7
2024-04-12 23:02:11 +00:00
Rick Yiu
290188c349 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: I539c3e65720e3496859bce9a752d13432b62a59a
2024-04-11 07:57:11 +00:00
Kevin DuBois
75b4436cdc 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: Ifb1a4b8ece24fdf1685ce40b0902a8e1486886d9
2024-04-08 11:30:59 -07:00
Wei Wang
481b7638b5 Merge "Change set preferred idle mask to top-app" into main 2024-03-25 15:47:50 +00:00
Sam Paradis
486d3cf0db 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: I04f68a608da8bd4e06fd28d1f212c14bfea6dfa2
2024-03-09 01:55:49 +00:00
Rick Yiu
45e8f50a29 Merge "Revert "Disable auto prefer idle if ta prefer_idle is explictly disabled"" into main 2024-02-27 10:43:52 +00:00
Rick Yiu
e181fc2150 Revert "Disable auto prefer idle if ta prefer_idle is explictly disabled"
This reverts commit 118520982f.

Reason for revert: to avoid potential power regression

Bug: 326507991
Change-Id: I35c60d7f10320f419c1886ab7c0ab0f4733a04a9
Test: build pass
2024-02-27 03:06:07 +00:00
Treehugger Robot
e694bdb168 Merge "Camera: Add the property and create the power hint to adjust minimum operating frequency of the cam group for 60fps video stream for rear cameras" into main 2024-02-26 11:49:06 +00:00
Rick Yiu
118520982f 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: Id9cec1f2622619d4927c037db6790e1c332689e7
2024-02-23 08:28:48 +00:00
Mao Lee
fa8cfc6895 Camera: Add the property and create the power hint to adjust minimum operating frequency of the cam group for 60fps video stream for rear cameras
Bug: 315422431
Test: GCA, CTS, Manual adb cat uclamp_min check
Change-Id: I124c8fb9f652605addddd9bc46650c46df8a390d
2024-02-22 02:03:13 +00:00
Rick Yiu
1d71e4f027 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: I4f3b800b6fda1baabe7e924b8191ebab29c08fd6
2024-02-06 08:14:10 +00:00
Rick Yiu
d3fcc4b71a Remove SchedLibMaskIn usage
Remove it since CONFIG_RVH_SCHED_LIB is disabled.

Bug: 323115768
Test: no error logs
Change-Id: I10e820fb00e7b8a6775d52ab87bc41d7b0353348
2024-02-01 06:29:18 +00:00
Jimmy Shiu
c18e17a4b9 Merge "[ADPF] PID tuning for DVFS headroom change" into udc-qpr-dev am: f3a0c59df8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita/+/25872549

Change-Id: Id1dbf110d9f88c04483f268b7a7b8e00b5e11ad3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-26 08:37:14 +00:00
Jimmy Shiu
a6b9d4d243 [ADPF] PID tuning for DVFS headroom change
Reduce the uclamp_min decline rate by setting Pu from 1 to 0.6

Test: scroll_gm_list_120hz, scroll_youtube_120hz, uibench
Bug: 319786989
Change-Id: I3e4726aff878b788439dbbccfb578bbc3df4d100
2024-01-22 02:51:10 +00:00
Mao Lee
e3a4e768b5 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.

Test: GCA, CTS
Bug: 315422971
Change-Id: Ibc24cc5fb96eb4b83de932d2805763799e185dc8
2024-01-16 03:42:39 +00:00
TeYuan Wang
6d515abc56 akita: change util threshold of LC
Changed to 50 percent for GAME

Bug: 299843257
Test: run genshin
Change-Id: I94ded2429bd8eef0023565b67f65aa8f39095848
(cherry picked from commit edf0e42513)
2023-12-19 03:25:19 +00:00
TeYuan Wang
edf0e42513 akita: change util threshold of LC
Changed to 50 percent for GAME

Bug: 299843257
Test: run genshin
Change-Id: I94ded2429bd8eef0023565b67f65aa8f39095848
2023-12-18 23:56:45 +00:00
Treehugger Robot
539c2d46cc Merge "power: adjust dvfs headroom to 1100" into udc-qpr-dev am: 22cc840669 am: 1bec26b4a5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita/+/25389714

Change-Id: I75438fac90b93685af61ca6b2a7e549e8371ec59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 02:40:31 +00:00
Chungkai Mei
a1762ccf11 power: adjust dvfs headroom to 1100
current dvfs headroom is 1280, smaller headroom may be benefcial
to pwoer

Bug: 295991776
Change-Id: I60cfa63dd488155e54c057ba8b5f2ba413f6467d
Signed-off-by: Chungkai Mei <chungkai@google.com>
2023-12-01 08:11:53 +00:00
TeYuan Wang
722f623697 akita: keep LC util threshold to 1280 for game am: f26f51e180 am: d675d47d3d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita/+/25492660

Change-Id: Iaaa32be1727c0ac880a43454f9754d7936f7b7b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-28 20:25:16 +00:00