drm/imx: ipuv3-plane: Switch EBA buffer only when we don't need modeset
authorLiu Ying <gnuiyl@gmail.com>
Mon, 10 Oct 2016 06:50:06 +0000 (14:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 15:38:54 +0000 (16:38 +0100)
commitd040374f3473124cadf2e44c0afd2c6ac5451c83
tree193e57f9fe88ffa64fb47c157d68b32921466a7c
parent51ed5a2bbf380bd450e59a6f1a184869341101f5
drm/imx: ipuv3-plane: Switch EBA buffer only when we don't need modeset

commit 43daa01323da37a3692cabe1579ef5c2c4372e06 upstream.

We added active plane reconfiguration support by forcing a full modeset
operation.  So, looking at old_plane_state->fb to determine whether we need to
switch EBA buffer(for hardware double buffering) in ipu_plane_atomic_set_base()
or not is no more correct.  Instead, we should do that only when we don't need
modeset, otherwise, we initialize the two EBA buffers with the buffer address.

Fixes: c6c1f9bc798b ("drm/imx: Add active plane reconfiguration support")
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/imx/ipuv3-plane.c