Patch adds support for enabling early callback. This enables the
user space applications like kmssink plugin that queue up only one
buffer at a time to not drop any frames due to timeout receiving
vblank event from the driver.
The side effect of enabling this behavior is that the buffer whose
callback function has been called may actually still be scanning
out.
Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
}
desc->callback = xlnx_pl_disp->callback;
desc->callback_param = xlnx_pl_disp->callback_param;
+ xilinx_xdma_set_earlycb(xlnx_dma_chan->dma_chan, desc, true);
if (plane->state->fb->flags == DRM_MODE_FB_ALTERNATE_TOP ||
plane->state->fb->flags == DRM_MODE_FB_ALTERNATE_BOTTOM) {