Commit graph

42 commits

Author SHA1 Message Date
TreeHugger Robot
9bbfbe5ec8 Merge "Camera powerhint update" into tm-qpr-dev 2023-03-09 23:37:13 +00:00
Jimmy Shiu
9e0c93f1aa 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
Merged-In: I53fabad1b16c14da7c0883bb4858b8622781b609
2023-03-07 01:15:21 +00:00
pointerkung
0ee09b6dff 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
Merged-In: Id45edbf77de1435559cb1171e56bee9c5a2e80b7
2023-03-03 12:25:45 +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
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
Chung-Kai (Michael) Mei
0b7dcca4ad Merge "Update camera and face unlock related powerhint" into tm-qpr-dev 2022-10-07 04:51:37 +00:00
Chungkai Mei
fc75279aad Update camera and face unlock related powerhint
Boost big cpu cluster when face unlock and relax
CPU minimum frequency boost for LAUNCH_CAMERA

Bug: 248960565
Change-Id: I075b7f4447327be4ef601c531b43473f79dbc74a
2022-10-07 03:00:02 +00:00
Jay Chien
78e8b81514 [T6] Relax CPU minimum frequency boost for LAUNCH_CAMERA
Synchronizing solution from L10: ag/2002817

Bug: 251027883
Test: CTS testCameraLaunch, GCA
Change-Id: I4a3956d3be18e353bf883af79fafeec07e36cda9
2022-10-05 06:51:32 +00:00
Richard Chang
e93b23905f Merge "powerhint: clean up unused hints in T6p" into tm-qpr-dev 2022-09-19 05:12:37 +00:00
Richard Chang
54bda0f2d3 powerhint: clean up unused hints in T6p
LAUNCH_120FPS is removed but some actions still use it.

Bug: 246738037
Test: pts-tradefed run commandAndExit pts -m PtsPerformanceTestCases -t
com.google.android.perf.pts.PowerHintJsonVerifyTest

Change-Id: I3ab91cace52c617adf0ccadb95098de697efc5c0
2022-09-16 08:20:38 +00:00
TeYuan Wang
e657950726 Remove frequency boost of big cores for FACE_UNLOCK
Bug: 245619770
Test: build
Change-Id: I31b68a52e80c924bbecaa1b18a15c9ff4b2335ed
2022-09-15 23:38:11 +08:00
sashwinbalaji
e9f6f92eb6 thermal: update control temp in powerhint
1) Change the default trip_point_1_temp and trip_point_2_temp in accordance to new config provided by hardware (b/235166018#comment5).
2) Removing AUR nodes

Bug: 246546076
Test: Used local build to verify the trip_point_1_temp & trip_point_2_temp when VIRTUAL_SKIN
severity is changed on updating quiet_therm temp.

Change-Id: I240ba1b77706b6ce8991285dfa0ea6deae25f15b
2022-09-14 15:21:11 +08:00
Siddharth Kapoor
001814c4ac Replace GPUMinFreq 151000 with 202000
Bug: 240479599
Change-Id: If7a5970b4f6d6049fc0aee4fc7caeb99ccbbdf21
2022-09-05 22:22:16 -07:00
TreeHugger Robot
c305d4a222 Merge "Config dex2oat according to thermal status" into tm-qpr-dev 2022-09-02 06:04:31 +00:00
Rick Yiu
3ed689ec0d Merge "Remove RestrictedCpuset hint" into tm-qpr-dev 2022-09-02 04:59:42 +00:00
Rick Yiu
60f3c1e73e Config dex2oat according to thermal status
Config dex2oat cpuset and thread count according to thermal status.

LIGHT cpuset = 0,1,2,3,4,5 thread = 6
MODERATE cpuset = 0,1,2,3 thread = 4
SEVERE cpuset = 0,1,2,3 thread = 4
CRITICAL cpuset = 0,1,2,3 thread = 2
EMERGENCY cpuset = 0,1,2,3 thread = 1

Bug: 242948832
Test: build pass
Change-Id: If352833f9fe0f2593f5e98648587e2a99d5669c5
2022-09-01 08:37:24 +00:00
Rick Yiu
de3d6dd287 Remove RestrictedCpuset hint
With systemui now changed its cpuset in early stage, we no longer
need RestrictedCpuset hint as workaround.

Bug: 242775562
Test: build pass
Change-Id: I17603010b7070594f703e04b09cfb3a2a37ecac5
2022-08-30 06:48:24 +00:00
jimmyshiu
ba8ccf33f5 Enable ADPF CPU hints for SF
Allow these devices to send CPU hints to PowerHAL from SF to reduce
drops and save power.

Bug: b/241152899
Bug: b/195990840

Test: manual
Change-Id: I06a38eeade1aea7cb12bef079b555e6e34d2581c
(Port from commit 8a419466b86ab07a25fc18d7d6a2a9ee154f6839)
2022-08-29 12:22:09 +00:00
chungkai
987953c22c powerhal: update powerhint
Test: Build pass
Bug: 236819367
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I407d64f6e0a1dad86db08b70059faae3eb78b5e8
2022-07-13 02:22:29 +00:00
sashwinbalaji
e0e6499f0e thermal: update control temp in powerhint
1) Change the default trip_point_1_temp and trip_point_2_temp in accordance to new config provided by hardware.
2) Removing AUR nodes

Bug: 233329602
Test: Used local build to verify the trip_point_1_temp & trip_point_2_temp when VIRTUAL_SKIN
severity is changed on updating quiet_therm temp.

Change-Id: I179991c60b27edb6df518f387cbea1043548ea8d
2022-06-28 10:39:32 +00:00
chungkai
c2afe0fbf0 powerhal: correct the name of powertint "ReducePreferIdle"
Test: Build pass
Bug: 235887477
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I41d78202839d12aa0cba176f1e1b6233085aed9d
2022-06-22 09:40:53 +00:00
Jonglin Lee
68323f2e75 tangorpro: sync latest powerhint
Sync latest powerhint to unblock boot.

Bug: 235850212
Test: Boot to home
Signed-off-by: Jonglin Lee <jonglin@google.com>
Change-Id: I0369570176d962411ae1bc2b40396952e8ac205f
2022-06-13 15:40:19 -07:00
chungkai
03ce73f12f powerhal: sync latest powerhint
we need disable uclamp_threshold and reduce_prefer_idle, boost FG group when apps launch and remove FPS based hints for TA boost.

Bug: 233423618
Test: build pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I3fe9318d46426c1e5ef7defe85126501313d419f
2022-05-24 02:56:09 +00:00
Wei Wang
96e63735dc Merge "ADPF: remove UclampMin_Granularity" into tm-d1-dev 2022-05-16 16:33:41 +00:00
Jimmy Shiu
24495fa480 ADPF: remove UclampMin_Granularity
No need to prevent uclamp.min update rate by Granularity.
There is no perf impact.

Bug: 232336917
Test: /data/nativetest64/libperfmgr_test/libperfmgr_test
Change-Id: Iddbf24fd3419164028d55d0e401b5a8742136c91
2022-05-13 13:59:43 +08:00
Wei Wang
2a78a2f8b3 Boost INTERACTION to 185 and remove DISPLAY_UPDATE_IMMINENT
Bug: 205369368
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I063f8aa6d77b966d50d11c0135880ff787870e07
2022-05-11 16:12:43 -07:00
Rick Yiu
840cd359b9 Reduce FG prefer_idle when display is idle
Bug: 178016953
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I60276b18ebd4246524347405b434a2fec35ad3e7
2022-04-21 16:17:10 +08:00
jimmyshiu
838ccb356b powerhint: Add Adpf Profiles for T6 Pro
Add Adpf Profiles:
1. REFRESH_60FPS
2. REFRESH_90FPS
3. REFRESH_120FPS
4. UiHighBoostWithoutPid
5. UiLowBoostWithoutPid
6. UiLowNoneBoost
(Default is index 0)

Bug: 202158746
Test: boot to home
Change-Id: I73fadf7ba602b117b12eb398688da0e722180940
2022-04-19 16:26:01 +00:00
chungkai
df277fb5ed sched: move sysfs to procfs
Modify the path of vendor_sched nodes

Test: powerhal work normally
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: If0ce170988bd75f1a284388fdcc37370a100b24b
2022-03-24 06:31:55 +00:00
Daeho Jeong
69f1274a2a disable powerhint for F2FS gc_urgent mode
Disable the powerhint for F2FS gc_urgent mode, since we are going to
replace this with the smart idle maintenance service.

Test: turn on/off the screen & check /sys/fs/f2fs/dm-*/gc_urgent
Bug: 214430685
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I6c56412663849b4f8b9b462f095457165a1aed14
2022-03-16 13:15:37 -07:00
Wei Wang
8ad6d70871 Temporarily disable GPU power hold during LAUNCH boost
P21 has been using GPU power hold during app launch to mitigate jank
from GPU power on latency.
However this same mechanism seems causing instability (may be related
to the new inter-frame power optimization). While the root cause is
being investigated, disable the boost.

Bug: 223828284
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Id04a1d09ebd5b36c1c7c55824da34bffb6435cab
2022-03-11 15:13:06 -08:00
Roger Liao
dd5f546264 Add device tangorpro
based on two sources:
1. 52e030ecef8a2debcd0a7cebb0b2cddc50e8e4e6
(ChangeId: Ieba6a75fe45595592c61dc5ad4e0c723adccaf35)
2. 3164f3d31b1197f305d968027f2e6f18663f1382
(ChangeId: Ic517f1cd5462f3653de3742834ec251362e7849d)

No-Typo-Check: based on above commit

Bug: 220073297
Change-Id: I244f73dc8485045e1bc4605a2701a1e4d32139b0
2022-03-09 19:30:09 +08:00