Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-08-03 Thread Tvrtko Ursulin
On 07/28/2015 11:10 AM, John Harrison wrote: [snip] static inline void @@ -2267,7 +2284,7 @@ i915_gem_request_unreference__unlocked(struct drm_i915_gem_request *req) return; dev = req-ring-dev; -if (kref_put_mutex(req-ref, i915_gem_request_free, dev-struct_mutex)) +if

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-08-03 Thread Tvrtko Ursulin
On 07/28/2015 11:18 AM, John Harrison wrote: On 22/07/2015 15:45, Tvrtko Ursulin wrote: On 07/17/2015 03:31 PM, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-28 Thread John Harrison
On 21/07/2015 08:05, Daniel Vetter wrote: On Fri, Jul 17, 2015 at 03:31:17PM +0100, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware.

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-28 Thread John Harrison
On 22/07/2015 15:26, Tvrtko Ursulin wrote: Hi, On 07/17/2015 03:31 PM, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-28 Thread John Harrison
On 22/07/2015 15:45, Tvrtko Ursulin wrote: On 07/17/2015 03:31 PM, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-22 Thread Tvrtko Ursulin
On 07/17/2015 03:31 PM, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that the drivers 'struct

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-22 Thread Tvrtko Ursulin
Hi, On 07/17/2015 03:31 PM, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that the drivers

Re: [Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-21 Thread Daniel Vetter
On Fri, Jul 17, 2015 at 03:31:17PM +0100, john.c.harri...@intel.com wrote: From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that

[Intel-gfx] [RFC 3/9] drm/i915: Convert requests to use struct fence

2015-07-17 Thread John . C . Harrison
From: John Harrison john.c.harri...@intel.com There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that the drivers 'struct drm_i915_gem_request' is trying to address. The request