Mark the vblank event on vkms as simulated, so that the WAIT_VBLANK ioctl fails with an error. The ioctl should not be supported because the output is not synchronized to a display refresh.
Signed-off-by: Thomas Zimmermann <[email protected]> --- drivers/gpu/drm/vkms/vkms_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index 5a640b531d88..c4cfa1e5ab01 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -192,8 +192,8 @@ int vkms_create(struct vkms_config *config) goto out_devres; } - ret = drm_vblank_init(&vkms_device->drm, - vkms_config_get_num_crtcs(config)); + ret = drmm_vblank_init(&vkms_device->drm, vkms_config_get_num_crtcs(config), + DRM_VBLANK_FLAG_SIMULATED); if (ret) { DRM_ERROR("Failed to vblank\n"); goto out_devres; -- 2.54.0
