drm/msm/dpu: move vblank events to complete_commit()
authorRob Clark <robdclark@chromium.org>
Mon, 7 Sep 2020 16:41:41 +0000 (09:41 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 9 Sep 2020 22:15:57 +0000 (15:15 -0700)
commitfd630ae9e27cfc2f6e3184b82288ba9ff9ff8bee
tree48cdf21aa2fa2a4124e59f0551da3154165b1eec
parentd768e5043c056822ef7ed1546e2d7134877ae6d1
drm/msm/dpu: move vblank events to complete_commit()

We could get a vblank event racing with the current atomic commit,
resulting in sending the pageflip event to userspace early, causing
tearing.  On the other hand, complete_commit() ensures that the
pending flush is complete.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c