[PATCH 1/6] drm: Add page_flip_target CRTC hook v2

2016-08-08 Thread Michel Dänzer
From: Michel Dänzer Mostly the same as the existing page_flip hook, but takes an additional parameter specifying the target vertical blank period when the flip should take effect. v2: * Add curly braces around else statement corresponding to an if block with curly braces (Alex Deucher) * Call

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-08 Thread Michel Dänzer
On 04.08.2016 20:01, Daniel Vetter wrote: > On Thu, Aug 04, 2016 at 12:47:38PM +0200, Daniel Vetter wrote: >> On Thu, Aug 04, 2016 at 12:39:36PM +0900, Michel Dänzer wrote: >>> >>> @@ -5434,6 +5435,18 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev, >>> if (!crtc) >>> return

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-08 Thread Michel Dänzer
On 05.08.2016 00:13, Alex Deucher wrote: > On Wed, Aug 3, 2016 at 11:39 PM, Michel Dänzer wrote: >> >> @@ -5434,6 +5435,18 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev, >> if (!crtc) >> return -ENOENT; >> >> + if (crtc->funcs->page_flip_target) { >> +

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-08 Thread Daniel Vetter
On Mon, Aug 08, 2016 at 12:54:45PM +0900, Michel Dänzer wrote: > On 04.08.2016 20:01, Daniel Vetter wrote: > > On Thu, Aug 04, 2016 at 12:47:38PM +0200, Daniel Vetter wrote: > >> On Thu, Aug 04, 2016 at 12:39:36PM +0900, Michel Dänzer wrote: > >>> > >>> @@ -5434,6 +5435,18 @@ int drm_mode_page_fl

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-04 Thread Daniel Vetter
On Thu, Aug 04, 2016 at 12:47:38PM +0200, Daniel Vetter wrote: > On Thu, Aug 04, 2016 at 12:39:36PM +0900, Michel Dänzer wrote: > > From: Michel Dänzer > > > > Mostly the same as the existing page_flip hook, but takes an additional > > parameter specifying the target vertical blank period when

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-04 Thread Daniel Vetter
On Thu, Aug 04, 2016 at 12:39:36PM +0900, Michel Dänzer wrote: > From: Michel Dänzer > > Mostly the same as the existing page_flip hook, but takes an additional > parameter specifying the target vertical blank period when the flip > should take effect. > > Signed-off-by: Michel Dänzer > ---

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-04 Thread Michel Dänzer
From: Michel Dänzer Mostly the same as the existing page_flip hook, but takes an additional parameter specifying the target vertical blank period when the flip should take effect. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/drm_crtc.c | 23 +++ include/drm/drm_crtc.h

[PATCH 1/6] drm: Add page_flip_target CRTC hook

2016-08-04 Thread Alex Deucher
On Wed, Aug 3, 2016 at 11:39 PM, Michel Dänzer wrote: > From: Michel Dänzer > > Mostly the same as the existing page_flip hook, but takes an additional > parameter specifying the target vertical blank period when the flip > should take effect. > > Signed-off-by: Michel Dänzer > --- > drivers