drm/vc4: kms: Don't disable the muxing of an active CRTC 41/245641/1
authorMaxime Ripard <maxime@cerno.tech>
Thu, 8 Oct 2020 11:25:18 +0000 (13:25 +0200)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 13 Oct 2020 09:01:44 +0000 (18:01 +0900)
commit5d2fec61a25bacc49ee8e84b3c19aee1522f7289
treeb778ab607bfdee82270d20c08acac309528e321c
parentf1b82fc8050c75fd0e292e492e51d103f5847c26
drm/vc4: kms: Don't disable the muxing of an active CRTC

The current HVS muxing code will consider the CRTCs in a given state to
setup their muxing in the HVS, and disable the other CRTCs muxes.

However, it's valid to only update a single CRTC with a state, and in this
situation we would mux out a CRTC that was enabled but left untouched by
the new state.

Fix this by considering all the CRTCs in the state and the ones with a
state and active.

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: Idb6e79214f52e470e9fcf5a0579873402c631eb2
drivers/gpu/drm/vc4/vc4_kms.c