• Lucas Stach's avatar
    gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change · eb0200a4
    Lucas Stach authored
    On a NOP double buffer update where current buffer address is the same
    as the next buffer address, the SDW_UPDATE bit clears too late. As we
    are now using this bit to determine when it is safe to signal flip
    completion to userspace this will delay completion of atomic commits
    where one plane doesn't change the buffer by a whole frame period.
    
    Fix this by remembering the last buffer address and just skip the
    double buffer update if it would not change the buffer address.
    Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
    [p.zabel@pengutronix.de: initialize last_bufaddr in ipu_pre_configure]
    Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
    eb0200a4
ipu-pre.c 10.3 KB