It improved 55% surfaceflinger janks in photos_playgca30fpsvideo cuj test case.
Test: Build and power measurement
Bug: 336872050
Flag: NONE powerhint change does not support flags
Change-Id: Idad3394e5ac9d1d275f144e2d1304a115b7dc3af
Signed-off-by: Chungkai Mei <chungkai@google.com>
Bug: 344685639
Test: Checked the trace file running on the device.
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I1b37c1e71eb148a4dab454b7e7db9cf46f09d9a3
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: I02ed6e281447a080346337554d9566e4173e57b7
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: I6d6f3b6c8990bbe3c04575a60797a2aefa898172
Because F10 enabled PMU and EM for 30fps, it also needs to sync
ag/19286153 and ag/20084677 to enable CDPreferIdle for
CAMERA_STREAMING_STANDARD and disable PMU and EM during the capture
time (also increase the boost duration from 1000ms to 2500ms) to
avoid performance impact.
Bug: 321164832
Test: Build pass, gca_smoke_test, CTS
Change-Id: I5e40662f7e49bd381891f705621209a41ddc96d7
Follow ag/20075269, ag/25261942 has caused regression in GCA launch
time due to activation of PMU at the camera launch time, and capping the
CPU frequency. This CL prevents PMU activation for as long as we are in
powerhints or power-boosts related to camera launch (LAUNCH, CAMERA_LAUNCH,
CAMERA_LAUNCH_EXTENDED).
Bug: 321164832
Test: perfetto trace
Change-Id: I54cb50259adc145847c96e75e2dd79f3eb3b3231
Signed-off-by: paulsu <paulsu@google.com>
This patch is meant to reduce frame drop rate in 60FPS video recording with zoom in/out.
The boost will be triggered at 60FPS video recording while zoom ratio change (for each request that contain zoom ratio control in metadata), and will last for 15 frames.
Test: gca_smoke_test
Bug: 305613607
Change-Id: Ia2a6a452cf2ac7b8ee7a1bd53e5085582d79a2be
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: I3028f9f97d65f92fd43651995790d3902d0883f7
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: I2902d23c9c0c0e31cd0a444d1e8b7a953c41a8d8
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: I0f7667c3368843b12bbc0bd3151864bde6367a00
P22 pmu settings caused power and frame drop regression. This patch lower the little frequency limit and lower the pmu threshold. And see lower power and no frame drop regression.
Bug: 262354426
Test: Camera team power and performance test, full result can be found in b/262354426#comment43
Change-Id: I5300b8f87565e3478ee1c97441d282e268935147
Signed-off-by: paulsu <paulsu@google.com>
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: Ibeca70e171d8c15ec73eb57cd8dd7a5bf21eaea5
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>
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 felix with emul_temp
Change-Id: I5f265fc07bdf1071902071c252b6b78040dfff38
Bug: 280258727
Test: Found regression in b/286002292, local test.
Change-Id: I2f4225be0b98a11028edf1ba4271f2ce6da8c8db
Signed-off-by: paulsu <paulsu@google.com>
Reduce StaleTimeFactor for power saving
Bug: 269523712
Test: boot and run uibench
Change-Id: I0c8811a78ca66c8f9ec2f9c40c83fd02655eb0f0
Signed-off-by: Ziyi Cui <ziyic@google.com>
Not limit max CPU frequency when running multicamera streaming on GCA photo mode.
Test: GCA
Bug: 286792574
Change-Id: Iecf36827a4f26af4a07b6f8d26cff8e942cd8098
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: Id026048db7c9ec21fd843783b918201230774d2a
Use LOW_POWER power hint to detect and lower the control temp
for junction control loops
Bug: 266011718
Test: Build and boot on device. Check thermal control temperatures
during battery save
Change-Id: Ic2f643a5c48aefdd7ea137674513cd57c82ab23d
Signed-off-by: Peter (YM) <peterym@google.com>
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: I60f4d7cd2cecf7ff4d73fa0cee1a09522b1d9bfd
Take ADPF_FIRST_FRAME hint to boost the GPU freq to 302000
Bug: 243025173
Test: Manual
Change-Id: Iac5c503e6fd8f19f0252b65f9ef10ed82b3ed378
Merged-In: Iac5c503e6fd8f19f0252b65f9ef10ed82b3ed378