The android-mainline kernel doesn't provide the scheduler vendor hooks,
and therefore the pixel drivers don't expose anything below
/proc/vendor_sched/. This causes powerpower-libperfmgr to emit *a lot*
of warnings to logcat regarding failures to write to nodes below
/proc/vendor_sched/.
As a solution, provide a -mainline version of powerhint.json for the
two platforms supported by android-mainline.
The new files are based on revision f56bbd1bfb ("disable vendor idle
balancer") of powerhint.json and have all nodes and actions referring
to /proc/vendor_sched/ removed using the following jq commands:
for f in powerhint-oriole.json powerhint-raven.json ; do \
fdst="$(basename "${f}" .json)-mainline.json"
names=$(jq '."Nodes"[] | select(."Path" | startswith("/proc/vendor_sched/")).Name' "${f}" \
| tr '\n' ' ' \
| sed -e 's|" "|", "|g')
jq '. | del( ."Actions"[] | select(."Node"==('"${names}"')))' "${f}" > "${fdst}"
jq '. | del( ."Nodes"[] | select(."Path" | startswith("/proc/vendor_sched/")) )' "${fdst}" > "${fdst}2"
mv "${fdst}2" "${fdst}"
done
The -mainline version will be picked based on a boot property set by
the mainline kernel.
Bug: 265961701
Test: adb shell -nT getprop vendor.powerhal.config
adb logcat -b all -D 'libperfmgr:V powerhal-libperfmgr:V *:S'
m libperfmgr_test \
&& adb push \
out/target/product/oriole/data/nativetest64/libperfmgr_test/libperfmgr_test \
/data/libperfmgr_test \
&& adb shell /data/libperfmgr_test
Change-Id: Ice07444e38194e5fcf2127e935afdd4d29ff8e87
Signed-off-by: André Draszik <draszik@google.com>
rt_uclamp_min and sf_uclamp_min have been made redundant in Pixel by
ADPF for sf, so we are just going to remove them outright rather than
worrying about overriding them later
Bug: 285248880
Test: manual
Change-Id: I6b26c9e95066b689517352edd9c707cd12afdf67
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: I915bf64a669c176e53542752760f21e3a696a57b
We have USBC thermistor change after EVT1.0, so disable the
throttling for earlier HW version to prevent false alarm.
Bug: 197266814
Test: adb shell cat /dev/thermal/tz-by-name/usb_pwr_therm2/temp
Change-Id: Ia829d6a16d8ac390ed213efe2c5e12e24aca4320
turn on st33spi when persist.vendor.se.ese2.mode is set to ctsmode
Bug: 193417907
Test: VtsHalSecureElementV1_2TargetTest,
VtsHalSecureElementV1_1TargetTest,
VtsHalSecureElementV1_0TargetTest,
CtsOmapiTestCases
Change-Id: I38d9d4c44bb5fd59e2f709b3046f74c1b2483eea
The speaker calibration step is changed in factory and the speaker
calibration file's permission is incorrect. Then audio hal cannot read
speaker.cal file to apply it and only apply default cal value.
Correct the file mode when init.
Bug: 197039088
Test: push the script into device and check file mode after rebooting device
Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: I1339f006f4477288cb41d07cb32caba0921b6e09
This patch change owner of Bluetooth Timesync node to be Bluetooth to
allow Bluetooth HAL to read controller timestamp data via this node.
And also enable timesync for raven.
Bug: 172616898
Test: ccc_test
Change-Id: Id3663f058415cc3f5b50d88b7c70844a53bc9f0f
Bug: 187394838
Bug: 187562932
Test: Antispoof is disabled by default.
Test: Use the following adb command to manully turn on antispoof.
"setprop persist.vendor.fingerprint.disable.fake.override 0"
Change-Id: I56d1129af7e73a901ea5f3258517e68545c38894
Bug: 174189880
Test: twoshay is launched
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I9c4b2c760d4b004944728a3ebdeb4c0da937c10f
Signed-off-by: Tai Kuo <taikuo@google.com>
Bug: 173330899
Test: twoshay is launched
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I189f32e0fcb6b5880bc188971cc847603aafa4dc
Signed-off-by: Tai Kuo <taikuo@google.com>
Use a persist system property to control the touch driver attribute
file glove_mode.
0: default sensitivity mode (default)
1: high sensitivity mode
Bug: 173330977
Bug: 174189638
Test: manual test
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: Id5e31bd335f8872993ea82ad9a7e7217ed9de5c6