#if IS_REACHABLE(CONFIG_MTK_CMDQ)
        struct cmdq_client              cmdq_client;
        u32                             cmdq_event;
+       u32                             cmdq_vblank_cnt;
 #endif
 
        struct device                   *mmsys_dev;
 static void ddp_cmdq_cb(struct mbox_client *cl, void *mssg)
 {
        struct cmdq_cb_data *data = mssg;
+       struct cmdq_client *cmdq_cl = container_of(cl, struct cmdq_client, client);
+       struct mtk_drm_crtc *mtk_crtc = container_of(cmdq_cl, struct mtk_drm_crtc, cmdq_client);
 
+       mtk_crtc->cmdq_vblank_cnt = 0;
        cmdq_pkt_destroy(data->pkt);
 }
 #endif
                                           cmdq_handle->pa_base,
                                           cmdq_handle->cmd_buf_size,
                                           DMA_TO_DEVICE);
+               /*
+                * CMDQ command should execute in next 3 vblank.
+                * One vblank interrupt before send message (occasionally)
+                * and one vblank interrupt after cmdq done,
+                * so it's timeout after 3 vblank interrupt.
+                * If it fail to execute in next 3 vblank, timeout happen.
+                */
+               mtk_crtc->cmdq_vblank_cnt = 3;
+
                mbox_send_message(mtk_crtc->cmdq_client.chan, cmdq_handle);
                mbox_client_txdone(mtk_crtc->cmdq_client.chan, 0);
        }
 
 #if IS_REACHABLE(CONFIG_MTK_CMDQ)
        if (!priv->data->shadow_register && !mtk_crtc->cmdq_client.chan)
+               mtk_crtc_ddp_config(crtc, NULL);
+       else if (mtk_crtc->cmdq_vblank_cnt > 0 && --mtk_crtc->cmdq_vblank_cnt == 0)
+               DRM_ERROR("mtk_crtc %d CMDQ execute command timeout!\n",
+                         drm_crtc_index(&mtk_crtc->base));
 #else
        if (!priv->data->shadow_register)
-#endif
                mtk_crtc_ddp_config(crtc, NULL);
-
+#endif
        mtk_drm_finish_page_flip(mtk_crtc);
 }