Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-24 Thread Daniel Vetter
On Fri, Nov 21, 2014 at 05:28:11PM -0800, Michael H. Nguyen wrote: > Hi Daniel, Chris > > On 11/12/2014 08:38 AM, Chris Wilson wrote: > >On Wed, Nov 12, 2014 at 05:33:08PM +0100, Daniel Vetter wrote: > >>On Wed, Nov 12, 2014 at 10:46 AM, Chris Wilson > >>wrote: > >>>On Wed, Nov 12, 2014 at 09:44

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-21 Thread Michael H. Nguyen
Hi Daniel, Chris On 11/12/2014 08:38 AM, Chris Wilson wrote: On Wed, Nov 12, 2014 at 05:33:08PM +0100, Daniel Vetter wrote: On Wed, Nov 12, 2014 at 10:46 AM, Chris Wilson wrote: On Wed, Nov 12, 2014 at 09:44:34AM +0100, Daniel Vetter wrote: On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-12 Thread Chris Wilson
On Wed, Nov 12, 2014 at 05:33:08PM +0100, Daniel Vetter wrote: > On Wed, Nov 12, 2014 at 10:46 AM, Chris Wilson > wrote: > > On Wed, Nov 12, 2014 at 09:44:34AM +0100, Daniel Vetter wrote: > >> On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d.vol...@intel.com wrote: > >> > + if (obj &

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-12 Thread Daniel Vetter
On Wed, Nov 12, 2014 at 10:46 AM, Chris Wilson wrote: > On Wed, Nov 12, 2014 at 09:44:34AM +0100, Daniel Vetter wrote: >> On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d.vol...@intel.com wrote: >> > + if (obj && obj->madv == __I915_MADV_PURGED) { >> > + was_purged =

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-12 Thread Chris Wilson
On Wed, Nov 12, 2014 at 09:44:34AM +0100, Daniel Vetter wrote: > On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d.vol...@intel.com wrote: > > + if (obj && obj->madv == __I915_MADV_PURGED) { > > + was_purged = true; > > + list_del(&obj->batch_pool_lis

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-12 Thread Chris Wilson
On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d.vol...@intel.com wrote: > +struct drm_i915_gem_object * > +i915_gem_batch_pool_get(struct i915_gem_batch_pool *pool, > + size_t size) > +{ > + struct drm_i915_gem_object *obj = NULL; > + struct drm_i915_gem_object *tmp,

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-12 Thread Daniel Vetter
On Fri, Nov 07, 2014 at 02:22:01PM -0800, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > This adds a small module for managing a pool of batch buffers. > The only current use case is for the command parser, as described > in the kerneldoc in the patch. The code is simple, but separatin

[Intel-gfx] [PATCH v4 1/7] drm/i915: Implement a framework for batch buffer pools

2014-11-07 Thread bradley . d . volkin
From: Brad Volkin This adds a small module for managing a pool of batch buffers. The only current use case is for the command parser, as described in the kerneldoc in the patch. The code is simple, but separating it out makes it easier to change the underlying algorithms and to extend to future u