Skip to contentSkip to conversation

drm/virtio: fix vblank handling

PATCH In review Gerd Hoffmann 2 participants 2 messages Feb 5, 2020

Subsystems (4)
lore
Share & tools
lore

Gerd Hoffmann

author maintainer
#0 lore raw

PATCH 1/1 drm/virtio: fix vblank handling

virtio has its own commit fail function. Add the
drm_atomic_helper_fake_vblank() call there.

Fixes 2a735ad3d211 ("drm/virtio: Remove sending of vblank event")
---
 drivers/gpu/drm/virtio/virtgpu_display.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/virtio/virtgpu_display.c +1 -0
index ecf4ba7cc32b..7b0f0643bb2d 100644
@@ -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);
Signature · 1 line
2.18.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hi

Am 05.02.20 um 07:53 schrieb Gerd Hoffmann:

Quoted 4 lines

virtio has its own commit fail function. Add the
drm_atomic_helper_fake_vblank() call there.

Fixes 2a735ad3d211 ("drm/virtio: Remove sending of vblank event")

Thanks for fixing the fallout.

Quoted 1 line
Quoted 17 lines
---
 drivers/gpu/drm/virtio/virtgpu_display.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/virtio/virtgpu_display.c +1 -0
index ecf4ba7cc32b..7b0f0643bb2d 100644
@@ -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);
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer