[KERNEL][29 Aug] doge kernel r33 [8/9/10][4G LTE]

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India

Code:
/* Disclaimer 
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, 
* or you getting fired because the alarm app failed. Please do some research 
* if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you blame me in any way for what happens to your device, I will laugh at you.
* BOOM! goes the dynamite
*/
Credits:
@nathanchance - The Lord of Android Kernels
@osm0sis - AnyKernel3
@modpunk - sdFAT FS support

Download: AndroidFileHost

Supported ROM's:
Tested/Works with LineageOS & AOSP based ROMS built with xDoge trees. [Does not work with MIUI based ROM]

Major Features:
• Based on android-linux-stable/msm-3.18 tree's "kernel.lnx.3.18.r34-rel" branch merged with LA.UM.8.6.r1-xxxx CAF tags
• Cleaned up kernel codes from stock oreo kernel source and included only necessary codes/configs
• Compiled with AOSP GCC 4.9 Toolchain
• Non-debug kernel build
• Removed profilers & as many debug flags as possible, which should not be in release builds IMO
• CFQ is the default i/o scheduler
• Supports fast charging upto 10W [as in stock rom/kernel]
• Supports deep sleep
• F2FS filesystem support
• NTFS filesystem support
• sdFAT filesystem support
• Westwood TCP algorithm support
• Tuned for battery backup

How-To:
• Go to TWRP
• Flash the kernel zip file
• Wipe Dalvik Cache
• Reboot

Gcam:
Necessary config changes for gcam's:
1) Video recording resolution should be set to 1080/720p
2) HDR mode should be turned off for selfie cam



XDA:DevDB Information
Kernel for the Xiaomi Redmi 5

Contributors
xDoge
Source Code: Kernel

Version Information
Kernel Version: 3.18.140
Architecture: ARM64 [64-bit]
Status: Stable

Created: 2019-01-05
Last Updated: 2020-08-29
 
Last edited:

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India
Current ChangeLogs
r34
Code:
[COLOR="DimGray"]• Fixed idle battery drain. [Thanks to @Vishalcj17]
• Revert - Possible fix for "touch screen not responding for few seconds"[/COLOR]
r33
Code:
[COLOR="DimGray"]• Possible fix for "touch screen not responding for few seconds"[/COLOR]
r32
Code:
[COLOR="DimGray"]• Enabled process reclaim support again
• Enabled support to rebalance registers during context switches
• Disabled RCU priority boosting
• Disabled support to offload RCU callback processing from boot-selected CPUs
• Disabled page table mapping
• Disabled fast ARMv7/v8 long descriptor format support[/COLOR]
r31
Code:
[COLOR="DimGray"]• Built again from scratch with [URL="https://github.com/android-linux-stable/msm-3.18/tree/kernel.lnx.3.18.r34-rel"]android-linux-stable/msm-3.18[/URL] tree's [I]"kernel.lnx.3.18.r34-rel"[/I] branch as base and merged with LA.UM.8.6.r1-xxxx CAF tags
• Upstreamed to LA.UM.8.6.r1-04200-89xx.0
• lz4 as default zram compressor
• Enabled cpusets
• Enabled cpuboost
• Enabled wq power efficient to improve battery backup
• Enabled page table mapping as its faster than the default copy based object mapping in ARM devices
• Enabled fast ARMv7/v8 long descriptor format support
• Disabled IRQ time accounting and instead use the default tick cpu accounting
• Disabled process reclaim support as its causing background apps to get killed even though free memory is available[/COLOR]
Old ChangeLogs

20200227
Code:
[COLOR="DimGray"]• Added F2FS filesystem support[/COLOR]
20200126
Code:
[COLOR="DimGray"]• Removed memory resource controller for cgroups & swap[/COLOR]
20200118
Code:
[COLOR="DimGray"]• Fixed camera & torch crashes on P/Q ROMs built with other device trees
• Enabled cpusets
• Enabled memory resource controller for cgroups & swap[/COLOR]
20191228
Code:
[COLOR="DimGray"]• Fixed gcam focus issue[/COLOR]
20191215
Code:
[COLOR="DimGray"]• Rebuilt again from scratch using CAF LA.UM.8.6.r1-02600-89xx.0 and Oreo patch released by Xiaomi
• Memory management changes
• Fixed force reload of background apps after few mins
• Fixed mic issue in apps like telegram, messenger, instagram etc.[/COLOR]
20190715
Code:
[COLOR="DimGray"]• Upstreamed to CAF tag LA.UM.7.6.r1-05500-89xx.0
• Disabled cpusets
• Disabled cpuboost
• Reverted the memory management changes from the previous build[/COLOR]
20190621
Code:
[COLOR="DimGray"]• Upstreamed to CAF tag LA.UM.7.6.r1-05300-89xx.0 
• Memory management changes
• Gcam, focus issue fixed
• Gcam, screen turning dark on focusing fixed[/COLOR]
20190517
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.140[/COLOR]
20190513
Code:
[COLOR="DimGray"]• Upstreamed to CAF tag LA.UM.7.6.r1-04800-89xx.0
• Front cam flash now works in sync with the time of capturing pictures using Snap cam
• Gcam focus issue fixes
• Gcam portrait mode crash fix
• Removed triple framebuffer support[/COLOR]
20190502
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.139
• Fixed CPU throttling issue
• Changed default i/o scheduler to CFQ[/COLOR]
20190413
Code:
[COLOR="DimGray"]• Upstreamed to CAF tag LA.UM.7.6.r1-04500-89xx.0
• External speaker, low volume issue fixed, yet again
• Disabled vga arb support
• Removed kcal support [causing issue with XenonHD's in-built color calibration feature]
• Enabled triple framebuffer support[/COLOR]
20190410
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.138
• Low audio output in external speaker fixed, yet again [Issue was with the imported oreo audio configs from tiare][/COLOR]
20190331
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.137
• Enabled ext4 encryption support
• Enabled f2fs encryption support
• More config changes, please [URL="https://github.com/LinuxPanda/android_kernel_rosy/commits/p-318/arch/arm64/configs/rosy-doge_defconfig"]check this link[/URL] for all changes
• External speaker driver changes[/COLOR]
20190319
Code:
[COLOR="DimGray"]• Low audio output in external speaker completely fixed
• Enabled fast io pagetable subset support
• Disabled irq time accounting & moved to tick cpu accounting
• Disabled hmp scheduler support since redmi 5 doesn't have heterogenous multi-processor and so don't need big.LITTLE cpu support
• Add BFQ i/o scheduler and made it as default i/o scheduler
• ROW i/o scheduler support removed[/COLOR]
20190312
Code:
[COLOR="DimGray"]• Fixed low audio in external speaker
• Westwood TCP congestion algorithm made as default [Makes network performance smooth/better][/COLOR]
20190309
Code:
[COLOR="DimGray"]• Upstreamed to CAF tag LA.UM.7.6.r1-04300-89xx.0
• Audio driver changes
• Video driver changes [Touch screen feels more responsive/smooth]
• Enabled support for host based touch processing [Unsure if it really changes anything since I have no idea if our touchscreen supports it?]
• Kcal support[/COLOR]
20190302
Code:
[COLOR="DimGray"]• Dropped Oreo support
• Kernel built again from scratch using CAF source LA.UM.7.6.r1-04100-89xx.0 [Kernel version is 3.18.120]
• ZRAM's default algorithm changed to LZ4 (instead of LZO) since LZ4 is comparatively fast
• Decreased vibrator voltage to improve battery life [and also it doesn't feel like an earthquake is happening when the phone vibrates]
• ROW I/O is default scheduler
• sdFAT filesystem support
• Switched back to AOSP GCC 4.9 Toolchain[/COLOR]
20190224
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.136[/COLOR]
20190223
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.135[/COLOR]
20190209
Code:
[COLOR="DimGray"]• Fixed IR
• Upstreamed to 3.18.134[/COLOR]
20190128
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.133[/COLOR]
20190126
Code:
[COLOR="DimGray"]• Enabled Swap & ZRAM
• ZRAM uses LZ4 (instead of LZO) as default compression algorithm since LZ4 is comparatively fast
• Enabled LZ4 crypto support
• Added NTFS filesystem support
• Switched to bootlin gcc 7 toolchain
• Kernel name changed to doge[/COLOR]
20190114
Code:
[COLOR="DimGray"]• Upstreamed to 3.18.132
• Some config changes to improve performance[/COLOR]
20190109
Code:
[COLOR="DimGray"]• Kernel built again from scratch to fix heating issue
• Power driver is 100% based on stock rosy kernel (previous builds were based on tissot) released by Xiaomi[/COLOR]
20190107
Code:
[COLOR="DimGray"]• Enabled cpuset
• Added bfq io scheduler & made it as default[/COLOR]
 

Attachments

Last edited:

lifegap

Senior Member
Oct 3, 2012
225
32
0
I am looking for the fix of audio balance in Pixel Experience (Android Pie). The left channel is much louder than the right when using headphones. Will this kernel fix it? Thanks
 

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India
New release, 20190109.

Changelog:
1) Kernel built again from scratch to fix heating issue.
2) Power driver is 100% based on stock rosy kernel (previous builds were based on tissot) released by Xiaomi.


Does it have USB fast charge?
I don't have fast charger to test, so I don't know.

I have a 5v/2a charger and it charges around 4.1v/1.8a when I tested before few mins. In previous releases, it never crossed 1.5a.
 

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India
Forgot to add wlan drivers in the previous release, so took it down & another release, 20190109_1.

Changelog:
1) Kernel built again from scratch to fix heating issue.
2) Power driver is 100% based on stock rosy kernel (previous builds were based on tissot) released by Xiaomi.
3) Add prima wlan driver.
 

mattkpo077

New member
Jun 6, 2015
3
0
0
I can't charge the battery

hello, I can not charge the battery, not even turning off the equipment like in other ROM pie, with miui stock it works normal the load.

sorry this message is for the post of the rom Citrus-CAF.
P / D: I do not know how to eliminate it.
 
Last edited:

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India
New build is up. Latest build is 20190114.

Removed the beta status as no one has reported any major issues.

Changelog:
1) Upstreamed to 3.18.132.
2) Some config changes to improve performance.
 
Last edited:

LinuxPanda

Senior Member
May 24, 2017
691
531
103
India
20190126
• Enabled Swap & ZRAM
• ZRAM uses LZ4 (instead of LZO) as default compression algorithm since LZ4 is comparatively fast
• Enabled LZ4 crypto support
• Added NTFS filesystem support
• Switched to bootlin gcc 7 toolchain
• Kernel name changed to doge



Please add EAS support, if you can.
I was just thinking to write this and voila u wrote it earlier;)
If you guys are talking about "Energy Aware Scheduling" then I should let you know that I tried some configs with WALT but it caused random shutdowns, so I dropped it.
 
Last edited: