]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/virtio: fix vblank handling
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Feb 2020 06:53:11 +0000 (07:53 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Feb 2020 10:47:47 +0000 (11:47 +0100)
virtio has its own commit fail function.  Add the
drm_atomic_helper_fake_vblank() call there.

Fixes: 942653cc763a ("drm/virtio: Remove sending of vblank event")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20200205065312.15790-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_display.c

index ecf4ba7cc32b216cabfa0366599edc4c57ba2082..7b0f0643bb2ddc4b42e4393c1f41be3c77cee24d 100644 (file)
@@ -324,6 +324,7 @@ static void vgdev_atomic_commit_tail(struct drm_atomic_state *state)
        drm_atomic_helper_commit_modeset_enables(dev, state);
        drm_atomic_helper_commit_planes(dev, state, 0);
 
+       drm_atomic_helper_fake_vblank(state);
        drm_atomic_helper_commit_hw_done(state);
 
        drm_atomic_helper_wait_for_vblanks(dev, state);