Mark the vblank event on hypervdrm 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/hyperv/hyperv_drm_modeset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c index 1bbb7de5ab49..24bed31c35e7 100644 --- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c @@ -329,7 +329,7 @@ int hyperv_mode_config_init(struct hyperv_drm_device *hv) return ret; } - ret = drm_vblank_init(dev, 1); + ret = drmm_vblank_init(dev, 1, DRM_VBLANK_FLAG_SIMULATED); if (ret) return ret; -- 2.54.0
