MGS-3940 gpu: imx: dpu-blit: fix first frame handler
authorXianzhong <xianzhong.li@nxp.com>
Fri, 12 Apr 2019 15:41:29 +0000 (23:41 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commita4f7cfefcf6aca9d497b40c20fda21dc7cae8af7
tree1a1046d0dd39dd415eb6952801a206427325f7c5
parent6eada1d9e127b6a3e3728690beac2fd539be99c2
MGS-3940 gpu: imx: dpu-blit: fix first frame handler

chrome browser hang is reproduced with mouse connected,
the first frame handler trigger the problem in below scenario:
tile (dprc-enable) --> linear (dprc->disable) --> tile (handle first frame wrongly).

need_handle_start is set following dprc_enable, need reset it with dprc_disable.

fix event trigger as previous implementation does not flush command sequence,
that will cause the obvious flicker when run glmark2 in full-screen.
also reduce bitter delay to 30us to improve blitter performance.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
drivers/gpu/imx/dpu-blit/dpu-blit.c