]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm: Add async event synchronization for drmWaitVblank
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 11 Sep 2009 18:33:34 +0000 (04:33 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Nov 2009 00:02:47 +0000 (10:02 +1000)
commitc9a9c5e02aedc1a2815877b0268f886d2640b771
tree51f69f2ec6dcebb019cd6aa22b9e29ee48c397c1
parent799dd75b1a8380a967c929a4551895788c374b31
drm: Add async event synchronization for drmWaitVblank

This patch adds a new flag to the drmWaitVblank ioctl, which asks the drm
to return immediately and notify userspace when the specified vblank sequence
happens by sending an event back on the drm fd.

The event mechanism works with the other flags supported by the ioctls,
specifically, the vblank sequence can be specified relatively or absolutely,
and works for primary and seconday crtc.

The signal field of the vblank request is used to provide user data,
which will be sent back to user space in the vblank event.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_irq.c
drivers/gpu/drm/drm_stub.c
drivers/gpu/drm/i915/i915_drv.c
include/drm/drm.h
include/drm/drmP.h