[RFC PATCH 1/6] drm: add helper for arming crtc completion event

2016-09-29 Thread Daniel Vetter
On Thu, Sep 29, 2016 at 3:39 PM, Andrzej Hajda wrote: > >>> +drm_crtc_arm_vblank_event(crtc, event); >>> +else >>> +drm_crtc_send_vblank_event(crtc, event); >>> +spin_unlock_irq(&crtc->dev->event_lock); >>> +} >>> +} >>> +EXPORT_S

[RFC PATCH 1/6] drm: add helper for arming crtc completion event

2016-09-29 Thread Andrzej Hajda
Hi Daniel, On 29.09.2016 11:44, Daniel Vetter wrote: > On Tue, Sep 27, 2016 at 03:36:14PM +0200, Andrzej Hajda wrote: >> A lot of drivers need to fire pageflip completion event at very next vblank >> interrupt. The patch adds helper to perform this operation. >> drm_crtc_arm_completion_event chec

[RFC PATCH 1/6] drm: add helper for arming crtc completion event

2016-09-29 Thread Daniel Vetter
On Tue, Sep 27, 2016 at 03:36:14PM +0200, Andrzej Hajda wrote: > A lot of drivers need to fire pageflip completion event at very next vblank > interrupt. The patch adds helper to perform this operation. > drm_crtc_arm_completion_event checks if there is an event to handle, > if vblank reference get

[RFC PATCH 1/6] drm: add helper for arming crtc completion event

2016-09-27 Thread Andrzej Hajda
A lot of drivers need to fire pageflip completion event at very next vblank interrupt. The patch adds helper to perform this operation. drm_crtc_arm_completion_event checks if there is an event to handle, if vblank reference get succeeds it arms the event, otherwise it sends the event immediately.