Skip to content
Snippets Groups Projects
Commit b99f94fc authored by Alex Hung's avatar Alex Hung
Browse files

tests/kms_cursor_legacy: allow an extra vblank in atomic-transitions tests


On i915 devices:
kmstest_get_vblank() calls a drm_ioctl(DRM_IOCTL_WAIT_VBLANK), but
vblanks are not updated until a following read() op triggers kernel to
update vblank, ex. "[drm:drm_handle_vblank [drm]] vblank event on xxx".

However, this is not the case for all devices:
kmstest_get_vblank() triggers a drm_ioctl(DRM_IOCTL_WAIT_VBLANK),
and then drm_wait_vblank_ioctl() in drm_vblank.c is called and
returns vblank, ex. "[drm]] crtc 0 returning xxx to client" right away.
In this scenario, the read() op does nothing related to vblank.

Since the vblank can be updated before the read(), the extra vblank
in commit da0b6abeshould also be allowed before the read().

Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
parent 05b7eaf9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment