summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2019-11-11 14:23:58 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:58:12 +0800
commit95dea9fe254d55da8ff75ab2edadfd93adc4f0c3 (patch)
tree6139a00f35df4340c477d09c94cf5610259d19f2
parentafe3279dbb630f1feb4cb1d7dbc33c7fb6080185 (diff)
drm/imx: dpu: crtc: Wait for FrameGen secondary syncup in ->atomic_enable()
Although the hardware spec doesn't mention the additional operation to wait for FrameGen secondary syncup for FrameGen non-sync mode when we enable a display, it doesn't hurt to do it and we may get warning message in case it's not syncup. Signed-off-by: Liu Ying <victor.liu@nxp.com>
-rw-r--r--drivers/gpu/drm/imx/dpu/dpu-crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/dpu/dpu-crtc.c b/drivers/gpu/drm/imx/dpu/dpu-crtc.c
index b004e327caef..8d8878ff44ac 100644
--- a/drivers/gpu/drm/imx/dpu/dpu-crtc.c
+++ b/drivers/gpu/drm/imx/dpu/dpu-crtc.c
@@ -127,6 +127,8 @@ static void dpu_crtc_atomic_enable(struct drm_crtc *crtc,
dpu_crtc_queue_state_event(crtc);
+ framegen_wait_for_secondary_syncup(dpu_crtc->fg);
+
if (framegen_secondary_requests_to_read_empty_fifo(dpu_crtc->fg)) {
framegen_secondary_clear_channel_status(dpu_crtc->fg);
DRM_WARN("[CRTC:%d:%s] %s: FrameGen requests to read empty FIFO\n",