[Intel-gfx] [PATCH 5/6] [v3] drm/i915: Use the new vm [un]bind functions
Chris Wilson
chris at chris-wilson.co.uk
Wed Sep 18 10:30:17 CEST 2013
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,
> > exec_start, exec_len,
> > flags);
> > if (ret)
> > goto err;
> >
> > So we lookup the address of the batch buffer in the wrong vm for
> > I915_DISPATCH_SECURE.
> > -Chris
> >
>
> But this is very easily solved, no?
>
> http://cgit.freedesktop.org/~bwidawsk/drm-intel/tree/drivers/gpu/drm/i915/i915_gem_execbuffer.c?h=ppgtt#n1083
No, just because the batch once had a ggtt entry doesn't mean the CS is
going to use the ggtt for this execution...
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list