From 094d6fd2b45aa5b4aaa7c668f21ea41fa9c17e69 Mon Sep 17 00:00:00 2001 From: therootlord Date: Sun, 9 Dec 2018 20:57:39 -0200 Subject: [PATCH] sanders: update perf configs from LA.UM.7.6.2.r1-04200-89xx.0 * init.qcom.rc: set vendor.post_boot.parsed prop, required for perf * perfboostsconfig.xml edits: * Reduced minimum launch boost freq * Remove SCHED_SPILL_NR_RUN and SCHED_RESTRICT_CLUSTER_SPILL opcodes --- configs/perf/commonresourceconfigs.xml | 210 +++++++++++++++++++++++++ configs/perf/perfboostsconfig.xml | 120 ++++++++++++++ configs/perf/targetconfig.xml | 89 +++++++++++ configs/perf/targetresourceconfigs.xml | 56 +++++++ configs/perfboostsconfig.xml | 61 ------- device.mk | 10 +- rootdir/etc/init.qcom.rc | 3 + vendor_prop.mk | 3 +- 8 files changed, 488 insertions(+), 64 deletions(-) create mode 100644 configs/perf/commonresourceconfigs.xml create mode 100644 configs/perf/perfboostsconfig.xml create mode 100644 configs/perf/targetconfig.xml create mode 100644 configs/perf/targetresourceconfigs.xml delete mode 100644 configs/perfboostsconfig.xml diff --git a/configs/perf/commonresourceconfigs.xml b/configs/perf/commonresourceconfigs.xml new file mode 100644 index 0000000..c600900 --- /dev/null +++ b/configs/perf/commonresourceconfigs.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/perfboostsconfig.xml b/configs/perf/perfboostsconfig.xml new file mode 100644 index 0000000..4d60c60 --- /dev/null +++ b/configs/perf/perfboostsconfig.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/targetconfig.xml b/configs/perf/targetconfig.xml new file mode 100644 index 0000000..839a7cb --- /dev/null +++ b/configs/perf/targetconfig.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/targetresourceconfigs.xml b/configs/perf/targetresourceconfigs.xml new file mode 100644 index 0000000..137d3d1 --- /dev/null +++ b/configs/perf/targetresourceconfigs.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perfboostsconfig.xml b/configs/perfboostsconfig.xml deleted file mode 100644 index e68c1d3..0000000 --- a/configs/perfboostsconfig.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/device.mk b/device.mk index 7d64ef9..e78a5e1 100644 --- a/device.mk +++ b/device.mk @@ -306,6 +306,13 @@ PRODUCT_PACKAGES += \ DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay +# Perf configs +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/perf/commonresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonresourceconfigs.xml \ + $(LOCAL_PATH)/configs/perf/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml \ + $(LOCAL_PATH)/configs/perf/targetconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetconfig.xml \ + $(LOCAL_PATH)/configs/perf/targetresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetresourceconfigs.xml + # Power PRODUCT_PACKAGES += \ android.hardware.power@1.0-impl \ @@ -314,8 +321,7 @@ PRODUCT_PACKAGES += \ # Powerhint configuration file PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/powerhint.xml:system/etc/powerhint.xml \ - $(LOCAL_PATH)/configs/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml + $(LOCAL_PATH)/configs/powerhint.xml:system/etc/powerhint.xml # Qualcomm PRODUCT_COPY_FILES += \ diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index b8826af..318a79c 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -1013,3 +1013,6 @@ on property:sys.boot_completed=1 #CPE fw_name used by sound trigger HAL chown media audio /sys/kernel/wcd_cpe0/fw_name +on property:sys.boot_completed=1 + setprop vendor.post_boot.parsed 1 + diff --git a/vendor_prop.mk b/vendor_prop.mk index f85443e..cd6f96f 100644 --- a/vendor_prop.mk +++ b/vendor_prop.mk @@ -195,7 +195,8 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.extension_library=libqti-perfd-client.so \ ro.vendor.at_library=libqti-at.so \ - ro.vendor.gt_library=libqti-gt.so + ro.vendor.gt_library=libqti-gt.so \ + vendor.debug.enable.gamed=0 # Qualcomm PRODUCT_PROPERTY_OVERRIDES += \