I just completed my first mainline driver!

My goal was to enable night light on OnePlus 6 using #phosh on #postmarketos.
It was a missing DRM GAMMA_LUT support in the Qualcomm Display Engine (DPU) driver.
I used the downstream kernel as a reference and found the LUT format by trial and error on the phone.

It was a difficult but very rewarding experience.
I pushed the code here https://gitlab.com/sdm845-mainline/linux/-/merge_requests/137#note_2807562800

#linuxmobile #mainline

@fizzo that's sick as hell. thank you so much
@fizzo did you know that there exists shipped Qualcomm hardware advertising DisplayHDR 400 despite it using a mainline kernel, where the Qualcomm drivers have no HDR support
@leo what device is that? You mean that the downstream driver on android does not support HDR?
@fizzo Lenovo Duet 5 Chromebook (homestar)
@fizzo HDR support only exists in the downstream driver. as a chromebook it runs a near-mainline kernel. it uses an HDR panel and advertises DisplayHDR 500 in the specifications
@fizzo @bshah you might like this :)
@fizzo oh i will use this for sure, thanks
@fizzo Awesome! Great work!

@fizzo THIS is what QUALCOMM has been HIDING from us!!!! xD

(it does already support the simpler matrix thing that's not a full LUT, which is only supported by KDE plasma p much; and the devs were very "uh some new hw is LUT capable i thiiiink buuut go use that thing lol")

lemme test on x1e80100. and if you need help upstreaming, dm me!

@fizzo
Awesome! Thank you for your work on this! ❤️
@fizzo Sorry for necro-posting but nice it got applied on linux-next! It's more generically applicable than I thought so the patch just works on SoCs with DPU.