[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Ayrton990:
Releases and Changelog

Quantic-Kernel reborn

What's this kernel:

It's a new concept kernel as the usual, this is focused on a improved UI experience to feel the smoothness of a Pixel device.

It's based on latest CAFEST base of sm8150 with clean code, including a several backports from 4.19 CAFEST kernels into the scheduler, making the optimum approach to low jank and jitter experience.

Working over WALT scheduler following the recommendations of CAF:

- CONFIG_HZ=100 instead of 300 used on most custom kernels out there

- SchedTune predictions.

- No AOSP overlayed code

- No riced code inside.

Quantic puts it's enhancements on:

- Backported Wireguard module to July

- ExFAT compatible OTG Devices

- LZ4 Crypto upgraded

- 2GB ZRAM for the best multitask experience

- heavily adapted scheduler aligned with CAF recommendations.

- CAF energy management by default instead of Xioami's.

- GPU OC Temporary disabled (will be ready next update until upstream arrives)

- Recalculated EAS Capacity in DTS

- Latest Long Term Support 4.14.193

- Latest tag for sm8150

- In kernel boosting drivers rather than common CAF Boost that causes massive task migration impacting performance and battery life.

- Battery life improved drastically

NOTES:

- BUGS: NONE SO FAR.. (You tell me?)

- Flash over the ROM stock kernel.

- This kernel works perfect aligned with my latest AOSiP build ?

- Screen OC will be added on next build

- Edit : Added Hotfix version

Download:

- http://quantic.carlosayrton.com/Quantic/Cepheus/AOSP/Quantic-Kernel-REBORN-Fixed.zip

OLD RELEASES

Quantic-Kernel r22

Changelog:

- Fixed BSD (Black Screen of Death while device locked)

- Switched to PELT Scheduler (New reworked sched, same as MIUI variant)

- Implemented turbocharge by wloot (To use generic chargers with 3A+ of flow)

- Bringed back GPU Overclock up to 810MHz

- Fixed performance regression (Geekbench: 761 single core, 2618 Multi-Core)

- Bringed back Sound Control

- Jitter with less disparity

BUGS: None so far

Battery Consumption: Acording to my weak test battery drain on simple task should be arround 9.80%/h and idle arround 0.36% please report back if you see high consumption

Download AOSP and MIUI: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases

Quantic-Kernel r21

Changelog for AOSP | Download here

Changelog for MIUI | [URL="https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r21-MIUI"]Download here

MIUI Users, Disable DC-Dimming or Anti-Flicker before flashing, else you will have a bootloop.

Join to my telegram group for support or to my channel to get faster updates

Quantic-Kernel r17

Changelog for AOSP:

- Upstreamed to LTS: 4.14.186

- Upstreamed Low Memory Killer by Sultan Alsawaf [MENTION=336901]Kernel[/MENTION]toast

- FOD Improvments (Use qcom drm notifier for event blanks)

- disp: msm: sde: prevent CPU from sleeping while processing display IRQ

- soc: qcom: smp2p: keeping inbound entry on freeze

- ARM64: dts: sm8150-common: Disable all PCIe and MHI nodes

- cpufreq: Only block min freq setting for booster processes

- qos: Don't allow userspace to impose restrictions on CPU idle levels

NOTE: Kernel version remains on r16 because I forgot to change it

NOTE: Userspace is the plain where rom and user can tamper in kernel settings by a good or bad way

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r17

Changelog for MIUI- Initial Release

- Upstreamed to LTS: 4.14.186

- Upstreamed to CAF: LA.UM.8.1.r1-15100-sm8150.0

- FOD Fixed by [MENTION=8538081]sekaiacg[/MENTION]

- FOD Improvments by [MENTION=766506]laulan[/MENTION]56

- AOD and FOD on AOD Fixed by [MENTION=454575]official[/MENTION]-Ayrton990

- GPU Overclock to 835MHz

- Fsync toggle and Dynamic fsync

- Disabled all qcom boost

- Use qcom drm notifier and all fingerprint and touch drivers and objects

- PELT Scheduler

- Scheduler backports for general performance and baterry consumption

BUGS: Anti screen flickering not working and dont try to enable or your would never be able to boot the rom

BUGS: Since I'm using magisk to solve some issues of FP coming from M.O.D Kernel or Evira Kernel will bootloop your device, be aware.

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r17-MIUI

Quantic-Kernel r14

Fod Improvments in accuracy and speed according to

Changed interpolation method from linear to non-linear using logarithms (base 2) for a better accuracy and response in brightness (see: f8658e8)

Fixed high birghtness after unlocking device using fod.

avoid atomics to trigger drm_notifier

Massive improvments in performance and battery consumption, according to

Custom Implementation of cpu_input_boost

Selected minimum optimal frequencies for sm8150 (Thanks to kdrag0n)

Boosting DDR Bus when a new frame is ready to be commited.

Boost when memory pressure becomes high

Upstreamed CAF to: LA.UM.8.1.r1-15100-sm8150.0

Upstreamed LTS: 4.14.183

Scheduler improved, reduced Jank and Jiter (UI)

WALT Dropped

Idle improved (Tweaked s2idle)

Minor battery improvments in general.

OC restored back (recommended default 675MHz)

NOTE: Improvments on FOD are only avaliable in the FOD-IN-KERNEL version

FOD-IN-KERNEL only compatible with: LOS, PE, P-404, Syberia, Descendant and crDroid.

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r14

Quantic-Kernel r12

rebuilt FOD changes from the ground up to avoid flickering (kernel side changes obviously, requires updated trees)

Enable lz4 zRAM compressor for PELT version

wakeup logging under new s2idle flow

Improve general performance of the scheduler

sched/fair: don't migrate stune boosted tasks to little cores

sched/tune: remove WALT support from stune assist (performance improved, because this enable full stune assist on PELT)

Upstreamed to 4.14.18 from kernel.org

Latest CAF Tags

For FP, there will be 2 versions, one for updated roms with optimized fod by Demon000, such as Pixel Experience and LOS, other version [PELT(2)] will work on other roms like derpfest based and crDroid.

Some little performance improvments and idle consumption lowered

ExFAT added to PELT(2)

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r12-PELT

Download here (Optimized FOD): https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r12-PELT_DERP

Quantic-Kernel r10

Upstreamed to 4.14.181 from android-linux-stable

Embedded dtbo.img into the kernel, this will let modders to alter the dtbo partition without messing with fp.

Updated sched_energy driver

Checkout to sched_energy to common kernel android 4.14

Idle drain improved (please don't use meme apps such as greenify, naptime and GMS Doze, because aren't compatible with sleep2idle)

New complementary build with PELT Scheduler (NO GPU OC, NO KLAPSE and NO Boeffla Wakelock Blocker)

Upstreamed osm0sis Anykernel3

HEX-PATCHED boot.img support on anykernel.sh to support no-root users

Added schedION (See info below) optimized for PELT mechanism

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here WALT Version: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r10

Download here PELT Version: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r10-PELT

Quantic-Kernel r9

Enabled sleep2idle

Fix excessive packing on the max capacity CPU

updated LZ4 decompressor module

tcp: up initial rmem to 128KB and SYN rwin to around 64KB

Enable simple_lmk (Simple low memory killer upstreamed)

Updated vmpressure

Code cleaned at 80%

Introduce devfreq_boost

Boost CPU DDR bus when commiting a new frame

Forced ULPS on dsi_panel instead of my dtsi forced method

Nuked Dynamic_schedboost since it was making a lot of jitter while navigating on the UI and draining battery so fast

Merge tag 'LE.UM.3.3.2-0800-SDX55'

Merge tag 'LA.UM.8.9.r1-09200-SM6xx.0'

Upstreamed to latest AOSP 4.14-q tag

Added some flags optimization to Makefile (NOTE: I know that Linus Torvalds disapproves using -O3 optimizations but I'm compiling with clang instead of gcc)

Nuked default up|down_rate_limit_us values

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r9

Quantic-Kernel r7 and r8

Upstreamed to Linux 4.14.180 of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux

Enabled exposure adjustment and also changed some minor values (DC Dimming or Flicker Free, also tunned to avoid visual artifacts)

Merge tag 'LE.UM.4.2.2.r1-01000-SDX55'

Merge tag 'LA.UM.8.1.r1-14900-sm8150.0'

Merge branch 'android-4.14-q' of https://android.googlesource.com/kernel/common

Backported features that will help CPU to distribute the loads on the cores

Nuked some useless boost from CAF

Tunned thermals zones

Imported binder changes from 4.19

Leds: class: ensure workqueue is initialized before setting brightness

Nuked sched_boost feature

Tweaked schedutil

Avoid thermal_core to not throttle prime core

reserve prime core for high_cap tasks only

disallow taking down big and prime cores by userspace

avoid 100% CPU usage during compaction when a task is killed

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r8

Quantic-Kernel r6

Partially fixed dt2w, some users reporting not working on PA but the rest of the ROMs works

Upstreamed to **linux stable 4.14.178**

Added a new CFS thread for freeing GPU memory. Improves performance when tearing down processes and lets UI to submit work to the GPU. (more info here: 24c27d8)

Offload mementry destroy work to separate thread, this is done to reduce the time spent by user applications in waiting for memory to be freed. (more info here: 0dc7bcd)

Use optimized spinning loop for arm64, this makes about 20% performance improvement on the CPU multithread load. (more info here: 9abedaf)

Fix race between runtime distribution and assignment (more info here: 0d521cd)

Align rq->avg_idle and rq->avg_scan_cost, The only difference between the two is that rq->avg_scan_cost is computed using a pure division rather than a shift (more info here: f3721e1)

Get rid of the big mutex lock on ashmem (more info here: 3ec8f26)

Enable ZRAM to 3GB and use z4 as compressor.

Most of the new features were backported.

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r6 or use FK Manager/smartpack to Update

Quantic-Kernel r4

Merge tag 'LA.UM.8.11.r1-03300-NICOBAR.0'

Merge tag 'LE.UM.4.2.2-00800-SDX55'

Added dynamic schedtune boost

Tweaked cpufreq_schedutil.c again

By consequence of the prior changes, performance is better than last r3 without loosing battery backup.¿t

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r4 or use FK Manager/smartpack to Update

Quantic-Kernel r3

paranoid kernel base by [MENTION=5970333]markakash[/MENTION] now deprecated, thanks to him to let this project start

New base build from scratch synced with demon000 fp changes

DDR4 2133MHz OC

Enabled Ultra Low Power State (UPS)

Enabled LZ4 on ZRAM

Enabled CONFIG_IP_NF_TARGET_TTL requested by Vladislav Polyakov this let the user to change TTL by their own value in safe way

Tuned schedutil to reach better performance without damaging the battery life

Use PELT instead of WALT

MIUI not compatible at the moment

Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates

Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r3 or use FK Manager to Update

Quantic-Kernel v2.1-HF

Fixed tethering, this means that modded TTL to avoid tethering on carries has been reverted. Check: 8b8ef87

Synced with Demon000 changes

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.1-HF or use FK Manager to Update

Quantic-Kernel v2.1

Merge tag **'LA.UM.8.1.r1-14700-sm8150.0'** of https://source.codeaurora.org/quic/la/kernel/msm-4.14

Merge tag **'v4.14.176'** of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux

IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.1 or use FK Manager to Update

Quantic-Kernel v2.0

Merge tag 'LE.UM.3.3.2-07400-SDX55' from CAF

Merge tag 'LE.UM.4.1.2.r1-03500-qcs405.0' from CAF

Avoid tethering carrier detection (EXPERIMENTAL) changing TCP time to live (TTL) packages to 64 (ISP dettects tethering when a value of TTL is dfferent than 64)

Use power efficient workingqueues on GPU

Sycned doze changes from Demon000

Disable readahead by default; could improve performance and power consumption by 70% (sequential; 60% for random).

dtbo regenerated (please test this could break the fingerprint)

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.0 or use FK Manager to Update

Quantic-Kernel v1.9

Merge tag 'LE.UM.4.2.2-00500-SDX55'

Added Demon000 screen doze implementation for battery savings

Disabled all debuggers and loggers

Testing new cpu mask to set idle frequencys.

Wireguard is enabled by default

should see better screen off drain

Added the necessary commits for the new flicker-free implementation on PE+ to work

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.9 or use FK Manager to Update

Quantic-Kernel v1.8

Upstreamed to 4.14.175 from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux

Changed frequency bus (max and min) to achieve better efficiency on GPU OC, this means: Less heat, less battery consumption

IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.8 or use FK Manager to Update

Quantic-Kernel v1.7

Support for MIUI (Custom ROMs that doesn't support avb) with broken fp

Force idle 403MHz frequency to silver core (https://github.com/Official-Ayrton9...mmit/49b531db5b553aaac1a42ed6852e4a34ba714190)

Merge tag LE.UM.4.2.2-00400-SDX55.

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.7 or use FK Manager to Update

Quantic-Kernel v1.6

Tweaked schedutil governor, now better consumption and battery drain achieved

Removed Spectrum profiles, not necessary now with this tweak on schedutil

Now kernel is upgradable with Franco Kernel Manager and smartpack just adding the following url: https://www.carlosayrton.com/kernel.json

Overclock downgraded to 825MHz, this because some reports about antutu failing on benchmark and lower results, also a lot of shuttering on the UI

Underclock down to 96MHz to idle the gpu and save energy, when watching videos or static images.

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.6

Quantic-Kernel v1.5

Upstreamed to 4.14.174 from linux-stable (See my github to review changes)

IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.5

Quantic-Kernel v1.4 (Birthday update! :victory:)

Synced with akash changes

schedION governor added (Battery Friendly ONLY and see INFO Post for details)

Updated Spectrum profiles

IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.4

Quantic-Kernel v1.3

Upstreamed to 4.14.173

Spectrum profiles reverted

Kernel updated to LA.UM.8.1.r1-14500-sm8150.0

Flashing method:

Backup stock boot and dtbo

Flash Kernel

Flash Magisk v20.3

Reboot

Notes:

Fingerprint on Screen should be fixed since I'd made a dtbo.img to avoid that issue, however because of the lack of testers I can't guarantee fingerprint working since I reimplemented spectrum profiles again.

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.3

Quantic-Kernel v1.2

Deleted Spectrum as fingerprint still not working (sorry for that)

Added houston library from OnePlus 7 PRO

Added blu_schedutil, a governor created by [MENTION=3873953]eng.stk[/MENTION] extracted from his kernel implementation on blu spark. (This governor saves battery and unleash power when needed)

Removed several log instructions from defconfig to avoid unnecessary charge on the system.

Added Device_Tree_blob_overlays to completely solve the issue of missing fingerprint in some devices and ROMs (Like crDroid and ArrowOS)

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.2

Quantic-Kernel Hotfix-v1.1

Temporary removed Spectrum, as is the known bad guy that is causing trouble with some people dissapearing fingerprint on display

People that doesn't have problems with fingerprint can stay on v1.0 without problem, this update is made to restore fingerprint.

Please restore your boot and dtbo partition backup made on twrp and then flash the kernel (no need to reflash magisk as I'm not touching ramdisk anymore because no spectrum)

Thanks to Peter Jakson for testing the fixed version Apologizes to everyone for the inconvenience

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/Hotfix-1.1

Quantic-Kernel v1.0

Updated K-Lapse to v5.0 this fixes FK Manager force close issue when activating it

Reimplemented KCAL from scratch, that fixes a lot of shutterings and adds color control to the screen

Added missing header (display_state.h) that causes issues with KCAL

Performance improved massively

Added Spectrum profiles support to the kernel

Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.0