diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-12-11 17:27:29 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2019-12-17 14:24:00 +0800 |
commit | 5b4a3f24de0403b33db1316f7e442d3b55e21821 (patch) | |
tree | c5dae104fc0a7fbb2f8f403809146d47f05fcf32 /drivers | |
parent | 27322fa91a17fafe62a7ec801d8e1bc3d5a59682 (diff) |
MLK-23116-13 drm/imx: dpu: plane: Set prefetch_start flag when DPRC REPEAT_EN is disabled
A DPRC manual mode to auto mode switch is needed, when we start to enable
the DPRC with zero REPEAT_EN. Likely, the later waiting for FrameGen
frame counter moving sync-up logic is also needed, which doesn't hurt
to do so even if it's not needed. So, set the prefetch_start flag
in this case to make all these things happen.
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 4e894b3476db85e11daa69ab94789354f5318aa1)
(cherry picked from commit 9e20109735729c1a56d6eb8760af9127a2d01b1a)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/imx/dpu/dpu-plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/dpu/dpu-plane.c b/drivers/gpu/drm/imx/dpu/dpu-plane.c index dfcc451430c6..7619c7646fc8 100644 --- a/drivers/gpu/drm/imx/dpu/dpu-plane.c +++ b/drivers/gpu/drm/imx/dpu/dpu-plane.c @@ -661,7 +661,7 @@ again: if (use_prefetch && (fu->ops->get_stream_id(fu) == DPU_PLANE_SRC_DISABLED || - need_modeset)) + !dprc_is_repeat_en(dprc) || need_modeset)) prefetch_start = true; fu->ops->set_burstlength(fu, src_x, mt_w, bpp, baseaddr, use_prefetch); |