Mark the vblank event on bochs 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/tiny/bochs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c index e2d957e51505..b5955ef39e31 100644 --- a/drivers/gpu/drm/tiny/bochs.c +++ b/drivers/gpu/drm/tiny/bochs.c @@ -677,7 +677,7 @@ static int bochs_kms_init(struct bochs_device *bochs) drm_connector_attach_edid_property(connector); drm_connector_attach_encoder(connector, encoder); - ret = drm_vblank_init(dev, 1); + ret = drmm_vblank_init(dev, 1, DRM_VBLANK_FLAG_SIMULATED); if (ret) return ret; -- 2.54.0
