Re: [Intel-gfx] [PATCH v2] drm/core: Add drm_accurate_vblank_count_and_time, v2.

2016-04-11 Thread Ville Syrjälä
On Mon, Apr 11, 2016 at 05:06:24PM +0200, Maarten Lankhorst wrote: > Op 11-04-16 om 16:43 schreef Ville Syrjälä: > > On Mon, Apr 11, 2016 at 11:42:57AM +0200, Maarten Lankhorst wrote: > >> This function is useful for gen2 intel devices which have no frame > >> counter, but need a way to determine

Re: [Intel-gfx] [PATCH v2] drm/core: Add drm_accurate_vblank_count_and_time, v2.

2016-04-11 Thread Maarten Lankhorst
Op 11-04-16 om 16:43 schreef Ville Syrjälä: > On Mon, Apr 11, 2016 at 11:42:57AM +0200, Maarten Lankhorst wrote: >> This function is useful for gen2 intel devices which have no frame >> counter, but need a way to determine the current vblank count without >> racing with the vblank interrupt

Re: [Intel-gfx] [PATCH v2] drm/core: Add drm_accurate_vblank_count_and_time, v2.

2016-04-11 Thread Ville Syrjälä
On Mon, Apr 11, 2016 at 11:42:57AM +0200, Maarten Lankhorst wrote: > This function is useful for gen2 intel devices which have no frame > counter, but need a way to determine the current vblank count without > racing with the vblank interrupt handler. > > intel_pipe_update_start checks if no

[Intel-gfx] [PATCH v2] drm/core: Add drm_accurate_vblank_count_and_time, v2.

2016-04-11 Thread Maarten Lankhorst
This function is useful for gen2 intel devices which have no frame counter, but need a way to determine the current vblank count without racing with the vblank interrupt handler. intel_pipe_update_start checks if no vblank interrupt will occur during vblank evasion, but cannot check whether the