• Laurent Pinchart's avatar
    drm: omapdrm: Rework page flip handling · 15d02e92
    Laurent Pinchart authored
    To implement proper vblank control the driver will need to wait for page
    flip completion before disabling the vblank interrupt. This is made
    complex by the page flip implementation which queues and submits page
    flips to the hardware in two separate steps between which DRM locks are
    released. We thus need to avoid waiting on a page flip that has been
    queued but not submitted as submission and wait are covered by the same
    lock.
    
    Rework page flip handling as a first step by splitting the flip_pending
    boolean variable into an enumerated state and moving between states
    based on flip queue, submission and completion. The CANCELLED state will
    be used in a second step.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    15d02e92
omap_crtc.c 19.6 KB