drm/imx: ipuv3-plane: Configure DMFC wait4eot bit after slots are determined
authorLiu Ying <gnuiyl@gmail.com>
Mon, 14 Mar 2016 08:10:11 +0000 (16:10 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 31 Mar 2016 09:24:35 +0000 (11:24 +0200)
commit6bcaf0c5819165984f1039f9ee42fda10c7fd591
tree82b91c6255464f5598fec1f19a836374b1088159
parent27630c206bb00a252d21576d92f57bdcc3ab9455
drm/imx: ipuv3-plane: Configure DMFC wait4eot bit after slots are determined

Just as the function ipu_dmfc_config_wait4eot() tells, the DMFC wait4eot bit
depends on the number of DMFC slots to be used, so it should be called after
the slots are determined in the function ipu_dmfc_alloc_bandwidth().
Based on tests, this patch may eliminate display distortion issue on overlay
plane with small resolutions.  To reproduce the issue, we may run this drm
modetest case - 'modetest -P 19:64x64'.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-plane.c