Xiaomi just released kernel for Android P:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/grus-p-oss/
I've tried to compile that source and everything working good now (unlike previous Android O kernel which 2nd camera not working in Portrait mode and sound is broken when turn off display). Here is my compile kernel with a lot tweaks now can be change in EX Kernel Manager (KCAL, fsync, iosched, block wakelocks...) to gain more battery and performance, I've only tested with MiuiPro 9.3.1 and EU 9.3.1 but this kernel should work with all MIUI roms based on Android 9.0.
Kernel features:
- Compiled with GCC 8.2.1, mtune=cortex-a75.cortex-a55 (best for Kyro 385 arch.)
- KCAL Advanced Color Control
- KLAPSE
- Min Backlight Control
- Fsync Control
- Vibration Control
- CRC Check Disabled
- Reduced latency 6ms to 5ms
- Disabled Gentle Fair Sleepers
- Power Efficient Workqueues
- LZ4 Compression Algorithm (default)
- Westwood TCP Algorithm (default)
- Boeffla wakelock blocker
- More I/O scheduler: fiops, sio, mapple, zen, tripndroid, anxiety (default).
- kgsl: Removed POPP / Wake GPU upon receiving an ioctl rather than upon touch input.
- Added devfreq boost driver and cpu input boost driver.
- Added more buffer to enhance EIS.
- CONFIG_HZ=300
- Workqueue powersaving.
- Enable deepest state for CPU cluster.
- Boost to the max for 1s whenever the top app changes (improves app launch speeds).
- Zipped up with AnyKernel2.
Download link v1.15 (last update 04/03/2019):
https://drive.google.com/open?id=1lQrpQqgs4Z6v-_SqlKFlttFLkrd951DA