MGS-3940 gpu: imx: dpu-blit: fix dpr hang for smaller size
authorXianzhong <xianzhong.li@nxp.com>
Fri, 6 Jul 2018 12:04:00 +0000 (20:04 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commita30c93296756bb51d929fd2030dd911a0a0191bc
tree395cf7b293aa035fdfc8c08641380a23ec8b47b7
parent2a7099ed622039ee01f4c5d6ec08407fcb2d4252
MGS-3940 gpu: imx: dpu-blit: fix dpr hang for smaller size

auto-trigger cause dpr hang in inital blitter implementation,
the problem is dpr repeat mode has conflict with command sequencer.

as proposed by design, blitter need do manual trigger for each process:
dpr register -> dpr run -> seeris register -> seeris trigger -> sync

frstly this patch removed dprc first frame handler from dpu blitter,
then removed dpr repeat, and enable dpr run for each blit processing.

also add sync flag to avoid the duplicated calling to dpu_be_wait.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 04eb0533d5008ab20aae1e0acb9e4d8b910d82e5)
drivers/gpu/imx/dpu-blit/dpu-blit.c
drivers/gpu/imx/dpu-blit/dpu-blit.h