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: I2a3ca476354c0e920931749a285305f30f61d319
Previously, these files were installed with a custom $(shell) command
in an Android.mk file. This doesn't let the build system know that
these files exist, and breaks hermetic partition builds.
Instead, install them with PRODUCT_COPY_FILES, and add a check that
the list is up-to-date.
Bug: 205632228
Test: Presubmits
Change-Id: Ib1b1bddd440f6e36daf81da6e51b42706c098ee8
am skip reason: Merged-In I7bb05c1f0057a15ff76b14af6a7d6390cf5f1fb0 with SHA-1 3aae814a0e is already in history
Original change: https://android-review.googlesource.com/c/device/google/raviole/+/2776403
Change-Id: Ie234c21a8e4955f7c47ee349c844fc37fb7b4f5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
am skip reason: Merged-In I7bb05c1f0057a15ff76b14af6a7d6390cf5f1fb0 with SHA-1 3aae814a0e is already in history
Original change: https://android-review.googlesource.com/c/device/google/raviole/+/2776403
Change-Id: Ie03bf89ff9223f4a3b92eb96cccba518034781d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
am skip reason: Merged-In I7bb05c1f0057a15ff76b14af6a7d6390cf5f1fb0 with SHA-1 3aae814a0e is already in history
Original change: https://android-review.googlesource.com/c/device/google/raviole/+/2776403
Change-Id: I74843d59a0488ac63facf1e866a8a1e43ac9ffc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
am skip reason: Merged-In I7bb05c1f0057a15ff76b14af6a7d6390cf5f1fb0 with SHA-1 3aae814a0e is already in history
Original change: https://android-review.googlesource.com/c/device/google/raviole/+/2776403
Change-Id: Icfac6e733f0e2d25ac21d904684dd282dfc3c208
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
am skip reason: Merged-In I7bb05c1f0057a15ff76b14af6a7d6390cf5f1fb0 with SHA-1 3aae814a0e is already in history
Original change: https://android-review.googlesource.com/c/device/google/raviole/+/2776403
Change-Id: I2810332c53478734d2d26d096a99c70f0d78ff6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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: Ifaca5cac8320e08790eed27a5c7121c60901f26e
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: I276d3c11e95cfaccaadfe45d58131a34a6bdfb54
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>
JSON syntax stipulates no final comma after the last element in an
object. While Android's parser is not that strict, other tools like
'jq' are unhappy about incorrect syntax.
Fix this up, so that we can use 'jq' to generate the android-mainline
versions of these files in the next step.
Bug: 265961701
Test: jq '."Nodes"[]' powerhint-oriole.json powerhint-raven.json
Fixes: f56bbd1bfb ("disable vendor idle balancer")
Change-Id: If57e37d63d3a5bdd93552536691a192850198c0b
Signed-off-by: André Draszik <draszik@google.com>