drm/vc4: kms: Assign a FIFO to enabled CRTCs instead of active 36/245636/1
authorMaxime Ripard <maxime@cerno.tech>
Mon, 12 Oct 2020 04:26:40 +0000 (13:26 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 13 Oct 2020 08:58:18 +0000 (17:58 +0900)
commit1d6059916173b882b6755dfc6c05bf8027e4b4db
tree823df1136c6d68f0596a42deebafa036ee3d0ba2
parent4453fe27ce2bb0db993870729a17919a35c74de7
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>
[hoegeun.kwon: Needed to fix page flip issue of dual hdmi.]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Id418d321e3cfc9b992bd1868e8084d9f8694a46e
drivers/gpu/drm/vc4/vc4_kms.c