Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 06:20:23PM +0200, Daniel Vetter wrote: > On Wed, Sep 18, 2013 at 6:15 PM, Chris Wilson > wrote: > > Yes, I want the bug in the code fixed. > > I guess what Ben's trying to say is that right now we don't yet have a > bug (since we lack the ppgtt address space). But I agree

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Chris Wilson
On Wed, Sep 18, 2013 at 08:48:45AM -0700, Ben Widawsky wrote: > On Wed, Sep 18, 2013 at 03:53:37PM +0100, Chris Wilson wrote: > > On Wed, Sep 18, 2013 at 07:47:45AM -0700, Ben Widawsky wrote: > > > On Wed, Sep 18, 2013 at 09:30:17AM +0100, Chris Wilson wrote: > > > > On Tue, Sep 17, 2013 at 05:02:0

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 04:59:01PM +0100, Chris Wilson wrote: > On Wed, Sep 18, 2013 at 08:48:45AM -0700, Ben Widawsky wrote: > > On Wed, Sep 18, 2013 at 03:53:37PM +0100, Chris Wilson wrote: > > > On Wed, Sep 18, 2013 at 07:47:45AM -0700, Ben Widawsky wrote: > > > > On Wed, Sep 18, 2013 at 09:30:1

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Chris Wilson
On Wed, Sep 18, 2013 at 09:11:56AM -0700, Ben Widawsky wrote: > On Wed, Sep 18, 2013 at 04:59:01PM +0100, Chris Wilson wrote: > > On Wed, Sep 18, 2013 at 08:48:45AM -0700, Ben Widawsky wrote: > > > On Wed, Sep 18, 2013 at 03:53:37PM +0100, Chris Wilson wrote: > > > > On Wed, Sep 18, 2013 at 07:47:4

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Daniel Vetter
On Wed, Sep 18, 2013 at 6:15 PM, Chris Wilson wrote: > Yes, I want the bug in the code fixed. I guess what Ben's trying to say is that right now we don't yet have a bug (since we lack the ppgtt address space). But I agree that the fix Ben pointed at in this thread of using obj->has_global_mapping

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 03:53:37PM +0100, Chris Wilson wrote: > On Wed, Sep 18, 2013 at 07:47:45AM -0700, Ben Widawsky wrote: > > On Wed, Sep 18, 2013 at 09:30:17AM +0100, Chris Wilson wrote: > > > On Tue, Sep 17, 2013 at 05:02:03PM -0700, Ben Widawsky wrote: > > > > > The code does > > > > > > >

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 09:30:17AM +0100, Chris Wilson wrote: > On Tue, Sep 17, 2013 at 05:02:03PM -0700, Ben Widawsky wrote: > > > The code does > > > > > > exec_start = i915_gem_obj_offset(batch_obj, vm) + > > > args->batch_start_offset; > > > exec_len = args->batch_len; >

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Chris Wilson
On Wed, Sep 18, 2013 at 07:47:45AM -0700, Ben Widawsky wrote: > On Wed, Sep 18, 2013 at 09:30:17AM +0100, Chris Wilson wrote: > > On Tue, Sep 17, 2013 at 05:02:03PM -0700, Ben Widawsky wrote: > > > > The code does > > > > > > > > exec_start = i915_gem_obj_offset(batch_obj, vm) + > > > >

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-18 Thread Chris Wilson
On Tue, Sep 17, 2013 at 05:02:03PM -0700, Ben Widawsky wrote: > > The code does > > > > exec_start = i915_gem_obj_offset(batch_obj, vm) + > > args->batch_start_offset; > > exec_len = args->batch_len; > > ... > > ret = ring->dispatch_execbuffer(ring, > >

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 12:57:20AM +0100, Chris Wilson wrote: > On Tue, Sep 17, 2013 at 04:48:50PM -0700, Ben Widawsky wrote: > > On Wed, Sep 18, 2013 at 12:33:32AM +0100, Chris Wilson wrote: > > > On Tue, Sep 17, 2013 at 04:14:43PM -0700, Ben Widawsky wrote: > > > > On Tue, Sep 17, 2013 at 09:55:3

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Chris Wilson
On Tue, Sep 17, 2013 at 04:48:50PM -0700, Ben Widawsky wrote: > On Wed, Sep 18, 2013 at 12:33:32AM +0100, Chris Wilson wrote: > > On Tue, Sep 17, 2013 at 04:14:43PM -0700, Ben Widawsky wrote: > > > On Tue, Sep 17, 2013 at 09:55:35PM +0100, Chris Wilson wrote: > > > > On Tue, Sep 17, 2013 at 10:01:3

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Ben Widawsky
On Wed, Sep 18, 2013 at 12:33:32AM +0100, Chris Wilson wrote: > On Tue, Sep 17, 2013 at 04:14:43PM -0700, Ben Widawsky wrote: > > On Tue, Sep 17, 2013 at 09:55:35PM +0100, Chris Wilson wrote: > > > On Tue, Sep 17, 2013 at 10:01:33AM -0700, Ben Widawsky wrote: > > > > @@ -1117,8 +1109,13 @@ i915_gem

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Chris Wilson
On Tue, Sep 17, 2013 at 04:14:43PM -0700, Ben Widawsky wrote: > On Tue, Sep 17, 2013 at 09:55:35PM +0100, Chris Wilson wrote: > > On Tue, Sep 17, 2013 at 10:01:33AM -0700, Ben Widawsky wrote: > > > @@ -1117,8 +1109,13 @@ i915_gem_do_execbuffer(struct drm_device *dev, > > > void *data, > > >* b

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Ben Widawsky
On Tue, Sep 17, 2013 at 09:55:35PM +0100, Chris Wilson wrote: > On Tue, Sep 17, 2013 at 10:01:33AM -0700, Ben Widawsky wrote: > > @@ -1117,8 +1109,13 @@ i915_gem_do_execbuffer(struct drm_device *dev, void > > *data, > > * batch" bit. Hence we need to pin secure batches into the global gtt. >

Re: [Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Chris Wilson
On Tue, Sep 17, 2013 at 10:01:33AM -0700, Ben Widawsky wrote: > @@ -1117,8 +1109,13 @@ i915_gem_do_execbuffer(struct drm_device *dev, void > *data, >* batch" bit. Hence we need to pin secure batches into the global gtt. >* hsw should have this fixed, but let's be paranoid and do it

[Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions

2013-09-17 Thread Ben Widawsky
From: Ben Widawsky Building on the last patch which created the new function pointers in the VM for bind/unbind, here we actually put those new function pointers to use. Split out as a separate patch to aid in review. I'm fine with squashing into the previous patch if people request it. v2: Upd