Power: Add powerhint.xml for waipio

Added powerhint.xml for waipio target and
modified the make file.

Change-Id: Ib28f9f2b00ef116394b0a88cf60a6d004c23b5bc
This commit is contained in:
Vini Vennapusa
2021-07-01 18:33:35 +05:30
parent 6b812f0f55
commit f102db83bd
2 changed files with 343 additions and 0 deletions

341
config/taro/powerhint.xml Normal file
View File

@@ -0,0 +1,341 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
/*Copyright (c) 2020-2021, 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.
*/
-->
<HintConfigs>
<Powerhint>
<!--video encode 30 fps-->
<Config
Id="0x00001203" Enable="true" Target="taro"
Resources="" />
<!--sustained performance-->
<Config
Id="0x00001206" Enable="true" Target="taro"
Resources=""/>
<!--vr mode-->
<Config
Id="0x00001207" Enable="true" Target="taro"
Resources=""/>
<!--vr mode sustained performance-->
<Config
Id="0x00001301" Enable="true" Target="taro"
Resources=""/>
<!-- qvr level cpu1 gpu1 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130A" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu1 gpu2 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130B" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu1 gpu3 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130C" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu2 gpu1 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130D" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu2 gpu2 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130E" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu2 gpu3 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x0000130F" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu3 gpu1 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x00001310" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu3 gpu2 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x00001311" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!-- qvr level cpu3 gpu3 -->
<!-- B CPU - Cluster min freq ~.902 Ghz -->
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
<!-- L CPU - Cluster min freq ~. 595 Ghz -->
<!-- L CPU - Cluster max freq ~1.286 Ghz -->
<!-- P CPU - PRIME CPU min freq ~.921 Ghz-->
<!-- P CPU - PRIME CPU max freq ~2.112 Ghz -->
<!-- GPU - min pwrlevel 9 (freq 315 Mhz) -->
<!-- GPU - max pwrlevel 5 (freq 540 Mhz) -->
<!-- Min Big CPUs 3 -->
<!-- Min Prime CPUs 1 -->
<!-- Indefinite Duration -->
<Config
Id="0x00001312" Enable="true" Target="taro" Timeout="0"
Resources="0x40800000, 0x386, 0x40804000, 0x82C, 0x40800100, 0x253, 0x40804100, 0x506,
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
0x41000200, 0x1"/>
<!--camera ZSLPreview-->
<!--CPU-LLC BWMON - Set sample_ms 33-->
<!--CPU-LLC BWMON - Set io_percent 100 -->
<!--CPU-LLC BWMON - Set hyst_length hist memory 0 -->
<!--CPU-LLC-DDR BWMON - Set sample_ms 33 -->
<!--CPU-LLC-DDR BWMON - Set io_percent 100 -->
<!--CPU-LLC-DDR BWMON - Set hyst_length hist memory 0 -->
<!--L CPU - Disable schedutil PL -->
<!--L CPU - Set hispeed load 99 -->
<!--CPU0-LLC MEM LAT - Set ratio_ceil 200 -->
<!--CPU0-LLC-DDR MEM LAT - Set ratio_ceil 200 - no resource id yet-->
<Config
Id="0x00001330" Enable="true" Timeout="0" Target="taro"
Resources="0x41820000, 0x21, 0x41808000, 0x64, 0x4180C000, 0, 0x4300C000, 0x21,
0x43004000, 0x64, 0x43008000, 0, 0x41444100, 0, 0x41440100, 0x63,0x43420000, 0xC8"/>
<!--camera 30fps-->
<!--CPU-LLC BWMON - Set sample_ms 33 -->
<!--CPU-LLC BWMON - Set io_percent 100 -->
<!--CPU-LLC BWMON - Set hyst_length hist memory 0 -->
<!--CPU-LLC-DDR BWMON - Set sample_ms 33 -->
<!--CPU-LLC-DDR BWMON - Set io_percent 100 -->
<!--CPU-LLC-DDR BWMON - Set hyst_length hist memory 0 -->
<!--L CPU min freq 998400 -->
<!--L CPU - Disable schedutil PL -->
<!--L CPU - Set hispeed load 99 -->
<!--CPU0-LLC MEM LAT - Set ratio_ceil 200 -->
<!--CPU0-LLC-DDR MEM LAT - Set ratio_ceil 200 - no resource id yet-->
<Config
Id="0x00001331" Enable="true" Timeout="0" Target="taro"
Resources="0x41820000, 0x21, 0x41808000, 0x64, 0x4180C000, 0, 0x4300C000, 0x21,
0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x3E6, 0x41444100, 0, 0x41440100, 0x63,
0x43420000, 0xC8"/>
<!--camera 60fps-->
<!--CPU-LLC BWMON - Set sample_ms 16 -->
<!--CPU-LLC BWMON - Set io_percent 100 -->
<!--CPU-LLC BWMON - Set hyst_length hist memory 0 -->
<!--CPU-LLC-DDR BWMON - Set sample_ms 16 -->
<!--CPU-LLC-DDR BWMON - Set io_percent 100 -->
<!--CPU-LLC-DDR BWMON - Set hyst_length hist memory 0 -->
<!--L CPU min freq 1209600 -->
<!--L CPU - Disable schedutil PL -->
<!--L CPU - Set hispeed load 99 -->
<!--CPU0-LLC MEM LAT - Set ratio_ceil 200 -->
<!--CPU0-LLC-DDR MEM LAT - Set ratio_ceil 200 - no resource id yet-->
<Config
Id="0x00001332" Enable="true" Timeout="0" Target="taro"
Resources="0x41820000, 0x10, 0x41808000, 0x64, 0x4180C000, 0, 0x4300C000, 0x10,
0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x4B9, 0x41444100, 0, 0x41440100, 0x63,
0x43420000, 0xC8"/>
<!--camera 8k30-->
<!--CPU-LLC BWMON - Set sample_ms 33 -->
<!--CPU-LLC BWMON - Set io_percent 100 -->
<!--CPU-LLC BWMON - Set hyst_length hist memory 0 -->
<!--CPU-LLC-DDR BWMON - Set sample_ms 33 -->
<!--CPU-LLC-DDR BWMON - Set io_percent 100 -->
<!--CPU-LLC-DDR BWMON - Set hyst_length hist memory 0 -->
<!--L CPU min freq 1209600 -->
<!--L CPU - Disable schedutil PL -->
<!--L CPU - Set hispeed load 99 -->
<!--CPU0-LLC MEM LAT - Set ratio_ceil 200 -->
<!--CPU0-LLC-DDR MEM LAT - Set ratio_ceil 200 - no resource id yet-->
<Config
Id="0x00001335" Enable="true" Timeout="0" Target="taro"
Resources="0x41820000, 0x21, 0x41808000, 0x64, 0x4180C000, 0, 0x4300C000, 0x21,
0x43004000, 0x64, 0x43008000, 0, 0x40800100, 0x4B9, 0x41444100, 0, 0x41440100, 0x63,
0x43420000, 0xC8"/>
<!--video encode HFR 480 fps-->
<!--MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1-->
<!--MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, CPU_SILVER_LEVEL_15 (1036800 kHz)-->
<!--MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, CPU_GOLD_LEVEL_12 (1228800 kHz)-->
<!--MPCTLV3_SCHED_DOWNMIGRATE, 0x14-->
<!--MPCTLV3_SCHED_UPMIGRATE, 0x1E-->
<!--CPU-LLC BWMON - Set sample_ms 10 -->
<!--CPU-LLC BWMON - Set io_percent 80 -->
<!--CPU-LLC BWMON - Set hyst_length hyst_trigger hist memory 0 -->
<Config
Id="0x00001334" Enable="true" Timeout="0" Target="taro"
Resources="0x40400000, 0x1, 0x40800100, 0x40C, 0x40800000, 0x4CC, 0x40C20000, 0x14,
0x40C1C000, 0x1E, 0x41820000, 0x0A, 0x41808000, 0x50, 0x4180C000, 0"/>
<!-- camera open tunings-->
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
<!-- MPCTLV3_SCHED_BOOST, 0x1 -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_BIG_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, 0xFFF -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_PLUS_CORE_0, 0xFFF -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_PLUS_CORE_0, 0xFFF -->
<Config
Id="0x00001337" Enable="true" Timeout="0" Taget="taro"
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/>
<!-- camera close tunings-->
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
<!-- MPCTLV3_SCHED_BOOST, 0x1 -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_BIG_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, 0xFFF -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, 0xFFF -->
<!-- MPCTLV3_MIN_FREQ_CLUSTER_PLUS_CORE_0, 0xFFF -->
<!-- MPCTLV3_MAX_FREQ_CLUSTER_PLUS_CORE_0, 0xFFF -->
<Config
Id="0x00001338" Enable="true" Timeout="0" Taget="taro"
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/>
<!-- camera snapshot tunings-->
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
<!-- Silver cluster min freq to 1.132GHz -->
<!-- Gold cluster min freq to 1.363GHz -->
<!-- MPCTLV3_SCHED_DOWNMIGRATE, 0x14 -->
<!-- MPCTLV3_SCHED_UPMIGRATE, 0x1E -->
<Config
Id="0x00001339" Enable="true" Timeout="0" Taget="taro"
Resources="0x40400000, 0x1, 0x40800100, 0x46C, 0x40800000, 0x553, 0x40C20000, 0X14,
0x40C1C000, 0X1E"/>
</Powerhint>
</HintConfigs>

View File

@@ -15,4 +15,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),lahaina)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/lahaina/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
else ifeq ($(TARGET_BOARD_PLATFORM),holi)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/holi/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
else ifeq ($(TARGET_BOARD_PLATFORM),taro)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
endif