drm: vc4: Fix pixel-wrap issue with DVP teardown
authorTim Gover <tim.gover@raspberrypi.com>
Mon, 28 Jun 2021 13:05:33 +0000 (15:05 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 6 Jul 2021 09:24:56 +0000 (11:24 +0200)
commit0b066a6809d0f8fd9868e383add36aa5a2fa409d
treed98f14708b4aac1908ca56f93b0e9a9cbffa808a
parent9d9fb756b5391c2eb93ffdb24f9d2b30c92acc5b
drm: vc4: Fix pixel-wrap issue with DVP teardown

Adjust the DVP enable/disable sequence to avoid a pixel getting stuck
in an internal, non resettable FIFO within PixelValve when changing
HDMI resolution.

The blank pixels features of the DVP can prevent signals back to
pixelvalve causing it to not clear the FIFO. Adjust the ordering
and timing of operations to ensure the clear signal makes it through to
pixelvalve.

Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210628130533.144617-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c