Commit graph

121 commits

Author SHA1 Message Date
Michael Bestas
262b8597f8
comet: Update powerhint.json from BP2A
Change-Id: I3aa8cb97c1bc2fdbedb6783a11b99e6c759caa41
2025-06-26 08:38:05 +03:00
Michael Bestas
14c1ccc065 aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
 eFtvAJ9LWb6H6j6CV3Dcp6fqkuV2TDPtvACfSI3jKsJGgvXMGkoUZzQSOXttWwU=
 =tcod
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN SSH SIGNATURE-----
 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgPpdpjxPACTIhnlvYz0GM4BR7FJ
 +rYv3jMbfxNKD3JvcAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
 AAAAQKYCairFtd01o92HE7HEWUd/LWZk1cI1LzkpG0dXd2D+ishkEEcJ9Kxyc3DE0xNeo0
 KyKrcC7z3aLUpVxO6b1QY=
 -----END SSH SIGNATURE-----

Merge tag 'aml_tz6_351400020' into staging/lineage-23.0_merge-aml_tz6_351400020

aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
# eFtvAJ9LWb6H6j6CV3Dcp6fqkuV2TDPtvACfSI3jKsJGgvXMGkoUZzQSOXttWwU=
# =tcod
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar 18 02:18:39 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By James Huang (2) and others
# Via Android (Google) Code Review (10) and others
* tag 'aml_tz6_351400020':
  Remove old unused VINTF manifest file
  gps: Update GNSS config for KDDI
  Enable dynamic routing for tmobile_cz and vodafone_cz carriers
  thermal: Low power shutdown policy bringup
  [UWB] Add a new runtime overlay for comet on GSI
  powerhint: Mask hints in AA and DISPLAY_IDLE
  ADPF☄️ add tagged ADPF profile for SYSTEM_UI.
  comet: Clean up dbc and pm properties.
  audio: load Auxel for the Spatial offload USB path
  Update IDisplay to V13-V14
  comet: Update APMg3 tuning files and adding tuning file for HAC
  Revert "powerhint: Disable auto margins"
  powerhint: Disable auto margins
  powerhint: Remove hints associated with the default TAUClampBoost value
  comet: update libspeechenhancer 20241203_1624_RC01
  powerhint: Set Launch hint duration for TARampupMultiplier
  gps: Update official release 4.15.3_8_241114_R3 config on CT3
  Add support for AMM experiment.
  display-dump: make display dump project-specific

Change-Id: I038b01d8aa81e90025031db4ab8a4a82a066e527
2025-06-23 05:14:26 +03:00
Treehugger Robot
05f04285c6 Merge "thermal: Low power shutdown policy bringup" into main 2025-01-17 07:15:34 -08:00
TeYuan Wang
1099688053 thermal: Low power shutdown policy bringup
Bug: 363336093
Bug: 361454856
Bug: 363070211
Test: emul_temp battery and VIRTUAL-SKIN for idle, camera use cases
and check thermal log.

Flag: EXEMPT config change
Change-Id: I81f19bb87a51879ddffebec3df45452f0b681891
2025-01-16 17:53:32 +00:00
Paulsu Su
eb18750876 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:49:16 -08:00
guibing
0e7e7b36a4 ADPF☄️ add tagged ADPF profile for SYSTEM_UI.
- Add a event node for SYSTEM_UI;
- Add a separate SYSTEM_UI profile;
- Remove unused profiles.

Bug: 359672110
Test: adb shell dumpsys android.hardware.power.IPower/default
Flag: NONE powerhal doesn't have a flag yet
Change-Id: Iddfba4b0c3baf32d86ec18b15c9139ba9b86185d
2025-01-13 19:04:58 +00:00
Pechetty Sravani (xWF)
e43663f855 Merge "Revert "powerhint: Disable auto margins"" into main 2024-12-26 21:45:38 -08:00
Qais Yousef
b9c91927de Revert "powerhint: Disable auto margins"
Revert submission 30874761-disable-auto-margins

Reason for revert: Re-enable the feature b/384701697

Reverted changes: /q/submissionid:30874761-disable-auto-margins

Change-Id: Ie85041346a8e7a62b7753bbd741e207e6f15b3f2
2024-12-17 07:41:59 -08:00
Qais Yousef
2abb11ff61 powerhint: Disable auto margins
And restore DownRateLimitUs to previous values as they're not compatible
without the feature being enabled.

Bug: 383127224
Bug: 383332732
Flag: EXEMPT not support for powerhints
Signed-off-by: Qais Yousef <qyousef@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7f6c9ffd1d4d962051547fced295d30b2f6dca4b)
Merged-In: I098d21755eda4821880ca28868d293e7eb068a69
Change-Id: I098d21755eda4821880ca28868d293e7eb068a69
2024-12-16 19:39:11 -08:00
Treehugger Robot
5cb38119df Merge "powerhint: Disable auto margins" into main 2024-12-13 18:58:49 -08:00
Qais Yousef
7f6c9ffd1d powerhint: Disable auto margins
And restore DownRateLimitUs to previous values as they're not compatible
without the feature being enabled.

Bug: 383127224
Bug: 383332732
Flag: EXEMPT not support for powerhints
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I098d21755eda4821880ca28868d293e7eb068a69
2024-12-14 00:33:20 +00:00
Jimmy Shiu
cbad87a337 powerhint: Remove hints associated with the default TAUClampBoost value
Since the default value 1 is the lowest priority, it only
takes effect while all other values are disabled.
Therefore, the hints associated to value 1 are unnecessary.

Bug: 357445276
Change-Id: I1e4c68681f9db9f30092451053c8e439979eb89c
Flag: EXEMPT not supported by this component yet
Test: Boot to home and check the trace and ADPF profile
Test: adb shell dumpsys android.hardware.power.IPower/default
2024-12-12 01:02:18 -08:00
Paulsu Su
49a6de80b7 powerhint: Set Launch hint duration for TARampupMultiplier
Change-Id: I32e15da952a8c3ed8043f0ff35c5c586b6124082
bug: 383449126 
flag: EXEMPT powerhint do not support flag
2024-12-11 07:18:42 +00:00
Dmitry Skiba
4ff7962854 Add support for AMM experiment.
See go/pixel-perf-amm-experiment for more info.

Bug: 365855872
Test: build/flash; set .Perf__amm_experiment=true, observe auto_migration_margins_enable value changing 1->0; set .Perf__amm_experiment="", observe the value changing 0->1
Flag: NONE controlled by Mendel instead
Change-Id: I77124ff55150075bb6d129c7c56ebed1a939ad59
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-09 19:43:18 +00:00
Dmitry Skiba
0ea9a17876 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 0xff during app launches
Flag: NONE powerhint change does not support flags
Change-Id: I45ba5311e46aa2c6b40705ff098889d47c6a2fa2
Signed-off-by: Dmitry Skiba <dskiba@google.com>
2024-12-06 07:53:48 +00:00
Qais Yousef
8e61044a40 powerhint: Set response_time_ms for clusters
By default slow it down as auto margins can lead to faster ramping up in
low activity use cases.

Set it back to default in GAME mode to retain previous behavior. Set it
explicitly for DISPLAY_IDLE as a potential area for more tuning in the
future.

Bug: 315748906
Flag: EXEMPT powerhints are not compatible with flagging
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I275545cc98714afd3efefb9f57e6bac55fcb6ea3
2024-12-04 15:52:29 +00:00
Qais Yousef
279cd17355 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: 315748906
Flag: EXEMPT powerhints are not compatible with flagging
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Ifaee3631458e144270f41b66595c5e853546171c
2024-12-04 15:46:44 +00:00
Ali K. Zadeh
e382abfda2 Merge "[comet] Define multiple levels of PA kill to be used in Mendel experiments" into main 2024-11-19 00:03:13 +00:00
Ali K. Zadeh
4ffe47393a [comet] Define multiple levels of PA kill to be used in Mendel experiments
Level 1: 100MB
Level 2: 300MB
Level 3: 500MB

Bug: 375039716
Test: logcat
Flag: EXEMPT resource only file change
Change-Id: Ie7f09f797e33d94ffa01f38762b69a8976a866b2
2024-11-18 19:44:23 +00:00
Chungkai Mei
ef979d3c2d Enable TAPreferHighCap for first frame
we already saw some janks caused by longer runnable time.
so Enable TAPreferHighCap for first frame

Bug: 372168866
Flag: NONE powerhint do not support flag
Change-Id: I01f699abd1eaed5760789d6c0788cbe4791e2b13
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-10-31 07:28:16 +00:00
Richard Chang
61589cef5b powerhint: Add WriteOnly flag for PA_KILL to avoid SELinux error
The node "/sys/kernel/vendor_mm/pa_kill/reclaim_kb" is write-only. So we need to add WriteOnly flag to prevent powerhal to read the node.

SELinux errors:
avc:  denied  { dac_read_search } for  comm="android.hardwar" capability=2  scontext=u:r:hal_power_default:s0 tcontext=u:r:hal_power_default:s0 tclass=capability permissive=0
avc:  denied  { dac_override } for  comm="android.hardwar" capability=1  scontext=u:r:hal_power_default:s0 tcontext=u:r:hal_power_default:s0 tclass=capability permissive=0

Bug: 350830411
Change-Id: I649e263a5371782184ce712fef3e8d42941806d7
Test: adb shell dumpsys android.hardware.power.IPower/default, check if any avc denied messages
Flag: EXEMPT config json change
2024-10-29 08:29:08 +00:00
Ali K. Zadeh
251a1fb25a Merge "[comet] Define CAMERA_MULTICAM_BOOST" into main 2024-10-15 23:10:57 +00:00
Rick Yiu
f1815b79fb 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: Ia98132e94c6572165687cb4437492ab0669f9427
2024-10-10 12:53:44 +00:00
Yvonne Yip
dcc77598de powerhint: enable auto_prefer_idle in games
Bug: 353987938
Test: manual testing
Flag: NONE powerhint
Change-Id: I70bf789a476553f05ee016daec24592076daf283
2024-10-09 12:53:03 -07:00
Treehugger Robot
a7d9620657 Merge "Use auto prefer fit for launch" into main 2024-10-07 16:17:20 +00:00
Chungkai Mei
bb48ea5f64 powerhint: port dvfs_headroom settings from p24
Flag: NONE align device tuning from P24.
Bug: 371094656
Test: boot
Change-Id: I858208921e64aefeee6f6abf60387fd80f5f5e34
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-10-04 02:57:27 +00:00
Chungkai Mei
12af273b17 powerhint.json: enable gpu capacity signalling.
Enables a signal indicating that the app has janked as
detected by the ADPF API.

Flag: NONE align device tuning from P24.
Test: perf / power tests
Bug: 371094656
Change-Id: I19279e0f5a5fea59ffd0728128d6170f61e8a3e2
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-10-04 02:38:00 +00:00
Treehugger Robot
48d4cd082a Merge "Boosting kswapd uclamp min value when the panel is on" into main 2024-09-26 09:57:17 +00:00
Chungkai Mei
c617d1d942 Boosting kswapd uclamp min value when the panel is on
Boosting kswapd's uclamp minimum value in the scheduler
allows kswapd more opportunities to remain in middle cores.
This change enhances kswapd's memory reclamation efficiency.

Bug: 351708752
Test: check kbnob value when the panel is on/off
Flag: EXEMPT device policy tuning
Change-Id: I4b75016aa3f2de22b0b9e46d8e594d4042124a04
2024-09-26 07:10:58 +00:00
Sam Ou
b6dbbf5e11 Merge "thermal: Remove bcl related tzones" into main 2024-09-24 05:51:13 +00:00
Rick Yiu
6832fe9387 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: I28d8023d3bc8852d6bcb771c0b2338a15f97ca37
2024-09-16 08:20:20 +00:00
Rick Yiu
293b436df4 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: I43f57177a7bd8dafc902063fd63d3bbb58ffff71
2024-09-06 09:08:33 +00:00
Rick Yiu
0e0b8676dc 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: I9f71dc336792ad0b1add06a83d6261273313f9ef
2024-09-06 09:07:25 +00:00
Pointer Kung
8e17fdbdf8 Set max load balance to 4, reduce Downrate Limit for lit and mid cores
Refer to ag/28864349

Bug: 354763942
Test: Build pass, Boot to home
Flag: EXEMPT resource file change only
Change-Id: I85c033e0fd309ff9b6fe8fb24f6c9e687e31f1c6
2024-08-20 04:56:39 +00:00
Paulsu Su
6c974f0980 powerhint: CPULittleClusterMinFreq default 820MHz
Change-Id: I69881adafffff8a5e265e862fc711fac490fe885
Test: boot to home
Bug: 348088963
Flag: NONE powerhint do not support flag
2024-08-08 07:27:50 +00:00
samou
b319347637 thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: I4dd7581ac8a5ef5756f00b91b54160fe27dfe939
Signed-off-by: samou <samou@google.com>
2024-08-06 07:45:53 +00:00
Ali K. Zadeh
3b7c659644 [comet] Define CAMERA_MULTICAM_BOOST
Port from ag/28607900

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: I0a240e1b6c82b6b0e4577005c16b589f1865c154
2024-08-02 20:18:38 +00:00
Treehugger Robot
0466de1eac Merge "Enable PA_KILL during PA_KILL_BOOST" into main 2024-07-31 03:52:49 +00:00
c
c779206925 Enable PA_KILL during PA_KILL_BOOST
sync with ag/28274083.

Currently, we enable PA_KILL always on camera launch. This CL puts this
feature behind a power boost profile which can only be triggered from
camera hal and is controlled by a mendel flag.

Bug: 356005553
Test: 1. adb logcat
      2. gca_smoke.py test pass
Flag: EXEMPT resource only update
Change-Id: I5320d90072b92ebfb791ad50905667d764f7e3e8
2024-07-31 00:35:53 +00:00
guibing
9653d99a48 Adpf☄️ 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: If4e4bc917252244c7460908f40d328a2e23182e1
2024-07-26 23:19:37 +00:00
Yvonne Yip
4d8c8dfade powerhint: Enable auto migration margins/dvfs headroom for game mode
Since the system is more reactive now when tasks are getting busier, set
DownRateLimitUs to 500us to avoid increasing power.

Also enable pertask iowait boost as util_avg will always start from
0 for forked tasks and this could impact io tasks that need additional
help to ensure to migrate to bigger core if they need more perf.

Bug: 315748906
Test: build
Flag: NONE powerhint change does not support flags
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:61cf08366eb4e916beb1ad910754c8bc6c18bf14)
Merged-In: I03a83cbf7b0c6fdf1abd3c63ccb96a38350d17da
Change-Id: I03a83cbf7b0c6fdf1abd3c63ccb96a38350d17da
2024-07-17 23:00:31 +00:00
Yvonne Yip
51140ac43c powerhint: Add nodes to control per-task iowait boost
It's disabled by default.

Ensure camera and game mode explicitly disable it too as it is only
required when auto margins are enabled for now.

Ensure it is disabled when screen is off too as We don't want io
activities to cause wake up on bigger cores while screen is off.

Bug: 340534339
Test: build
Flag: NONE powerhint change does not support flags
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dad48beaeb9f9fce8acb67c06bfd022e86ce0e0d)
Merged-In: Ie9d20fe5ad6b423e8c26a36b7f01592040292ead
Change-Id: Ie9d20fe5ad6b423e8c26a36b7f01592040292ead
2024-07-17 22:59:56 +00:00
Yvonne Yip
b804969d8f powerhint: Add nodes required to enable auto migration margins/dvfs headroom
Everything should be disabled by default.

Make sure camera and game explicitly disable them by default too.

Ensure the feature is disable when screen is idle.

Bug: 315748906
Test: build
Flag: NONE powerhint change does not support flags
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb4df08c9ea617625d25cf12bc60c41c173d996b)
Merged-In: Ibd08cec303010e87057463f5aff737a5105e04b6
Change-Id: Ibd08cec303010e87057463f5aff737a5105e04b6
2024-07-17 22:59:25 +00:00
Yvonne Yip
62542ec650 powerhint: Explicitly set DownRateLimitUs for camera
So that we can change the default values without impacting it.

Bug: 315748906powerhint: Explicitly set DownRateLimitUs for camera

So that we can change the default values without impacting it.

Bug: 315748906
Test: build
Flag: NONE powerhint change does not support flags
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9084165d0d0f699f7cc3968dded4f71d4ec20a92)
Merged-In: Ic14d51f0b5b512f5557d904d682e9f934bbab87f
Change-Id: Ic14d51f0b5b512f5557d904d682e9f934bbab87f
2024-07-17 22:58:00 +00:00
Pointer Kung
4080c0deea Powerhint tuning for photo capture
UClamp.min of all threads in top app is set to mid core max capacity during photo capture, which will dispatch them to big core.
Critical threads of photo capture will be interrupted due to their lower priority, while other cores idle.

To deal with this situation,
prefer_idle mask to big/mid cores can reduce the idle in mid cores.
UClamp.min on nice can set UClamp.min of photo capture critical threads to mid core max capacity, while others as zero,
this can make critical threads run on big core without frequently interrupted.
By applying this, photo capture latency can be reduced with slight change of power consumption.

Refer to ag/28118299

Bug: 345601796
Test: Build pass, Boot to home
Flag: NONE powerhint change does not support flags
Change-Id: I7d6d0c5c23aaf7888a64ecbafde2275129fd22a1
2024-07-15 04:14:05 +00:00
Pointer Kung
4d6418dc70 Increase SPC thresholds based on the field data
Refer to ag/28174403

Bug: 350111391
Test: Build pass, Boot to home
Test: 30fps/120fps ~+20mW, 60fps ~+26mW without frame drop impact
https://docs.google.com/spreadsheets/d/1z_s2z_MjSYOcEKZbKdC6Pu0quoSDZDzn3bawaulInzo/edit?usp=sharing
Flag: EXEMPT bugfix
Change-Id: I686e5d45ac0595c93b766ea311cd390f4d3d7bd7
2024-07-10 17:29:27 +00:00
Richard Chang
c87c5cf3a7 Reapply "powerhint: add proactive kill hint for camera launch"
This reverts commit beed8e1a34.

Bug: 322916612
Test: local test
Flag: EXEMPT resource only update
Change-Id: Ia4d17cecb66551b7cc850f82a165a03d265f7507
2024-06-21 07:02:41 +00:00
Lynn Yeh
8d58a44a51 Merge changes from topic "pmu_fix" into 24D1-dev am: 654892efc1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/comet/+/27778356

Change-Id: Ifed654a7d45b2c4c7a3e4181882448e654d8f762
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-13 03:06:46 +00:00
Pointer Kung
950e4ca719 Update PMU thresholds with PMU ignorance logic disabled am: 6b22f33b50
Original change: https://googleplex-android-review.googlesource.com/c/device/google/comet/+/27726436

Change-Id: I2006be98429b3b48710d0e994337b229d62e08ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-13 03:06:41 +00:00
Vince Chiu
796c46dc00 Reduce CPUDVFSHeadroom for mid and big core (for 60fps and 240fps)
Reducing CPUDVFSHeadroom can help save power in 60fps and 240fps
use-cases once RT threads are enabled. Even without the RT patch
(ag/27725456), we can see savings without any impact to framedrop rate.

sync from ag/27765730

Bug: 341495529
Test: GCA
Change-Id: I8692df07c2a52115a497b7e71ccbe9638add1cc8
2024-06-12 23:43:46 +00:00