From 84e0156c30799d8fe5c509de88007ccfb17e1116 Mon Sep 17 00:00:00 2001 From: raghavt20 Date: Mon, 21 Dec 2020 11:47:44 +0000 Subject: [PATCH] sm6150-common: Move perf configs to device tree Change-Id: Ia251c28784d24f2d7b1fdcb7a3676be1c5a63d1b --- configs/perf/commonresourceconfigs.xml | 275 +++++++++++++++++++++ configs/perf/msm_irqbalance.conf | 32 +++ configs/perf/perfboostsconfig.xml | 317 +++++++++++++++++++++++++ configs/perf/perfconfigstore.xml | 34 +++ configs/perf/powerhint.xml | 284 ++++++++++++++++++++++ configs/perf/targetconfig.xml | 77 ++++++ configs/perf/targetresourceconfigs.xml | 71 ++++++ proprietary-files.txt | 7 - sm6150.mk | 10 + 9 files changed, 1100 insertions(+), 7 deletions(-) create mode 100644 configs/perf/commonresourceconfigs.xml create mode 100644 configs/perf/msm_irqbalance.conf create mode 100644 configs/perf/perfboostsconfig.xml create mode 100644 configs/perf/perfconfigstore.xml create mode 100644 configs/perf/powerhint.xml create mode 100644 configs/perf/targetconfig.xml create mode 100644 configs/perf/targetresourceconfigs.xml 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