Merge e118a0b01f on remote branch
Change-Id: I69521e13fd5908bd7f6805fe4dbc2469bedf703e
This commit is contained in:
@@ -63,7 +63,6 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
|
||||
case Mode::DOUBLE_TAP_TO_WAKE:
|
||||
case Mode::LOW_POWER:
|
||||
case Mode::LAUNCH:
|
||||
case Mode::EXPENSIVE_RENDERING:
|
||||
case Mode::DEVICE_IDLE:
|
||||
case Mode::DISPLAY_INACTIVE:
|
||||
case Mode::AUDIO_STREAMING_LOW_LATENCY:
|
||||
@@ -74,6 +73,9 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
|
||||
case Mode::VR:
|
||||
LOG(INFO) << "Mode " << static_cast<int32_t>(type) << "Not Supported";
|
||||
break;
|
||||
case Mode::EXPENSIVE_RENDERING:
|
||||
set_expensive_rendering(enabled);
|
||||
break;
|
||||
case Mode::INTERACTIVE:
|
||||
setInteractive(enabled);
|
||||
power_hint(POWER_HINT_INTERACTION, NULL);
|
||||
@@ -93,6 +95,7 @@ ndk::ScopedAStatus Power::isModeSupported(Mode type, bool* _aidl_return) {
|
||||
LOG(INFO) << "Power isModeSupported: " << static_cast<int32_t>(type);
|
||||
|
||||
switch(type){
|
||||
case Mode::EXPENSIVE_RENDERING:
|
||||
case Mode::INTERACTIVE:
|
||||
case Mode::SUSTAINED_PERFORMANCE:
|
||||
case Mode::FIXED_PERFORMANCE:
|
||||
@@ -121,4 +124,4 @@ ndk::ScopedAStatus Power::isBoostSupported(Boost type, bool* _aidl_return) {
|
||||
} // namespace power
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
} // namespace aidl
|
||||
} // namespace aidl
|
||||
|
||||
@@ -375,30 +375,20 @@
|
||||
<!-- camera open tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
<!-- MPCTLV3_SCHED_BOOST, 0x1 -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_BIG_CORE_0, ~1.804 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, ~1.804 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, ~1.651 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, ~1.651 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_PLUS_CORE_0, ~2.169 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_PLUS_CORE_0, ~2.169 Ghz-->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, Max value -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, Max value -->
|
||||
<Config
|
||||
Id="0x00001337" Enable="true" Timeout="0" Target="neo_la"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X70C, 0x40800000, 0X70C,
|
||||
0x40804100, 0X673, 0x40800100, 0X673, 0x40800200, 0X879, 0x40804200, 0X879"/>
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF"/>
|
||||
|
||||
<!-- camera close tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
<!-- MPCTLV3_SCHED_BOOST, 0x1 -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_BIG_CORE_0, ~1.804 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, ~1.804 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, ~1.651 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, ~1.651 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_PLUS_CORE_0, ~2.169 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_PLUS_CORE_0, ~2.169 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, Max value -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, Max value -->
|
||||
<Config
|
||||
Id="0x00001338" Enable="true" Timeout="0" Target="neo_la"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X70C, 0x40800000, 0X70C,
|
||||
0x40804100, 0X673, 0x40800100, 0X673, 0x40800200, 0X879, 0x40804200, 0X879"/>
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFFF, 0x40800000, 0XFFFF"/>
|
||||
|
||||
<!-- camera snapshot tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
<!--L CPU Hispeed freq of 940Mhz -->
|
||||
<!--L CPU - Set hispeed load 95 -->
|
||||
<!--CPU-DDR BWMON - Set sample_ms 33 -->
|
||||
<!--CPU MAX freq 1.5Ghz -->
|
||||
<!--Sched downmigrate/group_downmigrate 40, Upmigrate/group_upmigrate 45 -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--AB-SCALE - 50 -->
|
||||
@@ -69,7 +70,7 @@
|
||||
<Config
|
||||
Id="0x00001330" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 940, 0x41440100, 0x5F,
|
||||
0x43034000, 0x21, 0x40CE0000, 0x002D0028, 0x40CF4000, 0x002D0028,
|
||||
0x43034000, 0x21, 0x40804100, 1497, 0x40CE0000, 0x002D0028, 0x40CF4000, 0x002D0028,
|
||||
0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/>
|
||||
|
||||
<!-- camera 30fps encode -->
|
||||
@@ -78,7 +79,7 @@
|
||||
<!--L CPU Hispeed freq of 940Mhz -->
|
||||
<!--L CPU - Set hispeed load 95 -->
|
||||
<!--CPU-DDR BWMON - Set sample_ms 33 -->
|
||||
<!--L CPU Min Freq 940, Max Freq 1804 -->
|
||||
<!--L CPU Min Freq 940Mhz, Max Freq 1.5Ghz -->
|
||||
<!--Sched downmigrate/group_downmigrate 40, Upmigrate/group_upmigrate 45 -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--AB_SCALE - 50 -->
|
||||
@@ -86,58 +87,65 @@
|
||||
<Config
|
||||
Id="0x00001331" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 940, 0x41440100, 0x5F,
|
||||
0x43034000, 0x21, 0x40800100, 940, 0x40804100, 1804, 0x40CE0000, 0x002D0028,
|
||||
0x43034000, 0x21, 0x40800100, 940, 0x40804100, 1497, 0x40CE0000, 0x002D0028,
|
||||
0x40CF4000, 0x002D0028, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/>
|
||||
|
||||
<!-- camera 60 FPS -->
|
||||
<!--L CPU SCHED LOAD BOOST -->
|
||||
<!--B CPU SCHED LOAD BOOST -->
|
||||
<!--CPU-DDR BWMON - Set sample_ms 33 -->
|
||||
<!--CPU MAX freq 1.5Ghz -->
|
||||
<!--Sched downmigrate/group_downmigrate 30, Upmigrate/group_upmigrate 35 -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--AB_SCALE - 50 -->
|
||||
<!--CPU-DDR BWMON - io percent 100 -->
|
||||
<Config
|
||||
Id="0x00001332" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40CE0000, 0x0023001E,
|
||||
0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/>
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40804100, 1497,
|
||||
0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43048000, 0x32,
|
||||
0x43020000, 100"/>
|
||||
|
||||
<!-- camera HFR -->
|
||||
<!--L CPU CORE 0 SCHED LOAD BOOST -->
|
||||
<!--B CPU SCHED LOAD BOOST -->
|
||||
<!--CPU-DDR BWMON - Set sample ms 33 -->
|
||||
<!--CPU CORE 0 Min freq to 1.113Ghz -->
|
||||
<!--CPU MAX freq 1.5Ghz -->
|
||||
<!--Sched downmigrate/group_downmigrate 30, Upmigrate/group_upmigrate 35 -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--CPU-DDR BWMON - io percent 100 -->
|
||||
<Config
|
||||
Id="0x00001333" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459,
|
||||
0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4, 0x43020000, 100"/>
|
||||
0x40804100, 1497, 0x40CE0000, 0x0023001E, 0x40CF4000, 0x0023001E, 0x41000000, 0x4,
|
||||
0x43020000, 100"/>
|
||||
|
||||
<!-- HFR 480fps -->
|
||||
<!--L CPU CORE 0 SCHED LOAD BOOST -->
|
||||
<!--B CPU SCHED LOAD BOOST -->
|
||||
<!--CPU-DDR BWMON - Set sample ms 33 -->
|
||||
<!--CPU CORE 0 Min freq to 1.113Ghz -->
|
||||
<!--CPU MAX freq 1.5Ghz -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--CPU-DDR BWMON - io percent 100 -->
|
||||
<Config
|
||||
Id="0x00001334" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x43034000, 0x21, 0x40800100, 0x459,
|
||||
0x41000000, 0x4"/>
|
||||
0x40804100, 1497, 0x41000000, 0x4, 0x43020000, 100"/>
|
||||
|
||||
<!-- multi camera 30fps-->
|
||||
<!--L CPU CORE 0 SCHED LOAD BOOST -->
|
||||
<!--B CPU SCHED LOAD BOOST -->
|
||||
<!--L CPU Hispeed freq of 940Mhz -->
|
||||
<!--CPU-DDR BWMON - Set sample_ms 20 -->
|
||||
<!--L CPU Min Freq 940, Max Freq 1804 -->
|
||||
<!--L CPU Min Freq 940, Max Freq 1.5Ghz -->
|
||||
<!--B CPU core ctl min cpus 4 -->
|
||||
<!--AB_SCALE - 50 -->
|
||||
<!--CPU-DDR BWMON - io percent 100 -->
|
||||
<Config
|
||||
Id="0x00001336" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40C68100, -10, 0x40C68000, -10, 0x4143C100, 940, 0x43034000, 0x21,
|
||||
0x40800100, 1113, 0x40804100, 1804, 0x41000000, 0x4, 0x43048000, 0x32"/>
|
||||
0x40800100, 1113, 0x40804100, 1497, 0x41000000, 0x4, 0x43048000, 0x32, 0x43020000, 100"/>
|
||||
|
||||
<!-- same settings for all the qvr power levels intentionally -->
|
||||
<!-- qvr level cpu1 gpu1 -->
|
||||
@@ -308,26 +316,26 @@
|
||||
<!-- 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_MAX_FREQ_CLUSTER_BIG_CORE_0, ~2.1 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, ~2.1 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0, ~1.8 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, ~1.8 Ghz -->
|
||||
<Config
|
||||
Id="0x00001337" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
|
||||
0x40804100, 0XFFF, 0x40800100, 0XFFF"/>
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X834, 0x40800000, 0X834,
|
||||
0x40804100, 0X708, 0x40800100, 0X708"/>
|
||||
|
||||
<!-- 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_MAX_FREQ_CLUSTER_BIG_CORE_0, ~2.1 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_BIG_CORE_0, ~2.1 Ghz -->
|
||||
<!-- MPCTLV3_MAX_FREQ_CLUSTER_LITTLE_CORE_0,~1.8 Ghz -->
|
||||
<!-- MPCTLV3_MIN_FREQ_CLUSTER_LITTLE_CORE_0, ~1.8 Ghz -->
|
||||
<Config
|
||||
Id="0x00001338" Enable="true" Timeout="0" Target="parrot"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
|
||||
0x40804100, 0XFFF, 0x40800100, 0XFFF"/>
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X834, 0x40800000, 0X834,
|
||||
0x40804100, 0X708, 0x40800100, 0X708"/>
|
||||
|
||||
<!-- camera snapshot tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
|
||||
@@ -40,6 +40,10 @@
|
||||
Id="0x00001203" Enable="true" Target="cape"
|
||||
Resources="" />
|
||||
|
||||
<Config
|
||||
Id="0x00001203" Enable="true" Target="ukee"
|
||||
Resources="" />
|
||||
|
||||
<!--sustained performance-->
|
||||
<Config
|
||||
Id="0x00001206" Enable="true" Target="taro"
|
||||
@@ -49,6 +53,10 @@
|
||||
Id="0x00001206" Enable="true" Target="cape"
|
||||
Resources=""/>
|
||||
|
||||
<Config
|
||||
Id="0x00001206" Enable="true" Target="ukee"
|
||||
Resources=""/>
|
||||
|
||||
<!--vr mode-->
|
||||
<Config
|
||||
Id="0x00001207" Enable="true" Target="taro"
|
||||
@@ -58,6 +66,10 @@
|
||||
Id="0x00001207" Enable="true" Target="cape"
|
||||
Resources=""/>
|
||||
|
||||
<Config
|
||||
Id="0x00001207" Enable="true" Target="ukee"
|
||||
Resources=""/>
|
||||
|
||||
<!--vr mode sustained performance-->
|
||||
<Config
|
||||
Id="0x00001301" Enable="true" Target="taro"
|
||||
@@ -67,6 +79,10 @@
|
||||
Id="0x00001301" Enable="true" Target="cape"
|
||||
Resources=""/>
|
||||
|
||||
<Config
|
||||
Id="0x00001301" Enable="true" Target="ukee"
|
||||
Resources=""/>
|
||||
|
||||
<!-- qvr level cpu1 gpu1 -->
|
||||
<!-- B CPU - Cluster min freq ~.902 Ghz -->
|
||||
<!-- B CPU - Cluster max freq ~.2.092 Ghz -->
|
||||
@@ -91,6 +107,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130A" Enable="true" Target="ukee" 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 -->
|
||||
@@ -115,6 +137,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130B" Enable="true" Target="ukee" 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 -->
|
||||
@@ -139,6 +167,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130C" Enable="true" Target="cape" 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 -->
|
||||
@@ -163,6 +197,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130D" Enable="true" Target="ukee" 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 -->
|
||||
@@ -187,6 +227,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130E" Enable="true" Target="ukee" 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 -->
|
||||
@@ -211,6 +257,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x0000130F" Enable="true" Target="ukee" 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 -->
|
||||
@@ -235,6 +287,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x00001310" Enable="true" Target="ukee" 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 -->
|
||||
@@ -259,6 +317,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x00001311" Enable="true" Target="ukee" 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 -->
|
||||
@@ -283,6 +347,12 @@
|
||||
0x40800200, 0x399, 0x40804200, 0x840, 0x42804000, 0x9, 0x42808000, 0x5, 0x41000000, 0x3,
|
||||
0x41000200, 0x1"/>
|
||||
|
||||
<Config
|
||||
Id="0x00001312" Enable="true" Target="ukee" 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 -->
|
||||
@@ -307,6 +377,12 @@
|
||||
Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21,
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x2B3, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--L CPU - max freq 691200 -->
|
||||
<Config
|
||||
Id="0x00001330" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21,
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x41444100, 0, 0x41440100, 0x63, 0x40804100, 0x2B3, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--camera 30fps-->
|
||||
<!--CPU-LLC BWMON - Set sample_ms 33 -->
|
||||
<!--CPU-LLC BWMON - Set io_percent 100 -->
|
||||
@@ -337,6 +413,13 @@
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x858B8 ,0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--L CPU max freq 1056000 -->
|
||||
<Config
|
||||
Id="0x00001331" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21,
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x858B8 ,0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--camera 60fps-->
|
||||
<!--CPU-LLC BWMON - Set sample_ms 16 -->
|
||||
<!--CPU-LLC BWMON - Set io_percent 100 -->
|
||||
@@ -367,6 +450,13 @@
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x17BA38, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--L CPU max freq 1056000 -->
|
||||
<Config
|
||||
Id="0x00001332" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x4183C000, 0x10, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x10,
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x4303C000, 0x17BA38, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0032000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--camera 8k30-->
|
||||
<!--CPU-LLC BWMON - Set sample_ms 33 -->
|
||||
<!--CPU-LLC BWMON - Set io_percent 100 -->
|
||||
@@ -396,6 +486,13 @@
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0028000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--L CPU max freq 1056000 -->
|
||||
<Config
|
||||
Id="0x00001335" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x4183C000, 0x21, 0x41834000, 0x64, 0x41838000, 0, 0x43034000, 0x21,
|
||||
0x43020000, 0x64, 0x43024000, 0, 0x40804100, 0x420, 0x41444100, 0, 0x41444000, 0, 0x41440000, 0x63,
|
||||
0x40CE0000, 0x0028000A, 0x40CE0200, 0x00550055, 0x41008000, 0, 0x41008100, 0, 0x41008200, 0"/>
|
||||
|
||||
<!--video encode HFR 480 fps-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
<!-- MPCTLV3_SCHED_BOOST, 0x1 -->
|
||||
@@ -415,6 +512,11 @@
|
||||
Resources="0x40400000, 0x1, 0x40800100, 0x40C, 0x40800000, 0x4CC, 0x40C20000, 0x14,
|
||||
0x40C1C000, 0x1E, 0x41820000, 0x0A, 0x41808000, 0x50, 0x4180C000, 0"/>
|
||||
|
||||
<Config
|
||||
Id="0x00001334" Enable="true" Timeout="0" Target="ukee"
|
||||
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 -->
|
||||
@@ -432,6 +534,10 @@
|
||||
Id="0x00001337" Enable="true" Timeout="0" Target="cape"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
|
||||
0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/>
|
||||
<Config
|
||||
Id="0x00001337" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X70C, 0x40800000, 0X70C,
|
||||
0x40804100, 0X686, 0x40800100, 0X686, 0x40800200, 0X853, 0x40804200, 0X853"/>
|
||||
|
||||
<!-- camera close tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
@@ -450,6 +556,10 @@
|
||||
Id="0x00001338" Enable="true" Timeout="0" Target="cape"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0XFFF, 0x40800000, 0XFFF,
|
||||
0x40804100, 0XFFF, 0x40800100, 0XFFF, 0x40800200, 0XFFF, 0x40804200, 0XFFF"/>
|
||||
<Config
|
||||
Id="0x00001337" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x40400000, 0x1, 0x40C00000, 0x1, 0x40804000, 0X70C, 0x40800000, 0X70C,
|
||||
0x40804100, 0X686, 0x40800100, 0X686, 0x40800200, 0X853, 0x40804200, 0X853"/>
|
||||
|
||||
<!-- camera snapshot tunings-->
|
||||
<!-- MPCTLV3_ALL_CPUS_PWR_CLPS_DIS, 0x1 -->
|
||||
@@ -467,6 +577,11 @@
|
||||
Resources="0x40400000, 0x1, 0x40800100, 0x46C, 0x40800000, 0x52C, 0x40C20000, 0X14,
|
||||
0x40C1C000, 0X1E"/>
|
||||
|
||||
<Config
|
||||
Id="0x00001339" Enable="true" Timeout="0" Target="ukee"
|
||||
Resources="0x40400000, 0x1, 0x40800100, 0x420, 0x40800000, 0x459, 0x40C20000, 0X14,
|
||||
0x40C1C000, 0X1E"/>
|
||||
|
||||
<!-- decode 240 fps tunings-->
|
||||
<!--L CPU - max freq 700000 -->
|
||||
<Config
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "power-common.h"
|
||||
|
||||
static struct hint_handles handles[NUM_HINTS];
|
||||
static int handleER = 0;
|
||||
|
||||
void power_init()
|
||||
{
|
||||
@@ -115,6 +116,15 @@ void power_hint(power_hint_t hint, void *data)
|
||||
}
|
||||
}
|
||||
|
||||
void set_expensive_rendering(bool enabled)
|
||||
{
|
||||
if (enabled) {
|
||||
handleER = perf_hint_enable(PERF_HINT_EXPENSIVE_RENDERING, 0);
|
||||
} else if (handleER > 0) {
|
||||
release_request(handleER);
|
||||
}
|
||||
}
|
||||
|
||||
int __attribute__ ((weak)) set_interactive_override(int on)
|
||||
{
|
||||
return HINT_NONE;
|
||||
|
||||
@@ -49,6 +49,8 @@ extern "C" {
|
||||
#define HINT_HANDLED (0)
|
||||
#define HINT_NONE (-1)
|
||||
|
||||
#define PERF_HINT_EXPENSIVE_RENDERING 0x000010A5
|
||||
|
||||
#include <hardware/power.h>
|
||||
|
||||
enum CPU_GOV_CHECK {
|
||||
@@ -60,6 +62,7 @@ enum CPU_GOV_CHECK {
|
||||
|
||||
void power_init(void);
|
||||
void power_hint(power_hint_t hint, void *data);
|
||||
void set_expensive_rendering(bool enabled);
|
||||
void set_interactive(int on);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user