drm/vc4: hvs: Force modeset on gamma lut change
authorMaxime Ripard <maxime@cerno.tech>
Mon, 14 Jun 2021 13:28:30 +0000 (15:28 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:31:24 +0000 (11:31 +0000)
commit9966ea1c60a57ab84aecabfffa546e6fb720161d
tree3296a1e6eb22474e5907cbabdd1a5dfa46d0ad3d
parent0ef0b78e8742d8ccd9434f50d5d8af93e12113f6
drm/vc4: hvs: Force modeset on gamma lut change

The HVS Gamma block can only be updated when idle, so we need to disable
the HVS channel when the gamma property is set in an atomic commit.

Since the pixelvalve cannot have its assigned channel halted without
stalling unless it's disabled as well, in our case that means forcing a
full disable / enable cycle on the pipeline.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c