Commit graph

77 commits

Author SHA1 Message Date
guibing
0d66d11b31 ADPF:tangorpro: 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: Iac35bf28d85b608c7949e4caeec49942f2787373
2025-02-03 19:33:12 +00:00
guibing
7f7ddfbc45 ADPF:tangorpro: 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: I318e0bcd7b8bed396526b209e73872874a95412d
2025-02-03 19:28:55 +00:00
Chungkai Mei
8523bfff54 Change set preferred idle mask to top-app
Set value to 0x3f to exclude big core for all low priority when app launch.

Bug: 379810138
Flag: EXEMPT add powerhint config
Change-Id: Iaeb21216459a150107f44838aec5e410cb278a30
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-12-26 22:31:38 -08:00
Chungkai Mei
a45a9f13dd Backport autopreferfit for launch
Bug: 379810138
Flag: EXEMPT add powerhint config
Change-Id: I0f1912c5def918906e2212e3c31988da9ac25e22
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-12-24 01:49:34 -08:00
Chungkai Mei
1a8b8047a7 remove unused hint
As we already migrated kernel to 6.1, NewlyIdleBalancer is not used
anymore.

Flag: NONE just remove unused hint
Bug: 379810138
Change-Id: I320983d36c2cc8edae99e5c132ca63f4d2237046
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-12-17 02:08:50 -08:00
Chungkai Mei
af98660b14 Enable TAPreferHighCap for first frame
we already saw some janks caused by longer runnable time.
so Enable TAPreferIdle for first frame

Bug: 372168866
Flag: NONE powerhint do not support flag
Change-Id: I01f699abd1eaed5760789d6c0788cbe4791e2b13
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-11-25 09:50:33 +00:00
Sam Ou
e36c43bcd3 Merge "thermal: Remove bcl related tzones" into main 2024-08-12 12:32:35 +00:00
samou
89ece9edde thermal: Remove bcl related tzones
Flag: EXEMPT tuning changes
Bug: 349935208
Test: Confirm boot
Change-Id: I7aacd517cdd0543e9e4f2010615059b03bf10695
Signed-off-by: samou <samou@google.com>
2024-08-06 07:28:53 +00:00
guibing
df3dc0eda1 Adpf:tangorpro: 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: I934a7763c480a6cd46e98ba6020c5ac29cb7587c
2024-07-26 23:20:53 +00:00
guibing
8c4dea2fa8 Adpf:tangorpro: enable heuristic boost.
Heuristic boost will adjust the ADPF boost profile when the
powerhal detects the power session is very janky, providing more
boost for deadline sensitive threads managered in the session.

Bug: 341111433
Test: adb shell dumpsys android.hardware.power.IPower/default;
      Check the device adpf sessions' traces.
Change-Id: I4f4d79ed9e169fba6de0eea0e5356fef0bf7e388
2024-05-16 20:42:28 +00:00
Matt Buckley
80b2d761ba Merge "Add POWER_EFFICIENCY uclamp max to adpf config" into main 2024-04-29 19:42:15 +00:00
Jimmy Shiu
b50b9cde68 powerhint: set ADPF CPU_LOAD_UP CPU_LOAD_RESET values
Bug: 329483662
Test: Manual Test
Change-Id: I8c90fe98ccc19e88596eb506876edf1b66132a7b
2024-04-10 11:45:08 +00:00
Jimmy Shiu
c68f4c88c7 powerhint: set uclampmin_init value for applying CPU Load boost
Bug: 329483662
Test: Manual Test
Change-Id: I37c7c084e286d8ab544ef20a723974838af4d6c8
2024-04-03 01:04:41 +00:00
Yvonne Yip
deb5fb62d8 powerhint: game mode tuning
Test: test build
Bug: 295636226
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:00d94318d492669c6c132d702ee73ccd515fa5bf)
Merged-In: Ie1c7672d9950630ee868538e49937580d3aece4d
Change-Id: Ie1c7672d9950630ee868538e49937580d3aece4d
2023-12-07 18:03:18 +00:00
Yvonne Yip
cabd89d913 powerhint: add game mode tuning nodes
Add down_rate_limit_us nodes, tapered_dvfs_headroom nodes.

Test: build
Bug: 295636226
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cdf834206df344a704f7f6f21e503f0e3abd4bbb)
Merged-In: Iae9629e0f69d437f7444022d81a478d0c12f2bbe
Change-Id: Iae9629e0f69d437f7444022d81a478d0c12f2bbe

Change-Id: I0491f1e956686025cd4903b4356f36c0682baf6f
2023-12-07 18:03:18 +00:00
guibing
d887dc7830 powerhint: tangorpro: 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: I85dc5530c25c505fe97738e30c892c4965f3a6ac
2023-10-11 00:08:19 +00:00
Jimmy Shiu
9733160186 Merge "powerhint: Add DISPLAY_CHANGE hint" into main 2023-10-03 14:57:44 +00:00
Jimmy Shiu
9360f84ce1 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: I9c604752dec907115f5c09cca1de1e965fb8c91a
2023-09-23 12:45:45 +08:00
Rick Yiu
d46e930521 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: I104bdf8952da66346ecf73ed02245b8bc4be3ee8
2023-09-19 03:00:46 +00:00
Matt Buckley
73026c0748 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: I40f4d41e089aef21bcf1b762376e07670dcbc4f5
2023-08-19 05:42:48 +00:00
Treehugger Robot
9c9700c239 Merge "disable vendor idle balancer" into udc-qpr-dev 2023-07-12 14:48:38 +00:00
Chungkai Mei
a135ce6a40 disable vendor idle balancer
Camera is highly optimized in launched devices, so that we disable idle balancer to avoid influencing previous optimization.

Bug: 281489720
Change-Id: I210f5c14ec589b06e8d8e80799cf7cb650baa9c5
Signed-off-by: Chungkai Mei <chungkai@google.com>
2023-06-21 02:43:50 +00:00
TeYuan Wang
3e74bb58d8 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 T6pro with emul_temp
Change-Id: I82d84e1e085b1a22284aa913606b40f219583210
2023-06-15 15:42:33 -07:00
paulsu
677208c388 Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default am: 2cd8ff3d6e am: 6516401c66
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/23680144

Change-Id: I28627f9a1e3922c65bf26ca3cd37ecab8954d870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 09:50:47 +00:00
paulsu
2cd8ff3d6e Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default
Bug: 280258727
Test: Found regression in b/286002292, local test.
Change-Id: I6024d1a1d669809d7ed8401d66e4ac8facd3112a
Signed-off-by: paulsu <paulsu@google.com>
2023-06-14 05:23:51 +00:00
Ziyi Cui
20bc3e1929 powerhint: Reduce StaleTimeFactor
Reduce StaleTimeFactor for power saving

Bug: 269523712
Test: boot and run uibench
Change-Id: I106a4a2322a93147205e079c9461619967a33917
Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-06-13 17:35:15 +00:00
paulsu
16d86f57d6 Create group throttle powerhint
Test: Local test
Bug: 280258727
Change-Id: Id481cc4434e5769cf227924eab8530a2e63841b9
Signed-off-by: paulsu <paulsu@google.com>
2023-06-08 11:15:52 +00:00
Rick Yiu
33750f3a2a Merge "The dvfs headroom was split into its own knob. Update to use it." into udc-dev 2023-05-12 01:02:24 +00:00
Qais Yousef
764bacd20a The dvfs headroom was split into its own knob. Update to use it.
util_threshold only controls migration margin now. dvfs headroom has its
own new knob.

Bug: 261705301
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I4223b3984003369e8fc7b2f0eac03bbe68569d6c
2023-05-10 10:26:35 +00:00
Mao Lee
87930f7a54 Camera: Add the property and create the power hint to adjust backend min clock for 1080p30fps video stream for front cameras
Bug: 279141417
Test: adb logcat, GCA, CTS
Change-Id: I8ce33dc7d749de4c25085ae845f2c47b50678211
2023-05-08 03:25:21 +00:00
Qais Yousef
6fca96663e Merge "powerhint.json: Update uclamp_min hint to account for margin" into udc-dev 2023-04-25 21:27:51 +00:00
Jimmy Shiu
826c53b945 powerhint: Boost GPU(302000) by 1st frame
Take CPU_LOAD_RESET hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: I57da44fc7e7c11e84241cccf81f83b4ce22768fa
2023-04-12 22:08:54 +08:00
Qais Yousef
7a77f284ec powerhint.json: Update uclamp_min hint to account for margin
Upstream has fixed relationship between uclamp_min and margin which
means uclamp_min value between 80-100% of capacity of the CPU is a valid
value and will not cause upmigration.

To keep the current hints in powerhint.json the same, we must update
uclamp_min to be capacity_orig_of(medium_cpu) + 1.

This change is dependent on uclamp vs fits margin in GKI, vendor
modules. And an improvement in sched_pixel to ignore the 25% boost if
the only reason to request the frequency is uclamp_min.

To cater for the later - we multiply each uclamp_min value with 1.25
- except ones that look intentionally set around capacity boundaries.

Bug: 261695590
Test: PtsUiBench
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I1e6889ebea9877cb23708722a73e97177e6be185
2023-04-06 16:38:25 +00:00
Jimmy Shiu
e12a1c7cf9 Merge "powerhint: Boost GPU(302000) by 1st frame" into udc-dev 2023-03-07 01:13:53 +00:00
Jimmy Shiu
f55c796284 powerhint: Boost GPU(302000) by 1st frame
Take ADPF_FIRST_FRAME hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: I53fabad1b16c14da7c0883bb4858b8622781b609
2023-03-07 01:15:02 +08:00
pointerkung
34b8126ebc Camera powerhint update
Sync PMU and EM_Profile tuning changes (ag/20028064, ag/20075269 and ag/20084677) for 30fps power and performance optimization.

Bug: 265749383
Test: Build pass, GCA
Change-Id: Id45edbf77de1435559cb1171e56bee9c5a2e80b7
2023-03-03 11:10:52 +08:00
sashwinbalaji
48f6675481 Thermal: Remove Camera Powerhint am: c6737051ac am: 78a4033590
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/20680256

Change-Id: Ia13e807c266d78b023cec58b01399917a87d2328
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-17 16:20:41 +00:00
sashwinbalaji
c6737051ac Thermal: Remove Camera Powerhint
Removing camera powerhint for verification

Bug: 206893843
Test: tested locally
Change-Id: I0e10d03cd6ee477620fc4c5075cbe07613d89a58
2023-01-17 10:57:53 +00:00
Luke Chang
12b6dd337e powerhint: add CPU_LOAD_RESET rule
Set minimum mif freq for 1st frame to avoid memlat can't reflect in
time.

Test: Build and check 1st frame boost
Bug: 259275437
Bug: 263383561

Change-Id: I495e36632aa1550021e9c2d8417acbd12fa90ea3
Signed-off-by: Luke Chang <lukechang@google.com>
2023-01-08 16:47:51 +00:00
sashwinbalaji
b137028ac1 thermal: Remove face unlock powerhint
- Remove powerhint as face auth not supported

Bug: 263690696
Test: Update local powerhint

Change-Id: I2160b2ef4b4136e2b2812a3051e958e837c1ea65
2022-12-26 17:39:45 +08:00
sashwinbalaji
28d3ef8f26 thermal: Update powerhint to use VIRTUAL-SKIN-HINT
Replace VIRTUAL-SKIN with VIRTUAL-SKIN-HINT

Bug: 262471610
Test: tested locally by emul_temp
Change-Id: I83f75e5f4b97bf47ac612c862063e8db5bde886f
2022-12-14 14:03:10 +08:00
Chungkai Mei
7661bc43df Remove UClampThreshold hint
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-08 09:44:24 +00:00
TreeHugger Robot
cfc3593d31 Merge "Change the default cpuset of camera daemon" into tm-qpr-dev 2022-11-21 10:19:18 +00:00
TreeHugger Robot
2b3cb2a7d5 Merge "Don't set the min CPU frequency to max frequency for CAMERA_SHOT" into tm-qpr-dev 2022-11-18 07:32:02 +00:00
Chih-ren Yu (Swim)
8e4eccaad0 Don't set the min CPU frequency to max frequency for CAMERA_SHOT
Bug: 258442520
Test:
1. Camera check list
2. 3rd party APP snapshot, GCA live video shot
Change-Id: Ic8cf6129b5b549619f9a925a6b0e23992e23f537
2022-11-18 03:32:16 +00:00
Rick Yiu
a11b655e79 Change the default cpuset of camera daemon
Changing cpuset itself takes time, so we should reduce the cpuset
change as possible. Since all camera streaming mode change to the
same cpuset value, we could make it default setting.

Bug: 240889279
Test: build pass
Change-Id: I4ecce69a254bf30b128b25ab59b1b69a02bfb18d
2022-11-17 03:07:37 +00:00
Jimmy Shiu
7567ae2d98 powerhint: increase boost cap for large UI
Large screen have more elements to be drew and current ADPF boost cap is
not high enough.
Raise the uclamp.min Cap from BIG 1.42GHz to BIG 1.58GHz
Raise the uclamp.min Init from MID 553MHz to MID 696GHz or BIG 500MHz
Also remove ADPF 120/90FPS config since the display only supports 60FPS

Bug: 257170078
Test: PtsUiBench & Calendar
Change-Id: I6865dd7d1237a687f62400a9720624821f342402
2022-11-16 09:36:06 +08:00
Kyle Lin
a1e87a3f5c powerhint: relax the cap when camera exit
Camera hints was canceled at activityStop and applied the rule for
a while after LAUNCH hint, exten the LAUNCH HINT to fix it.

Bug: 255927500
Test: build and launch/exit camera
Change-Id: I86b19467f6038a7fde0935bf79f0a0e6bc76523b
2022-11-14 03:38:49 +00:00
Rick Yiu
6ddc5e88b1 Limit camera daemon cpuset to little cores when app launch
When exiting camera app, camera daemon is still busy in background,
which may affect the launch animation of launcher. So, limit the cpuset
of camera daemon to little cores for 1 second when there is app launch
hint to improve it. This only happens when camera is running. Also bypass this behavior when video recording is active.

Bug: 240889279
Test: camera daemon cpuset changed as expected
Change-Id: I130b1e4718f8e5ef47ad761a2a73d86697d0f8bc
2022-11-14 03:38:38 +00:00
Chungkai Mei
954576dbbd powerhint: synchronize and remove unused hints
Bug: 251357480
Test: Build pass
Test: pts-tradefed run commandAndExit pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHintJsonVerifyTest
Signed-off-by: Chungkai Mei <chungkai@google.com>
Change-Id: Ia8cb9a2f1a7ee51ff5ea0fd86e5823036095ee67
2022-10-13 07:06:22 +00:00