Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm/virtio: wait for pageflip event for atomic disable #106

Conversation

bosheng1
Copy link
Contributor

make sure virtio gpu receive page flip event when doing atomic disable.

Tracked-On: OAM-130135

int ret = 0;

if (vgdev->cache_event[pipe]) {
ret = wait_for_completion_interruptible_timeout(&vgdev->notify[pipe], nsecs_to_jiffies(vblank->framedur_ns));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need separate it into two lines, linux kernel has restriction for the length of line


if (vgdev->cache_event[pipe]) {
ret = wait_for_completion_interruptible_timeout(&vgdev->notify[pipe], nsecs_to_jiffies(vblank->framedur_ns));
if (ret <= 0 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the space

make sure virtio gpu get the correct page flip seq.

Tracked-On: OAM-130135
Signed-off-by: Xue, Bosheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Build Not Started Engineering Build Not Started Pending Developer Approval Pending Developer Approval Pending PR Review Pending PR Review Valid commit message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants