diff --git a/configs/perf/commonresourceconfigs.xml b/configs/perf/commonresourceconfigs.xml new file mode 100644 index 0000000..cf776dc --- /dev/null +++ b/configs/perf/commonresourceconfigs.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/msm_irqbalance.conf b/configs/perf/msm_irqbalance.conf new file mode 100644 index 0000000..8689e05 --- /dev/null +++ b/configs/perf/msm_irqbalance.conf @@ -0,0 +1,32 @@ +# Copyright (c) 2017, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# + +PRIO=1,1,1,1,0,0,0,0 +#arch_timer, arm-pmu, arch_mem_timer +IGNORED_IRQ=19,21,39 diff --git a/configs/perf/perfboostsconfig.xml b/configs/perf/perfboostsconfig.xml new file mode 100644 index 0000000..bff2ecf --- /dev/null +++ b/configs/perf/perfboostsconfig.xml @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/perfconfigstore.xml b/configs/perf/perfconfigstore.xml new file mode 100644 index 0000000..69d3157 --- /dev/null +++ b/configs/perf/perfconfigstore.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/powerhint.xml b/configs/perf/powerhint.xml new file mode 100644 index 0000000..e930de0 --- /dev/null +++ b/configs/perf/powerhint.xml @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/targetconfig.xml b/configs/perf/targetconfig.xml new file mode 100644 index 0000000..62672bf --- /dev/null +++ b/configs/perf/targetconfig.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/perf/targetresourceconfigs.xml b/configs/perf/targetresourceconfigs.xml new file mode 100644 index 0000000..80ccff9 --- /dev/null +++ b/configs/perf/targetresourceconfigs.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary-files.txt b/proprietary-files.txt index 5a2896b..8d0748d 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -401,13 +401,6 @@ vendor/lib/vendor.qti.hardware.vpp@1.3.so vendor/bin/hw/vendor.qti.hardware.perf@2.2-service vendor/bin/msm_irqbalance vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc -vendor/etc/msm_irqbalance.conf -vendor/etc/perf/commonresourceconfigs.xml -vendor/etc/perf/perfboostsconfig.xml -vendor/etc/perf/perfconfigstore.xml -vendor/etc/perf/targetconfig.xml -vendor/etc/perf/targetresourceconfigs.xml -vendor/etc/powerhint.xml vendor/lib64/libperfconfig.so vendor/lib64/libperfgluelayer.so vendor/lib64/libperfioctl.so diff --git a/sm6150.mk b/sm6150.mk index 7f0d725..3985f33 100644 --- a/sm6150.mk +++ b/sm6150.mk @@ -247,6 +247,16 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_ENFORCE_RRO_TARGETS += * +# Perf +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/perf/commonresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonresourceconfigs.xml \ + $(LOCAL_PATH)/configs/perf/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \ + $(LOCAL_PATH)/configs/perf/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml \ + $(LOCAL_PATH)/configs/perf/perfconfigstore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfconfigstore.xml \ + $(LOCAL_PATH)/configs/perf/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.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-service-qti