• Rob Clark's avatar
    drm/msm/mdp5: fix missing CTL flush · 6e8bed6a
    Rob Clark authored
    f9cb8d8d fixed various race conditions with CTL flush, in particular
    flushing and sending the START signal before encoder state was updated.
    But it did this a little too well in some cases that don't trigger
    encoder->enable(), and CTL[n].FLUSH would never be set.  When page flips
    happen it would paper over the bug, since the first plag flip would
    flush out the state to the hardware.
    
    The issue could be reproduced with, for example, modetest (without the
    '-v' argument).
    
    Fixes: f9cb8d8d drm/msm/mdp5: rework CTL START signal handling
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
    6e8bed6a
mdp5_encoder.c 13.9 KB