[Xperia Z5 General] threader:
https://github.com/sony-msm8994

I'd recommend to use that kernel for testing, It's Los15.1 though, my kernel still needs work, It's currently not booting and the error is currently eluding me, though i expect to find it soon, the good news is that a lot of what I've thrown at it seems to work. I'm targeting 15.1 at first and I want to patch to at least kernel 3.12. I recommend building my kernel separately and assembling a boot.img and testing that way, that said the kernel headers are assembled and used from the target kernel during the Android build process, there is an update kernel header script in bionic at least that should be ran before compiling with a new kernel. But now that memory is triggered and I recall a header conflict, you can comment out the already kernel defined value in the device header.

I use this with only those minor adjustments, target cpu was set to generic and the dependencies file responsible for grabbing required files needs to be cut, and that header modification.

https://github.com/sony-msm8994/android_device_sony_sumire

https://github.com/sony-msm8994/android_device_sony_kitakami-common

Edit:

Yaaay:

sumire:/ $ dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.108-g7a92a1a1bcee-dirty (thread@flappy) (gcc version 6.5.0 (Linaro GCC 6.5-2018.12~dev) ) #2 SMP PREEMPT Mon Aug 26 02:08:08 BST 2019
[ 0.000000] CPU: AArch64 Processor [410fd032] revision 2
[ 0.000000] Machine: SoMC Sumire-ROW
[ 0.000000] cma: Found secure_region@0, memory base 0x0000000000000000, size 300 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found adsp_region@0, memory base 0x0000000000000000, size 63 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found qsecom_region@0, memory base 0x0000000000000000, size 25 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found audio_region@0, memory base 0x0000000000000000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found removed_regions@0, memory base 0x0000000006a00000, size 152 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found dfps_data_mem@0, memory base 0x0000000003400000, size 0 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found cont_splash_mem@0, memory base 0x0000000003401000, size 34 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found peripheral_region@0, memory base 0x000000000ca00000, size 54 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_region@0, memory base 0x0000000007000000, size 90 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found fb_region@0, memory base 0x0000000040000000, size 16 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found ramoops_region@0, memory base 0x000000001fe00000, size 2 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: CMA: reserved 300 MiB at 0x00000000cd400000 for secure_mem
[ 0.000000] cma: CMA: reserved 64 MiB at 0x00000000c9400000 for adsp_mem
[ 0.000000] cma: CMA: reserved 28 MiB at 0x00000000c7800000 for qseecom_mem
[ 0.000000] cma: CMA: reserved 8 MiB at 0x00000000c7000000 for audio_mem
[ 0.000000] cma: CMA: reserved 152 MiB at 0x0000000006a00000 for memory_hole
[ 0.000000] cma: CMA: reserved 4 MiB at 0x0000000003400000 for dfps_data_mem
[ 0.000000] cma: CMA: reserved 36 MiB at 0x0000000003800000 for cont_splash_mem
[ 0.000000] cma: CMA: reserved 54 MiB at 0x000000000ca00000 for peripheral_mem
[ 0.000000] cma: CMA: reserved 90 MiB at 0x0000000007000000 for modem_mem
[ 0.000000] cma: CMA: reserved 16 MiB at 0x0000000040000000 for fb_mem
[ 0.000000] cma: CMA: reserved 2 MiB at 0x000000001fe00000 for ramoops_mem
[ 0.000000] cma: CMA: reserved 16 MiB at 0x00000000c6000000 for default region