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 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