[KERNEL] [Oreo] Kawori Kernel for Oneplus 2 (2018-04-04)

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
Some of you know me from the OOS3/Nougat kernel I built, and now I am moving to Oreo and starting working on it.

It mainly majors in keeping a balance between features and stabilities, so I did not add too many features (And I think features like adding 10+ governors is a bad practice), but the features I added is of great use. Some of the features are unique in existing OP2 kernels.

I am sick of those kernels which say it is the smoother than butter or is more power-saving than Nokia 1100, and I do not think that could happen. What I provide is an average kernel with some little tweaks. If you are looking for some specific features, this is not the place for you.

The features list:

Features:
- Backport patches from Linux stable 3.18/3.16/3.2 branches
- Catch up with latest Linux upstream 3.10.108
- Catch up with latest CAF LA.BF64 branch source
- Catch up with latest sdcardfs, f2fs, exfat, xpad source
- Tweaked interactive governor based on CAF MSM8996/8998 branch, together with fastlane tunsables from Bluspark
- CPU voltage control
- Remove powersave, conservative, userspace governor
- Add maple, sio, fiops, zen I/O scheduler
- Franco sound control
- Thermal parameters control
- KCAL control
- Dynamic Sync control
- Boeffla wakeblock blocker
- Fingerprint boost tweaks
- Sultanxda's I/O sched switcher
- TheCrazyLex's memory automatic compaction mechanism
- Various improvements from AOSPA (thanks to TheCrazyLex)
- Various improvements from Sultanxda and myfluxi (The people I really admire)
- Various improvements from CAF
- ...

Usages:

Note that LineageOS based roms and other roms use different sysfs nodes for gestures. So I provide 2 versions, just use the one that your rom is based on, otherwise gestures may be broken. For non los based Roms, use nonlos version. If gesture does not work, switch to another version and it will work.

Use EX kernel manager to tweak it. You can use kernel adiutor, but you will miss some tunables as it is not updated for a long time.

Download:

I use Github to host the zips. You can view all the zips at https://github.com/aviraxp/kawori_build.

[Release 20180404]
LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180404-los.recovery.zip
Non LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180404-nonlos.recovery.zip

[Release 20180330]
LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180330-los.recovery.zip
Non LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180330-nonlos.recovery.zip

[Release 20180327]
LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180327-los.recovery.zip
Non LOS based roms: https://github.com/aviraxp/kawori_build/raw/master/kawori-kernel-20180327-nonlos.recovery.zip

Source:
https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI

Credits:

Fist of all, thanks to Linux upstream and CAF. Without them, doing this work is impossible.
Of course, thanks to Lord Boeffla for a good picking source.
Then I want to thank to Sultanxda and myfluxi for the 30+ commits I picked and the guidance he provided. You are the real MVP!
I also want to say thanks to dorimanx, Joe Maples and Franco for the good features they provided.

Support:
Feel free to provide feedbacks, though I may not know how to fix it as I actually don't have enough knowledge for C.

2018-04-18: You can use nonlos build as usual, and the los version is compilatable with both stock or Shreesha's build.
 
Last edited:

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
Change log:

20180404:

Add adreno boost
Update fsync control to 2.1
Add security fixes from Lineage and angler
Remove iosched switcher (fixes kernel panic)

The los kernel is only for the newest official build, if you are on older build, don't use this one!

20180330:
Fix issues that big cores refuses to turn on
Attempt to fix charging for all (really weird because someone reports charging is fast but others report the opposite)
Improvements to BCL driver
Align with latest los code drop
 
Last edited:

fonfox

Senior Member
Oct 4, 2014
597
308
93
Kassel
I don't know what you mean actually. Can you give me a reference? The AC charging current limit is 2000mA, and the USB charging current limit is 900mA. I don't think it can be quicker.

But there must a different.
With stock AOSiP Kernel i got 1600mA
and with this Kernel only max 900mA AC charging rate

Edit:
I have been able to observe up to 1400 mA (for short time) also in kawori kernel.
(Most time its lower rate)
But it was generaly higher all time in the stock kernel, according to my observation.
 
Last edited:

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
But there must a different.
With stock AOSiP Kernel i got 1600mA
and with this Kernel only max 900mA AC charging rate

Edit:
I have been able to observe up to 1400 mA (for short time) also in kawori kernel.
(Most time its lower rate)
But it was generaly higher all time in the stock kernel, according to my observation.
I can only say there is no difference in charging driver between aosip and this kernel. So sorry.
 

PAIIITET

Senior Member
Apr 3, 2011
152
37
0
39
Tomsk
This is really helpful and OP will be delighted by this statement without any kind of log.
check yourself. load the log file. profit
kernel auditor too. last pixel

---------- Post added at 21:13 ---------- Previous post was at 21:12 ----------

super lag when closing the avatar in the WhatsApp
 

jukyO

Senior Member
Feb 2, 2011
2,653
607
193
Ogulin
check yourself. load the log file. profit
kernel auditor too. last pixel

---------- Post added at 21:13 ---------- Previous post was at 21:12 ----------

super lag when closing the avatar in the WhatsApp
I'm quite happy with stock setup of the kernel. Battery drains much slower then on original LOS by Shreesha.

Also, I'm pretty much confident that OP will resolve it at one point.

But, if I would report such problem, what is minimum effort to do, is to provide logs. Which is lacking in your case.
 

DynaSpan

Member
Mar 27, 2018
40
20
0
Unfortunately the kernel keeps causing reboots on my OP2 running the LOS15.1 nightly.. I've set the max. freq of little at 1248MHz and big at 1440MHz.

Since logcat gets erased every reboot, which log should I dump to send to you?