drm/vc4: crtc: Add a delay after disabling the PixelValve output
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Sep 2020 08:01:01 +0000 (10:01 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Sep 2020 16:04:08 +0000 (18:04 +0200)
commitb7cb67a6b4fbb99a297bb0a57d906f56d81b29c9
tree4b86aaab59405deb1be000c5bf4a3621c2aeec85
parent792c3132bc1b0990db8e3dbef2e9a49bdf80cd62
drm/vc4: crtc: Add a delay after disabling the PixelValve output

In order to avoid pixels getting stuck in the (unflushable) FIFO between
the HVS and the PV, we need to add some delay after disabling the PV output
and before disabling the HDMI controller. 20ms seems to be good enough so
let's use that.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/15cf215bd2ceebd203c4010c09c21a4019c650ed.1599120059.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c