Commit 9c2d55d6 authored by Adithya R's avatar Adithya R Committed by syhhw
Browse files

trinket-common: Update perf stack from LA.UM.9.11.r1-02400-NICOBAR.0

parent f5d0a3ad
# @file io-p.c
# @brief Defination for iop service
#
# DESCRIPTION
# ---------------------------------------------------------------------------
# Copyright (c) 2011-2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# ---------------------------------------------------------------------------
service iop-hal-2-0 /vendor/bin/hw/vendor.qti.hardware.iop@2.0-service
class hal
user root
group root readproc
# @file vendor.qti.hardware.perf@2.2-service.rc
# @brief Defination perf service
#
# DESCRIPTION
# ---------------------------------------------------------------------------
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# ---------------------------------------------------------------------------
service perf-hal-2-2 /vendor/bin/hw/vendor.qti.hardware.perf@2.2-service
class hal
user root
group root readproc oem_2907
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!--
/* Copyright (c) 2019 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
*/
-->
<!--Ids are used in identifying the boosts, increment ids linearly,
do not modify Ids, or add in between-->
<!--follow the number format rules while specifying number, can be given
in any format-->
<BoostConfigs>
<PerfBoost>
<!--app lauch boost-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<!-- Type="1", main launch boost of 2sec -->
<Config
Id="0x00001081" Type="1" Enable="true" Timeout="2000" Target="trinket"
Resources="0x40C00000, 0x1, 0x40804000, 0xFFF, 0x40804100, 0xFFF, 0x40800000, 1401,
0x40800100, 1305" />
<!--app lauch boost (disabling packing)-->
<!-- POWER COLLAPSE resource opcode, value-->
<!-- CPUBW_MIN_FREQ resource opcode, value-->
<!-- Type="2", launch boost for disable packing 1.5sec -->
<Config
Id="0x00001081" Type="2" Enable="true" Timeout="1500" Target="trinket"
Resources="0x40400000, 0x1, 0x41800000, 59" />
<!-- config_enableLaunchBoostv3-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- SCHED GROUP DOWNMIGRATE resource opcode, value-->
<!-- SCHED GROUP UPMIGRATE resource opcode, value-->
<!-- LPM Bias resource opcode, value-->
<!-- Type="3", FA launch boost of 15sec -->
<Config
Id="0x00001081" Type="3" Enable="true" Timeout="15000" Target="trinket"
Resources="0x40C00000, 0x3, 0x40C58000, 65, 0x40C54000, 71, 0x40408000, 0x63" />
<!-- config_enableLaunchBoostv4-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- SCHED GROUP DOWNMIGRATE resource opcode, value-->
<!-- SCHED GROUP UPMIGRATE resource opcode, value-->
<!-- LPM Bias resource opcode, value-->
<!-- Type="4", AA games only launch boost -->
<Config
Id="0x00001081" Type="4" Enable="true" Timeout="15000" Target="trinket"
Resources="0x40C00000, 0x3, 0x40C58000, 65, 0x40C54000, 71, 0x40408000, 0x05" />
<!-- config_enableLaunchBoostv5-->
<!-- MIN_ONLINE_CPU_CLUSTER_BIG resource opcode, value-->
<!-- MIN_ONLINE_CPU_CLUSTER_LITTLE resource opcode, value-->
<!-- GO_HISPEED_LOAD_INTERACTIVE_CLUSTER_BIG resource opcode, value-->
<!-- GO_HISPEED_LOAD_INTERACTIVE_CLUSTER_LITTLE resource opcode, value-->
<!-- HISPEED_FREQ_INTERACTIVE_CLUSTER_BIG resource opcode, value-->
<!-- HISPEED_FREQ_INTERACTIVE_CLUSTER_LITTLE resource opcode, value-->
<!-- SCHED DOWNMIGRATE resource opcode, value-->
<!-- SCHED UPMIGRATE resource opcode, value-->
<!-- Type="5", Adaptive Launch boost -->
<Config
Id="0x00001081" Type="5" Enable="true" Timeout="2000" Target="trinket"
Resources="0x41000100, 0x4, 0x41000000, 0x4,
0x41440000, 0x28, 0x41440100, 0x28,
0x4143C000, 0xFFF, 0x4143C100, 0xFFF,
0x40C20000, 0x28, 0x40C1C000, 0x32" />
<!-- config_enableLaunchBoost6-->
<!-- LPM_BIAS resource opcode, val ms-->
<!-- SLB_BIG, val, SLB_BIG, val, SLB_BIG, val, SLB_BIG, val-->
<!-- SCHED GROUP DOWNMIGRATE resource opcode, value-->
<!-- SCHED GROUP UPMIGRATE resource opcode, value-->
<!-- MIN_FREQ_BIG, val MHz -->
<!-- CPU_DOWN_FREQ_THRESHOLD_US, val us -->
<!-- Type="6", Game Launch boost -->
<Config
Id="0x00001081" Type="6" Enable="true" Timeout="2000" Target="trinket"
Resources="0x40408000, 0x5,
0x40C68040, 60, 0x40C68050, 60,
0x40C68060, 60, 0x40C68070, 60,
0x40C58000, 65, 0x40C54000, 71,
0x40800000, 1056,
0x41448000, 20000"/>
<!--Animation boost -->
<!-- CPUBOOST_MAX_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<Config
Id="0x00001083" Enable="true" Timeout="400" Target="trinket"
Resources="0x40804000, 2016, 0x40804100, 1804, 0x40800000, 2208, 0x40800100, 1708" />
<!--Vertical Scroll boost-->
<!-- CPUBW_MIN_FREQ resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode, value -->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value -->
<!-- SCHEDBOOST resource opcode, value-->
<!-- Type="1", Vertical Scroll boost -->
<Config
Id="0x00001080" Type="1" Enable="true" Target="trinket"
Resources="0x41800000, 0x26, 0x40800000, 1056, 0x40800100, 1017, 0x40C00000, 2" />
<!--Horizontal Scroll boost-->
<!-- CPUBW_MIN_FREQ resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode, value -->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value -->
<!-- SCHEDBOOST resource opcode, value-->
<!-- Type="2", Horizontal Scroll boost -->
<Config
Id="0x00001080" Type="2" Enable="true" Target="trinket"
Resources="0x41800000, 0x26, 0x40800000, 1056, 0x40800100, 1017, 0x40C00000, 2" />
<!--Pre-Fling boost-->
<!-- CPUBW_MIN_FREQ resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode, value -->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value -->
<!-- SCHEDBOOST resource opcode, value-->
<!-- Type="4", Pre-Fling boost -->
<Config
Id="0x00001080" Type="4" Enable="true" Timeout="80" Target="trinket"
Resources="0x41800000, 0x26, 0x40800000, 1056, 0x40800100, 1017, 0x40C00000, 2" />
<!--MTP boost-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<!-- STORAGE CLK SCALING resource opcode, value-->
<!-- Type="", MTP boost -->
<Config
Id="0x00001086" Enable="true" Target="trinket"
Resources="0x40C00000, 0x1, 0x40804000, 0xFFF, 0x40804100, 0xFFF, 0x40800000, 1401,
0x40800100, 1305, 0x42C10000, 0x1" />
<!--PackageInstall boost-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<!-- SCHED_SYNC_HINT_ENABLE resource opcode, value-->
<!-- Type="", Package Install boost -->
<Config
Id="0x00001088" Enable="true" Target="trinket"
Resources="0x40C00000, 0x2, 0x40804000, 0xFFF, 0x40804100, 0xFFF, 0x40800000,0xFFF,
0x40800100,0xFFF, 0x40CA0000, 0" />
<!--Rotation latency boost-->
<!-- SCHEDBOOST resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ BIG Core resource opcode, value-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<!-- Type="", Rotation latency boost -->
<Config
Id="0x00001089" Enable="true" Timeout="1500" Target="trinket"
Resources="0x40C00000, 0x1, 0x40804000, 0xFFF, 0x40804100, 0xFFF, 0x40800000,0xFFF,
0x40800100,0xFFF" />
<!--Rotation animation boost-->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value-->
<!-- GPU MIN_FREQUENCY resource opcode,value-->
<!-- Type="", Rotation animation boost -->
<Config
Id="0x00001090" Enable="true" Timeout="1000" Target="trinket"
Resources="0x40800100, 1000, 0x4280C000, 950" />
<!--Drag boost-->
<!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode, value -->
<!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode, value -->
<!-- Type="1", Drag boost -->
<Config
Id="0x00001087" Type="1" Enable="true" Timeout="0" Target="trinket"
Resources="0x40800000, 1056, 0x40800100, 1017" />
<!--Display on Resource -->
<!-- Display on resource opcode, value -->
<Config
Id="0x00001041" Enable="true" Timeout="0" Target="trinket"
Resources="0x40000000, 1" />
<!--Display off Resource -->
<!-- Display on resource opcode, value -->
<Config
Id="0x00001040" Enable="true" Timeout="0" Target="trinket"
Resources="0x40000000, 0x0" />
</PerfBoost>
</BoostConfigs>
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2019 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
-->
<!-- This is PerfConfigsStore file which returns the value when a
particular property name is invoked -->
<!-- This file supports only Prop tag, which has the following fields
* Name, to identify the name of the property. The names of the
properties have been classified into Vendor and System property.
* Value, the new value to be returned as string when respective
property Name is called. -->
<PerfConfigsStore>
<PerfConfigs>
<!--System Properties -->
<Prop Name="ro.vendor.qti.sys.fw.bg_apps_limit" Value="60" />
<Prop Name="ro.vendor.at_library" Value="libqti-at.so" />
<Prop Name="vendor.perf.gestureflingboost.enable" Value="true" />
<Prop Name="ro.vendor.iocgrp.config" Value="1" />
<!--Vendor Properties -->
<Prop Name="vendor.iop.enable_uxe" Value="1" />
<Prop Name="vendor.debug.enable.lm" Value="true" />
<Prop Name="vendor.debug.enable.memperfd" Value="true" />
<Prop Name="ro.vendor.qti.am.reschedule_service" Value="true" />
</PerfConfigs>
</PerfConfigsStore>
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2019 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
-->
<TargetConfig>
<!-- All the target related information goes in TargetInfo tag.
Following are the supported fields for TargetInfo tag.
Mandatory Fields
* NumClusters, number of clusters
* TotalNumCores, total number of cores
* SocIds, a comma seperated list of supported socids for this target.
Other Fields
* Target, target name.
* SynCore, default value is "1" implies sync core and change to "0" for async core.
* CoreCtlCpu, core_ctl is enabled on which physical core, defalut value is "-1".
* MinCoreOnline, minimum number of cores needed to be online, default value is "0"
* GovInstanceType, default value "0" which implies "CLUSTER_BASED_GOV_INSTANCE",
can be changed to "1" for "SINGLE_GOV_INSTANCE".
* CpufreqGov, default value is "0" which implies "INTERACTIVE", can be changed it
to "1" for "SCHEDUTIL".
-->
<!-- For each cluster,write a seperate ClustersInfo tag.
Following are the supported fields for ClustersInfo tag.
Mandatory Fields
* Id, cluster number starts with index 0.
* NumCores, total number of cores for that cluster.
Other Fields
* Type, whther a "little" or "big" cluster.
(Type is mandatory, If there is more than one cluster.)
* MaxFrequency, Any limitations for max frequency for that cluster.
-->
<!-- For targets sharing the same platfrom, we can have seperate config tag for each
of those targets with different number in the Config tag and basing on the socId
of the target device, we decide which configs to consider. -->
<Config1>
<TargetInfo
Target="trinket"
NumClusters="2"
TotalNumCores="8"
SocIds="394"
SynCore="1"
CoreCtlCpu="4"
MinCoreOnline="0"
CpufreqGov="1" />
<ClustersInfo Id="0" NumCores="4" Type="little" />
<ClustersInfo Id="1" NumCores="4" Type="big" />
</Config1>
</TargetConfig>
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2019 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
-->
<!-- This is a target specific resource config file which can be
used to overwrite the node paths mentioned in common resources file
and also to modify the Supported field information. -->
<!-- This file supports only Config tag, which has the following fields
* MajorValue and MinorValue, both are required to uniquely
identify the resource.
* Node, the new node path to overwrite the already existing path
of commonresourceconfigs.xml file.
* Supported, to indicate whether the resource is supported or not.
* For each config tag, either of Node or Supported fields need
to be mentioned.
NOTE - It is not Mandatory to write all the resources which are not supported,
as anyway perflock calls of these resources would fail. -->
<ResourceConfigs>
<PerfResources>
<Config MajorValue="0x3" MinorValue="0x3" Supported="no" /> <!-- sched_small_task -->
<Config MajorValue="0x3" MinorValue="0x6" Supported="no" /> <!-- sched_init_task_load -->
<Config MajorValue="0x3" MinorValue="0xA" Supported="no" /> <!-- sched_add_group -->
<Config MajorValue="0x3" MinorValue="0xB" Supported="no" /> <!-- sched_spill_nr_run -->
<Config MajorValue="0x3" MinorValue="0xC" Supported="no" /> <!-- sched_static_cpu_pwr_cost -->
<Config MajorValue="0x3" MinorValue="0xD" Supported="no" /> <!-- sched_restrict_cluster_spill -->
<Config MajorValue="0x3" MinorValue="0x13" Supported="no" /> <!-- sched_set_freq_aggr -->
<Config MajorValue="0x3" MinorValue="0x14" Supported="no" /> <!-- sched_enable_thread_grouping -->
<Config MajorValue="0x3" MinorValue="0x17" Supported="no" /> <!-- sched_freq_aggr_threshold -->
<Config MajorValue="0x5" MinorValue="0x13" Supported="no" /> <!-- rtg_boost_freq -->
<Config MajorValue="0x6" MinorValue="0x0" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq" />
<Config MajorValue="0x6" MinorValue="0x1" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/decay_rate" />
<Config MajorValue="0x6" MinorValue="0x2" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/io_percent" />
<Config MajorValue="0x6" MinorValue="0x4" Supported="no" /> <!-- cpubw_hmon_low_power_ceil_mbps -->
<Config MajorValue="0x6" MinorValue="0x5" Supported="no" /> <!-- cpubw_hmon_low_power_io_percent -->
<Config MajorValue="0x6" MinorValue="0x6" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/max_freq" />
<Config MajorValue="0x6" MinorValue="0x7" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/polling_interval" />
<Config MajorValue="0x6" MinorValue="0x8" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/sample_ms" />
<Config MajorValue="0x6" MinorValue="0x9" Node="/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/idle_mbps" />
<Config MajorValue="0x6" MinorValue="0xA" Supported="no" />
<!-- llcbw L3 and DDR major end -->
<Config MajorValue="0xC" MinorValue="0x0" Supported="no" />
<Config MajorValue="0xC" MinorValue="0x1" Supported="no" />
<Config MajorValue="0xC" MinorValue="0x3" Supported="no" />
<Config MajorValue="0xC" MinorValue="0x4" Supported="no" />
<Config MajorValue="0xC" MinorValue="0x6" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x0" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x1" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x2" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x3" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x4" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x5" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x6" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x7" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x8" Supported="no" />
<Config MajorValue="0xD" MinorValue="0x9" Supported="no" />
<Config MajorValue="0xD" MinorValue="0xA" Supported="no" />
<Config MajorValue="0xD" MinorValue="0xB" Supported="no" />
<Config MajorValue="0xD" MinorValue="0xC" Node="/sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-lat/min_freq" />
<Config MajorValue="0xD" MinorValue="0xD" Node="/sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-lat/mem_latency/ratio_ceil" />
<Config MajorValue="0xD" MinorValue="0xE" Node="/sys/class/devfreq/soc:qcom,cpu4-cpu-ddr-lat/mem_latency/ratio_ceil" />
<Config MajorValue="0xD" MinorValue="0xF" Node="/sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-lat/mem_latency/stall_floor" />
<Config MajorValue="0xD" MinorValue="0x10" Node="/sys/class/devfreq/soc:qcom,cpu4-cpu-ddr-lat/mem_latency/stall_floor" />
</PerfResources>
</ResourceConfigs>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment