]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 09:02:10 +0000 (11:02 +0200)
commit45931059455536332bb8756693e214f09d5c331d
tree009cca999fd1d79c388b9f7e035dbf9a5674d24b
parent29627223d3b950826c101c18fe35845cd5a2325f
drm/imx: ipuv3-plane: Switch EBA buffer only when we don't need modeset

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: 59f13922f233 ("drm/imx: Add active plane reconfiguration support")
Cc: stable@vger.kernel.org # 4.8
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-plane.c