Flickering when setting CTM on Cometlake device
Issue observed on a ChromeOS hatch device (Cometlake) with ambient light sensor. In response to changes in ambient lighting, ChromeOS sets the CTM. We've observed that on the latest kernel, there is intermittent flickering (i.e. blank frames) when the CTM is being set.
I tested this on a ChromeOS kernel that's basically (c9c3395d5e3d Linux 6.2) with a bunch of stuff to enable building ChromeOS, so it should be pretty close to the upstream kernel.
My colleague determined that this issue started on (d13dde449580 drm/i915: Split pipe+output CSC programming to noarm+arm pair), which landed in the 5.19 kernel. Reverting this change causes the flickering to go away.
While debugging this issue, I also found that if the DMC firmware (i915/kbl_dmc_ver1_04.bin) fails to load, the issue is no longer reproducible. I'm not sure how relevant that point is, but thought it's worth mentioning.