drm/vc4: kms: Assign a FIFO to enabled CRTCs instead of active
authorMaxime Ripard <maxime@cerno.tech>
Fri, 18 Sep 2020 14:59:17 +0000 (16:59 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 23 Sep 2020 07:46:58 +0000 (09:46 +0200)
commitde194561359788871f7d8f5f7797557a2a166b4e
treeed5bccb7feb92f7f59e2302221356abe49a5840f
parent089d83418914abd4d908db117d9a3eca7f51a68c
drm/vc4: kms: Assign a FIFO to enabled CRTCs instead of active

The HVS has three FIFOs that can be assigned to a number of PixelValves
through a mux.

However, changing that FIFO requires that we disable and then enable the
pixelvalve, so we want to assign FIFOs to all the enabled CRTCs, and not
just the active ones.

Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200918145918.101068-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_kms.c