Commit graph

26 commits

Author SHA1 Message Date
Jia-yi Chen
bfba21f025 powerhint: Add CAMERA_STREAMING_VIDEO_CALL hint
Use CAMERA_STREAMING_VIDEO_CALL powerhint to optimize power for
the video_call use cases like Meet.

Bug: 279451663
Test: Check power and framedrop running Goggle Meet
Change-Id: I51ac0da491b6cb8d1c57d84a3f6b2d67d1a02f4a
2023-04-25 08:51:34 -07:00
Wei Wang
2c67560c6b Merge "powerhint: Boost GPU(302000) by 1st frame" into udc-d1-dev 2023-04-19 22:02:20 +00:00
Ali K. Zadeh
bb2228a15c Enable core8 and disable prefer idle for 60fps
Bug: 274005880
Test: ODPM and framedrop
Change-Id: If5e42034dc1addb94061573a3a5805616c5007a3
2023-04-13 21:34:54 +00:00
Ali K. Zadeh
f5deb897f6 Update powerhint to restrict DSU and BCI frequencies
Bug: 274005880
Test: ODPM, framedrop and kibbles measurement
Change-Id: I42e37b55c77780a153f6d959bf5e18ffae89da97
2023-04-13 16:20:32 +00:00
Jimmy Shiu
c2a00aea13 powerhint: Boost GPU(302000) by 1st frame
Use CPU_LOAD_RESET hint to boost the GPU freq to 302000

Bug: 243025173
Test: Manual
Change-Id: Ibcb5bb80a162d562616b7294450761c0a643a4ef
2023-04-12 21:49:48 +08:00
Ali K. Zadeh
7499529d3a Merge "Restrict Lyric to use only Mid Cores" into udc-d1-dev 2023-04-03 21:30:32 +00:00
Qais Yousef
2fa00d3dc8 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: UiBench
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I88aa819bcaa0844d688242894dc899a607076bd8
2023-03-31 21:13:28 +00:00
Ali K. Zadeh
0f5d64170f Restrict Lyric to use only Mid Cores
This CL restricts LyricHAL to use only CPU cores 4-7.

Bug: 274670597
Test: Kibbles measurement
Change-Id: I85373639ecd469faa81736c1f8e45c3107044df0
2023-03-28 15:43:44 +00:00
Jia-yi Chen
44c41465bd Revert "powerhint: Update CPU MaxFreq cap for camera powerhints"
This reverts commit c5deb0c087.

Reason for revert: The temporary solution cause frame drops
Bug: 273836646
Test: Boot
Change-Id: Ibd2413af1f984bd4a4df5c601dd1ce330296f7d1

Change-Id: Ifb4e1f0215e47bee9b65144a86c4c19c11177da4
2023-03-16 21:55:30 +00:00
TreeHugger Robot
1fe3aa2438 Merge "powerhint: boost mem path at first frame" into udc-d1-dev 2023-03-15 02:45:18 +00:00
Kyle Lin
0b9e54e888 powerhint: boost mem path at first frame
Bug: 272750446
Test: build and boot
Change-Id: I0603ae359e0469ec4cac212943e0c8f6bafef855
2023-03-15 06:18:47 +08:00
Siddharth Kapoor
a7a2126955 powerhint: Add GPUMinFreq 150000
Bug: 251015742
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
Change-Id: I51e6b0a716d673852067691e0d7c20bdfa4088ae
2023-03-14 09:55:06 -07:00
TreeHugger Robot
2a747871a0 Merge "powerhint: correct display refresh hint" into udc-dev am: 5fd56d6f79
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/21872460

Change-Id: I69bf5f56543d37deea944fb35af5b93c4c39b8fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-13 18:33:51 +00:00
Kyle Lin
73fdfd463b powerhint: Add DSU and BCI configuration
Bug: 258100337
Bug: 272750446
Bug: 269809407
Test: build and boot
Change-Id: I58efba6c202ab2a7394a2f68d9289013f656e568
2023-03-13 16:46:08 +00:00
Kyle Lin
6e6b3c15c9 powerhint: correct MIF max value
Bug: 258100337
Bug: 269809407
Test: build and boot
Change-Id: I1f03cfd0adf5344a9d3de457bcc6675d90ffe5ea
2023-03-13 15:59:00 +00:00
Jimmy Shiu
edcfbbad3d powerhint: correct display refresh hint
All shusky products are 120Hz/60Hz

Test: Manual
Bug: 258101007
Change-Id: Idc4e68482957db9105282fda8ade40b944d874e4
2023-03-08 01:37:29 +08:00
Jia-yi Chen
c5deb0c087 powerhint: Update CPU MaxFreq cap for camera powerhints
Currently the CPU scheduler is not tuned to set the proper OPPs
for camera use cases so hard limiting the CPU frequencies to limit
the CPU power. This is just a temporary solution and should be
adjusted if it causes any perf regression.

Bug: 270571756
Test: Boot & take traces
Change-Id: I7d465cdce2d08ea530e5e889020b4cedfe04341f
2023-03-06 22:16:20 +00:00
Jay
9b2aeca4f0 powerhint: restrict Camera Daemon to small and mid cores
For all the use-cases, restrict camera daemon to use
4 small and 4 mid cores by default.

Bug: 261760700
Test: GCA video recording
Change-Id: Idf373a98f13e066361cc5144a14cbfefa27e7ca1
2023-01-03 17:49:37 +00:00
TreeHugger Robot
7a1a4b67f7 Merge "Remove UClampThreshold hint" 2022-12-20 06:38:58 +00:00
Jia-yi Chen
45a5c648d6 powerhint: Add CPU MaxFreq cap for camera powerhints
Before PMU feature is ready, directly limit the CPU frequencies
via powerhint. Also update the value of CPU frequencies based on
the latest HW.

Bug: 261760700
Test: Boot & take traces
Change-Id: Ibc41c9decd866a37ec65201204f5a1b09798b72e
2022-12-13 13:43:36 -08:00
Chungkai Mei
09e38849c0 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-13 09:39:59 +00:00
Jay
010c154953 powerhint: disable PMU for Zuma
Zuma's PMU porting is not completed so disable PMU for now.

Bug: 259144954
Test: GCA video recording
Change-Id: I96b16b486342d95df28813b63fe7d95a9d9e2aeb
2022-12-12 19:11:46 +00:00
Chungkai Mei
d4b64e9ef9 powerhint: update the config with gs201
update and modify paths but some tunable may need retune again.

Test: Boot to home
Bug: 254537503
Change-Id: I5a98669bc7f858f563efa081f054e6cba7d07593
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-11-02 08:55:49 +00:00
Taeju Park
a2b8f86f0f Revert "powerhint: update the config with gs201"
This reverts commit f6a8c844d5.

Change-Id: I0c6e9f297a5b6e4d597d3e493bd0019233820ac6
2022-11-01 23:46:19 +00:00
Chungkai Mei
f6a8c844d5 powerhint: update the config with gs201
update powerhint.json

Test: Build to home
Bug: 254537503
Change-Id: I1d6efeb1a541c466073b6aace5bef7a3e4768fdc
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-10-31 05:54:46 +00:00
Robin Peng
fd0859e694 Initialize device folder
from: 858c0f08e332220d80a9eef8ddcd39ef4d5296ee
with updated device path

Bug: 248399843
Change-Id: I215a40a4f4719d5432e87401f4a3214c5189ba20
2022-10-30 16:03:17 +00:00