Skip to content

Commit

Permalink
drm/msm: Grab a vblank reference when waiting for commit_done
Browse files Browse the repository at this point in the history
[ Upstream commit 3b712e4 ]

Similar to the atomic helpers, we should enable vblank while we're
waiting for the commit to finish. DPU needs this, MDP5 seems to work
fine without it.

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Sean Paul authored and Greg Kroah-Hartman committed Dec 21, 2018
1 parent 5c42212 commit d0aaab7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/msm/msm_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ static void msm_atomic_wait_for_commit_done(struct drm_device *dev,
if (old_state->legacy_cursor_update)
continue;

if (drm_crtc_vblank_get(crtc))
continue;

kms->funcs->wait_for_crtc_commit_done(kms, crtc);

drm_crtc_vblank_put(crtc);
}
}

Expand Down

0 comments on commit d0aaab7

Please sign in to comment.