Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio-gpu: fix vblank events

virtio-gpu sends vblank events in virtio_gpu_crtc_atomic_flush, and
because of that it must be called for disabled planes too. Ask
drm_atomic_helper_commit_planes to do that.

v2: update to use new drm_atomic_helper_commit_planes() API.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Gerd Hoffmann and committed by
Dave Airlie
eed6f0ed b0a6af8b

+1 -2
+1 -2
drivers/gpu/drm/virtio/virtgpu_display.c
··· 338 338 339 339 drm_atomic_helper_commit_modeset_disables(dev, state); 340 340 drm_atomic_helper_commit_modeset_enables(dev, state); 341 - drm_atomic_helper_commit_planes(dev, state, 342 - DRM_PLANE_COMMIT_ACTIVE_ONLY); 341 + drm_atomic_helper_commit_planes(dev, state, 0); 343 342 344 343 drm_atomic_helper_commit_hw_done(state); 345 344