Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Joonas Lahtinen
On to, 2016-08-04 at 11:02 +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 11:26:04AM +0300, Joonas Lahtinen wrote: > > > > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > > > > > With a bit of care (and leniency) we can iterate over the object and > > > wait for previous rendering

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Chris Wilson
On Thu, Aug 04, 2016 at 11:26:04AM +0300, Joonas Lahtinen wrote: > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > With a bit of care (and leniency) we can iterate over the object and > > wait for previous rendering to complete with judicial use of atomic > > reference counting. The ABI r

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Chris Wilson
On Thu, Aug 04, 2016 at 11:26:04AM +0300, Joonas Lahtinen wrote: > On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > > With a bit of care (and leniency) we can iterate over the object and > > wait for previous rendering to complete with judicial use of atomic > > reference counting. The ABI r

Re: [Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-04 Thread Joonas Lahtinen
On ma, 2016-08-01 at 19:22 +0100, Chris Wilson wrote: > With a bit of care (and leniency) we can iterate over the object and > wait for previous rendering to complete with judicial use of atomic > reference counting. The ABI requires us to ensure that an active object > is eventually flushed (like

[Intel-gfx] [PATCH 10/16] drm/i915: Remove (struct_mutex) locking for wait-ioctl

2016-08-01 Thread Chris Wilson
With a bit of care (and leniency) we can iterate over the object and wait for previous rendering to complete with judicial use of atomic reference counting. The ABI requires us to ensure that an active object is eventually flushed (like the busy-ioctl) which is guaranteed by our management of reque