Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-20 Thread Ander Conselvan De Oliveira
On Tue, 2015-10-20 at 10:10 +0200, Daniel Vetter wrote: > On Tue, Oct 20, 2015 at 10:38:41AM +0300, Ander Conselvan De Oliveira wrote: > > On Mon, 2015-10-19 at 15:30 +0200, Daniel Vetter wrote: > > > On Mon, Oct 19, 2015 at 04:16:53PM +0300, Ander Conselvan De Oliveira > > > wrote: > > > > On Wed,

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-20 Thread Daniel Vetter
On Tue, Oct 20, 2015 at 10:38:41AM +0300, Ander Conselvan De Oliveira wrote: > On Mon, 2015-10-19 at 15:30 +0200, Daniel Vetter wrote: > > On Mon, Oct 19, 2015 at 04:16:53PM +0300, Ander Conselvan De Oliveira wrote: > > > On Wed, 2015-09-23 at 13:27 +0200, Maarten Lankhorst wrote: > > > > @@ -13306

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-20 Thread Ander Conselvan De Oliveira
On Mon, 2015-10-19 at 15:30 +0200, Daniel Vetter wrote: > On Mon, Oct 19, 2015 at 04:16:53PM +0300, Ander Conselvan De Oliveira wrote: > > On Wed, 2015-09-23 at 13:27 +0200, Maarten Lankhorst wrote: > > > @@ -13306,6 +13299,29 @@ intel_prepare_plane_fb(struct drm_plane *plane, > > > if (ret) > >

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-19 Thread Maarten Lankhorst
Op 19-10-15 om 15:16 schreef Ander Conselvan De Oliveira: > On Wed, 2015-09-23 at 13:27 +0200, Maarten Lankhorst wrote: >> Move it from intel_crtc_atomic_commit to prepare_plane_fb. >> Waiting is done before committing, otherwise it's too late >> to undo the changes. >> >> Signed-off-by: Maarten La

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-19 Thread Daniel Vetter
On Mon, Oct 19, 2015 at 04:16:53PM +0300, Ander Conselvan De Oliveira wrote: > On Wed, 2015-09-23 at 13:27 +0200, Maarten Lankhorst wrote: > > @@ -13306,6 +13299,29 @@ intel_prepare_plane_fb(struct drm_plane *plane, > > if (ret) > > return ret; > > > > + if (old_obj) { > > +

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-10-19 Thread Ander Conselvan De Oliveira
On Wed, 2015-09-23 at 13:27 +0200, Maarten Lankhorst wrote: > Move it from intel_crtc_atomic_commit to prepare_plane_fb. > Waiting is done before committing, otherwise it's too late > to undo the changes. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/intel_atomic.c | 2 - >

[Intel-gfx] [PATCH 3/5] drm/i915: Make wait_for_flips interruptible.

2015-09-23 Thread Maarten Lankhorst
Move it from intel_crtc_atomic_commit to prepare_plane_fb. Waiting is done before committing, otherwise it's too late to undo the changes. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c | 2 - drivers/gpu/drm/i915/intel_display.c | 107 ---