[r5] arter97 kernel for OnePlus 5

arter97

Recognized Developer
Oct 14, 2012
3,753
33,661
263
23
Seoul

arter97 kernel for OnePlus 5/5T​

/* Details */

Hybrid CAF msm-4.4 kernel
This kernel contains more cutting-edge changes from Qualcomm than the regular msm8998 tag
Latest Linux 4.4 subversion merged
Use CONFIG_HZ = 300
- This changes context switching interval from 10ms to 3.33ms
- Pixel used this for years and Google recommends other vendors to do the same for fewer jitters
Memory management improved(from Pixel 2 & 3)
Pixel's lowmemorykiller used
Scheduler commits cherry-picked from Pixel 3
Timer optimizations
Additional power savings applied to the display panel
Heavily optimized touch panel source code resulting in reduced touch latency
RTL8152/8153 USB LAN adapter support
Other various optimizations from Paranoid Android
Permissive SELinux
Passes SafetyNet
Built with -O3 speed optimizations
Built with latest GCC
Westwood as default TCP network congestion control
UFS optimizations
Entropy hook on storage removed
Latest mainline f2fs support with GC fixes
CFQ I/O scheduler backported from mainline
Systemless installation (the kernel doesn't touch /system or /vendor)
Modules support disabled for lighter kernel
WireGuard support
Removed RTB(interrupt) logging entirely
Various changes merged from the Razer Phone 2 and Snapdragon 855
AnyKernel installation

/* Notice */

Both OnePlus 5 and 5T is supported.
Only OxygenOS is tested at the moment, but it is likely that the kernel will work with other ROMs thanks to the use of AnyKernel2 by osm0sis, though you may encounter minor issues.
Feel free to tip me which commits are needed to fix other ROMs.

/* f2fs */

This kernel fully supports f2fs for /data and I encourage everyone to use f2fs with my kernel for better performance.
See here as to why you might want f2fs.

To use f2fs, download zip files from http://arter97.com/browse/f2fs

Flash f2fs_tools_for_twrp.zip from TWRP. This won’t format your /data partition.
This will replace TWRP's f2fs tools with the latest version and pass the correct parameter to mkfs.f2fs, which is necessary.
This needs to be done everytime you enter TWRP, if you want to re-format to f2fs.

After formatting, or flashing a new ROM or an OTA, /vendor’s fstab needs to be changed.
Flash f2fs_fstab.zip to convert fstab to f2fs again. This won’t format your /data partition.

/* Disclaimer */

Your warranty is now void.
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 kernel
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.

/* Thanks to */

TheCrazyLex
xboxfanj
Tim Murray
RenderZenith
nathanchance - for android-linux-stable

/* Downloads and links */

arter97.com
Kernel source

XDA:DevDB Information
arter97 kernel for OnePlus 5, Kernel for the OnePlus 5

Contributors
arter97
Kernel Special Features:

Version Information
Status: Testing

Created 2019-04-09
Last Updated 2019-08-10
 

arter97

Recognized Developer
Oct 14, 2012
3,753
33,661
263
23
Seoul
/* Changelog */

r5
Rewritten IOMMU by Sultan reverted to resolve random reboots
Linux v4.4.188 merged
LA.UM.7.4.r1-05400-8x98.0 merged
LA.UM.7.2.r1-07400-sdm660.0 merged
General scheduler improvements
Inability to display battery status on charging during shutdown fixed
Wi-Fi drivers updated to 5.1.1.73Q
Bunch of memory allocations from various subsystems were reworked to perform much better (thanks to Sultan)
Backported speculative page fault to improve system performance
Latest f2fs-stable merged

r4
Linux v4.4.180 merged
LA.UM.7.2.r2-00800-8x98.0 merged
LA.UM.7.5.2.r1-02900-8x96.0 merged
Latest f2fs-stable merged
Removed f2fs debug tracing codes added by Qualcomm
Re-enabled kernel tracers for avoiding janks
32-bit vDSO added for improving performance on arm32 programs
iommu fixes from Sultan

r3b1
Linux v4.4.179 merged
Wi-Fi drivers updated to 5.1.1.71H
Latest f2fs-stable merged
LA.UM.7.4.r1-05100-8x98.0 merged
LA.UM.7.5.2.r1-02600-8x96.0 merged
Merged OnePlus changes
Backported a Qualcomm patch from the 4.9 kernel for lower power consumption
Applied various optimizations to the touch panel drivers
RCU boost enabled for better responsiveness
New patches made to f2fs for more efficient GC and trim

r2
Fixed an issue causing audio to stop working
Wi-Fi drivers updated to 5.1.1.71C
Disabled some debugging options to improve performance
Added kcal
Added vibration control
Added wcd9335 sound control
Improved encryption performance

r1
Initial reboot of the kernel with Pie support
 
Last edited:

uCristian

Member
Jul 26, 2013
37
18
0
27
Ow, stupid me.
I made a typo and wrote down "cheeseburget" instead of "cheeseburger".

It's been reuploaded.
Please try again :)

Ok flashing went fine and everything works good for now.
I was using stock kernel before , it was smoth and didn't have problems at all but wanted to try yours. I can fell the diference in smothness , l love it .
I'll report back if there will appear problems. Thank you:fingers-crossed::fingers-crossed::good:
 
Last edited:

jerrygo2

Senior Member
Jul 15, 2010
63
5
0
Seoul
It's good to see your kernel release in xda.
I found magisk hide doesn't work to KT membership(KT membership) and KT customer application(my KT) on magisk 19.0 with your kernel.
I guess you'd know those application I mentioned. ;)
I hope this symptom get better.
The adaptive color tone looks better to me after installing your kernel.
Thank you for your work again as always.
 

sleepwalking0593

Senior Member
Jul 25, 2017
1,031
283
83
Noida
It's good to see your kernel release in xda.
I found magisk hide doesn't work to KT membership(KT membership) and KT customer application(my KT) on magisk 19.0 with your kernel.
I guess you'd know those application I mentioned. ;)
I hope this symptom get better.
The adaptive color tone looks better to me after installing your kernel.
Thank you for your work again as always.
Check maybe your cts might be failing. Magisk hide working fine here for me. I don't know what those apps are but in general it's working fine. I don't think kernel have any commits to change colours of various display modes.
 

sleepwalking0593

Senior Member
Jul 25, 2017
1,031
283
83
Noida
Can someone check one thing. Keep your WiFi on and leave the connectivity area of WiFi and after sometime come back to connectivity area. Does WiFi connect automatically or do you want to turn on the display for it to connect.