Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

conflicts #1

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ddb821e
mithorium-common: Update partial QCRIL blobs to LA.UM.9.6.3.r1-06200-…
me-cafebabe Jun 18, 2022
2d3e013
mithorium-common: configs: Update powerhints from LA.UM.9.6.3
me-cafebabe Jun 19, 2022
deb4c04
mithorium-common: Set partitions for loop device.
Aug 16, 2018
12d0e64
mithorium-common: Commonize serial console kernel parameters
me-cafebabe Jun 19, 2022
0f7334b
mithorium-common: Add debug IMS props to workaround CarrierConfig res…
luk1337 Feb 2, 2019
0842a13
mithorium-common: msm_irqbalance: Do not balance mdss and kgsl-3d0 IRQs
xboxfanj Jul 6, 2020
d655d7a
mithorium-common: Enable Userspace Reboot
me-cafebabe Jul 16, 2022
43f7557
fixup! mithorium-common: msm_irqbalance: Do not balance mdss and kgsl…
me-cafebabe Jul 17, 2022
c29155d
mithorium-common: media: copy google's base le xml files to target fi…
nadinsylaa Dec 15, 2017
b3d9fca
mithorium-common: media : copy c2 google codecs to vendor/etc
nadinsylaa Oct 1, 2020
72b5cfb
mithorium-common: media/msm8937: Add c2 codecs as Xiaomi did on SDM439
me-cafebabe Jul 19, 2022
8a416e1
mithorium-common: prop: Disable audio fluence
me-cafebabe Jul 20, 2022
ec01502
Revert "mithorium-common: prop: Disable audio fluence"
me-cafebabe Jul 21, 2022
9a9d089
mithorium-common: Squashed Revert of EXTRAs commits
me-cafebabe Jul 22, 2022
6a04caf
EXTRA: mithorium-common: Define flags for my own vendor/extra
me-cafebabe Jul 22, 2022
25ecbc8
mithorium-common: media: msm8953: Switch to sw enc/dec for vp9 codec
ItsVixano Jul 4, 2022
be612c8
mithorium-common: sepolicy: Allow system_app to use FM
me-cafebabe Jul 30, 2022
8b5ec76
mithorium-common: sepolicy: Label camera props prefixed with "camera."
me-cafebabe Jul 31, 2022
ba97a7f
mithorium-common: sepolicy: Label vidc.enc.dcvs.extra-buff-count as c…
me-cafebabe Feb 25, 2022
8fc9d54
mithorium-common: sepolicy: Label more camera props to silence logspam
me-cafebabe Apr 18, 2022
802ab51
fixup! mithorium-common: lights: Support devices that uses red node a…
me-cafebabe Jul 31, 2022
d56573e
mithroium-common: lights: Print variables on logcat
me-cafebabe Jul 31, 2022
7bdd639
fixup 2! mithorium-common: lights: Support devices that uses red node…
me-cafebabe Jul 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions BoardConfigCommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ BUILD_BROKEN_DUP_RULES := true

# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci loop.max_part=7
BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0x78af000
BOARD_KERNEL_CMDLINE += androidboot.usbconfigfs=true
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 2048
Expand Down Expand Up @@ -187,6 +188,3 @@ WPA_SUPPLICANT_VERSION := VER_0_8_X

# Inherit from the proprietary version
include vendor/xiaomi/mithorium-common/BoardConfigVendor.mk

# Inherit private extras
-include vendor/extras/board.mk
2 changes: 1 addition & 1 deletion configs/msm_irqbalance.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PRIO=0,0,0,0,1,1,1,1
IGNORED_IRQ=20,39
IGNORED_IRQ=20,33,39,72
125 changes: 0 additions & 125 deletions configs/powerhint.xml

This file was deleted.

99 changes: 99 additions & 0 deletions configs/powerhint/system/powerhint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="utf-8" ?>

<!--
/* 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.
*/
-->

<Powerhint>
<Hint type="0x0E00"> <!--preview-->
<Resource opcode="0x41400000" value="0x4" /> <!-- B CPU - above_hispeed_delay of 40 ms -->
<Resource opcode="0x41410000" value="0x5F" /> <!-- B CPU - go hispeed load 95 -->
<Resource opcode="0x41414000" value="0x22C"/> <!-- B CPU - hispeed freq of 556 MHz -->
<Resource opcode="0x41420000" value="0x5A" /> <!-- B CPU - target load of 90 -->
<Resource opcode="0x41400100" value="0x4" /> <!-- L CPU - above_hispeed_delay of 40 ms -->
<Resource opcode="0x41410100" value="0x5F" /> <!-- L CPU - go hispeed load 95 -->
<Resource opcode="0x41414100" value="0x22C"/> <!-- L CPU - hispeed freq of 556 MHz- -->
<Resource opcode="0x41420100" value="0x5A" /> <!-- L CPU - target load of 90 -->
<Resource opcode="0x41810000" value="0x9C4"/> <!-- CPUBW low power ceil mpbs of 2500 -->
<Resource opcode="0x41814000" value="0x32" /> <!-- CPUBW low power io percent of 50 -->
</Hint>
<Hint type="0x0A00"> <!--video encode 30 fps-->
<Resource opcode="0x41400000" value="0x4" /> <!-- B CPU - above_hispeed_delay of 40 ms -->
<Resource opcode="0x41410000" value="0x5F" /> <!-- B CPU - go hispeed load 95 -->
<Resource opcode="0x41414000" value="0x326"/> <!-- B CPU - hispeed freq of 806 MHz -->
<Resource opcode="0x41420000" value="0x5A" /> <!-- B CPU - target load of 90 -->
<Resource opcode="0x41400100" value="0x4" /> <!-- L CPU - above_hispeed_delay of 40 ms -->
<Resource opcode="0x41410100" value="0x5F" /> <!-- L CPU - go hispeed load 95 -->
<Resource opcode="0x41414100" value="0x22C"/> <!-- L CPU - hispeed freq of 556 MHz- -->
<Resource opcode="0x41420100" value="0x5A" /> <!-- L CPU - target load of 90 -->
<Resource opcode="0x41810000" value="0x9C4"/> <!-- CPUBW low power ceil mpbs of 2500 -->
<Resource opcode="0x41814000" value="0x32" /> <!-- CPUBW low power io percent of 50 -->
<Resource opcode="0x4180C000" value="0x0" /> <!-- CPUBW disable hysteresis -->
<Resource opcode="0x41820000" value="0xA" /> <!-- CPUBW sample_ms of 10ms -->
<Resource opcode="0x41438100" value="0x0" /> <!-- L CPU - disable ignore_hispeed_notif -->
<Resource opcode="0x41438000" value="0x0" /> <!-- B CPU - disable ignore_hispeed_notif -->
</Hint>
<Hint type="0x0B00"> <!--video decode-->
<Resource opcode="0x41400100" value="0x4" /> <!-- L CPU - Above Hispeed Delay of 40ms -->
<Resource opcode="0x41410100" value="0x5F" /> <!-- L CPU - Go Hispeed Delay of 95 -->
<Resource opcode="0x41414100" value="0x2D9"/> <!-- L CPU - Hispeed Freq of 768 MHz -->
<Resource opcode="0x41420100" value="0x5A" /> <!-- L CPU - Target Loads of 90 -->
<Resource opcode="0x41400000" value="0x4" /> <!-- B CPU - Above Hispeed Delay of 40ms -->
<Resource opcode="0x41410000" value="0x5F" /> <!-- B CPU - Go Hispeed Load of 95 -->
<Resource opcode="0x41414000" value="0x2D9"/> <!-- B CPU - Hispeed Freq of 729 MHz -->
<Resource opcode="0x41420000" value="0x5A" /> <!-- B CPU - Target Load of 90 -->
</Hint>
<Hint type="0x0F00"> <!--sustained performance-->
<Resource opcode="0x40800000" value="0x0"/> <!-- B CPU - Cluster min freq uncapped -->
<Resource opcode="0x40800100" value="0x0"/> <!-- L CPU - Cluster min freq uncapped -->
<Resource opcode="0x40804000" value="0x4E0"/> <!-- B CPU - Cluster max freq ~1.2 GHz -->
<Resource opcode="0x40804100" value="0x4E0"/> <!-- L CPU - Cluster max freq ~1.2 Ghz -->
<Resource opcode="0x4280C000" value="0xB4"/> <!-- GPU - min freq 180 Mhz -->
<Resource opcode="0x42810000" value="0x156"/> <!-- GPU - max freq 342 Mhz -->
<Resource opcode="0x42814000" value="0x0"/> <!-- GPUBW freq uncapped -->
</Hint>
<Hint type="0x1000"> <!--vr mode-->
<Resource opcode="0x40800000" value="0x579"/> <!-- B CPU - Cluster min freq ~1.4 Ghz -->
<Resource opcode="0x40800100" value="0x579"/> <!-- L CPU - Cluster min freq ~1.4 Ghz -->
<Resource opcode="0x40804000" value="0x579"/> <!-- B CPU - Cluster max freq ~1.4 Ghz -->
<Resource opcode="0x40804100" value="0x579"/> <!-- L CPU - Cluster max freq ~1.4 Ghz -->
<Resource opcode="0x4280C000" value="0x203"/> <!-- GPU - min freq 510 Mhz -->
<Resource opcode="0x42810000" value="0x203"/> <!-- GPU - max freq 510 Mhz -->
<Resource opcode="0x42814000" value="0x1E4F"/> <!-- GPUBW freq 775 Mhz-->
</Hint>
<Hint type="0x1001"> <!--vr mode sustained performance-->
<Resource opcode="0x40800000" value="0x4E0"/> <!-- B CPU - Cluster min freq ~1.2 Ghz -->
<Resource opcode="0x40800100" value="0x4E0"/> <!-- L CPU - Cluster min freq ~1.2 Ghz -->
<Resource opcode="0x40804000" value="0x4E0"/> <!-- B CPU - Cluster max freq ~1.2 Ghz -->
<Resource opcode="0x40804100" value="0x4E0"/> <!-- L CPU - Cluster max freq ~1.2 Ghz -->
<Resource opcode="0x4280C000" value="0x156"/> <!-- GPU - min freq 342 Mhz -->
<Resource opcode="0x42810000" value="0x156"/> <!-- GPU - max freq 342 Mhz -->
<Resource opcode="0x42814000" value="0x1E4F"/> <!-- GPUBW freq 775 Mhz -->
</Hint>
</Powerhint>
90 changes: 90 additions & 0 deletions configs/powerhint/vendor/powerhint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8" ?>

<!--
/* Copyright (c) 2016-2018,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>

<!-- LA.UM.9.6.3.r1-06200-89xx.0 config/msm8937/powerhint.xml -->
<!-- camera 30fps and camera preview -->
<!--sample_ms = 10mS -->
<!--SLB for Core0 = -6 -->
<!--SLB for Core1 = -6 -->
<!--SLB for Core2 = -6 -->
<!--SLB for Core3 = -6 -->
<!--hispeed load = 95 -->
<!--hispeed freq = 998Mhz -->

<Config
Id="0x00001331" Enable="true" Timeout="0" Target="sdm439"
Resources="0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, 0xfffffffa, 0x40c68120, 0xfffffffa,
0x40c68130, 0xfffffffa, 0x41440100, 0x5f, 0x4143c100, 0x3e6"/>

<Config
Id="0x00001331" Enable="true" Timeout="0" Target="sdm429"
Resources="0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, 0xfffffffa, 0x40c68120, 0xfffffffa,
0x40c68130, 0xfffffffa, 0x41440100, 0x5f, 0x4143c100, 0x3e6"/>

<Config
Id="0x00001331" Enable="true" Timeout="0" Target="qm215"
Resources="0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, 0xfffffffa, 0x40c68120, 0xfffffffa,
0x40c68130, 0xfffffffa, 0x41440100, 0x5f, 0x4143c100, 0x3e6"/>

<!-- LA.UM.9.6.3.r1-06200-89xx.0 config/msm8953/powerhint.xml -->
<!-- camera 30fps and camera preview -->
<!--sample_ms = 10mS -->
<!--SLB for Core0 = -6 -->
<!--SLB for Core1 = -6 -->
<!--SLB for Core2 = -6 -->
<!--SLB for Core3 = -6 -->
<!--hispeed load = 95 -->
<!--hispeed freq = 1036 -->
<Config
Id="0x00001331" Enable="true" Timeout="0" Target="msm8953"
Resources="0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, 0xfffffffa, 0x40c68120, 0xfffffffa,
0x40c68130, 0xfffffffa, 0x41440100, 0x5f, 0x4143c100, 0x40c"/>

<!-- LA.UM.9.6.3.r1-01200-89xx.0 config/msm8937/powerhint.xml -->
<!-- camera 30fps and camera preview -->
<!--sample_ms = 10mS -->
<!--SLB for Core0 = -6 -->
<!--SLB for Core1 = -6 -->
<!--SLB for Core2 = -6 -->
<!--SLB for Core3 = -6 -->
<!--hispeed load = 95 -->
<!--hispeed freq = 998Mhz -->
<Config
Id="0x00001331" Enable="true" Timeout="0" Target="msm8937"
Resources="0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, 0xfffffffa, 0x40c68120, 0xfffffffa,
0x40c68130, 0xfffffffa, 0x41440100, 0x5f, 0x4143c100, 0x3e6"/>

</Powerhint>

</HintConfigs>
Loading