Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-02-26 Thread Chris Wilson
On Wed, Feb 25, 2015 at 12:46:31PM -0800, Jesse Barnes wrote: On 01/28/2015 02:07 AM, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:50:18AM +0100, Daniel Vetter wrote: On Wed, Jan 28, 2015 at 09:23:46AM +, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:22:15AM +0100, Daniel Vetter

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-02-25 Thread Jesse Barnes
On 01/28/2015 02:07 AM, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:50:18AM +0100, Daniel Vetter wrote: On Wed, Jan 28, 2015 at 09:23:46AM +, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:22:15AM +0100, Daniel Vetter wrote: On Mon, Jan 26, 2015 at 09:08:03AM +, Chris Wilson wrote:

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-28 Thread Chris Wilson
On Wed, Jan 28, 2015 at 10:22:15AM +0100, Daniel Vetter wrote: On Mon, Jan 26, 2015 at 09:08:03AM +, Chris Wilson wrote: On Mon, Jan 26, 2015 at 08:52:39AM +0100, Daniel Vetter wrote: I think the problem will be platforms that want full explicit fence (like android) but allow delayed

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-28 Thread Daniel Vetter
On Mon, Jan 26, 2015 at 11:08:43AM +, Tvrtko Ursulin wrote: On 01/24/2015 09:47 AM, Daniel Vetter wrote: On Fri, Jan 23, 2015 at 5:49 PM, Tvrtko Ursulin tvrtko.ursu...@linux.intel.com wrote: Could you please translate this into something understandable by newcomers? :) I don't know

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-28 Thread Daniel Vetter
On Wed, Jan 28, 2015 at 09:23:46AM +, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:22:15AM +0100, Daniel Vetter wrote: On Mon, Jan 26, 2015 at 09:08:03AM +, Chris Wilson wrote: On Mon, Jan 26, 2015 at 08:52:39AM +0100, Daniel Vetter wrote: I think the problem will be platforms

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-28 Thread Chris Wilson
On Wed, Jan 28, 2015 at 10:50:18AM +0100, Daniel Vetter wrote: On Wed, Jan 28, 2015 at 09:23:46AM +, Chris Wilson wrote: On Wed, Jan 28, 2015 at 10:22:15AM +0100, Daniel Vetter wrote: On Mon, Jan 26, 2015 at 09:08:03AM +, Chris Wilson wrote: On Mon, Jan 26, 2015 at 08:52:39AM

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-28 Thread Daniel Vetter
On Mon, Jan 26, 2015 at 09:08:03AM +, Chris Wilson wrote: On Mon, Jan 26, 2015 at 08:52:39AM +0100, Daniel Vetter wrote: I think the problem will be platforms that want full explicit fence (like android) but allow delayed creation of the fence fd from a gl sync object (like the android

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-26 Thread Chris Wilson
On Mon, Jan 26, 2015 at 08:52:39AM +0100, Daniel Vetter wrote: I think the problem will be platforms that want full explicit fence (like android) but allow delayed creation of the fence fd from a gl sync object (like the android egl extension allows). I'm not sure yet how to best expose that

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-26 Thread Tvrtko Ursulin
On 01/24/2015 09:47 AM, Daniel Vetter wrote: On Fri, Jan 23, 2015 at 5:49 PM, Tvrtko Ursulin tvrtko.ursu...@linux.intel.com wrote: Could you please translate this into something understandable by newcomers? :) I don't know which parts are confusing without questions so please ask them ...

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-25 Thread Daniel Vetter
On Sat, Jan 24, 2015 at 04:08:32PM +, Chris Wilson wrote: On Sat, Jan 24, 2015 at 10:41:46AM +0100, Daniel Vetter wrote: On Fri, Jan 23, 2015 at 6:30 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Jan 23, 2015 at 04:53:48PM +0100, Daniel Vetter wrote: Yeah that's kind the

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-24 Thread Chris Wilson
On Sat, Jan 24, 2015 at 10:41:46AM +0100, Daniel Vetter wrote: On Fri, Jan 23, 2015 at 6:30 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Jan 23, 2015 at 04:53:48PM +0100, Daniel Vetter wrote: Yeah that's kind the big behaviour difference (at least as I see it) between explicit

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-24 Thread Daniel Vetter
On Fri, Jan 23, 2015 at 5:49 PM, Tvrtko Ursulin tvrtko.ursu...@linux.intel.com wrote: Could you please translate this into something understandable by newcomers? :) I don't know which parts are confusing without questions so please ask them ... the questions below about scheduler interactions

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-24 Thread Daniel Vetter
On Fri, Jan 23, 2015 at 6:30 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Jan 23, 2015 at 04:53:48PM +0100, Daniel Vetter wrote: Yeah that's kind the big behaviour difference (at least as I see it) between explicit sync and implicit sync: - with implicit sync the kernel attachs

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Chris Wilson
On Fri, Jan 23, 2015 at 04:53:48PM +0100, Daniel Vetter wrote: Yeah that's kind the big behaviour difference (at least as I see it) between explicit sync and implicit sync: - with implicit sync the kernel attachs sync points/requests to buffers and userspace just asks about idle/business of

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Tvrtko Ursulin
On 01/23/2015 03:53 PM, Daniel Vetter wrote: On Fri, Jan 23, 2015 at 02:02:44PM +, Tvrtko Ursulin wrote: On 01/23/2015 11:27 AM, Chris Wilson wrote: On Fri, Jan 23, 2015 at 11:13:14AM +, Tvrtko Ursulin wrote: From: Jesse Barnes jbar...@virtuousgeek.org Add Android native sync

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Tvrtko Ursulin
On 01/23/2015 11:27 AM, Chris Wilson wrote: On Fri, Jan 23, 2015 at 11:13:14AM +, Tvrtko Ursulin wrote: From: Jesse Barnes jbar...@virtuousgeek.org Add Android native sync support with fences exported as file descriptors via the execbuf ioctl (rsvd2 field is used). This is a continuation

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Chris Wilson
On Fri, Jan 23, 2015 at 11:13:14AM +, Tvrtko Ursulin wrote: From: Jesse Barnes jbar...@virtuousgeek.org Add Android native sync support with fences exported as file descriptors via the execbuf ioctl (rsvd2 field is used). This is a continuation of Jesse Barnes's previous work, squashed

[Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Tvrtko Ursulin
From: Jesse Barnes jbar...@virtuousgeek.org Add Android native sync support with fences exported as file descriptors via the execbuf ioctl (rsvd2 field is used). This is a continuation of Jesse Barnes's previous work, squashed to arrive at the final destination, cleaned up, with some fixes and

Re: [Intel-gfx] [RFC v2] drm/i915: Android native sync support

2015-01-23 Thread Daniel Vetter
On Fri, Jan 23, 2015 at 02:02:44PM +, Tvrtko Ursulin wrote: On 01/23/2015 11:27 AM, Chris Wilson wrote: On Fri, Jan 23, 2015 at 11:13:14AM +, Tvrtko Ursulin wrote: From: Jesse Barnes jbar...@virtuousgeek.org Add Android native sync support with fences exported as file descriptors