[Intel-gfx] [PATCH 5/8] drm/i915: Convert active API to VMA

2013-09-11 Thread Ben Widawsky
From: Ben Widawsky Even though we track object activity and not VMA, because we have the active_list be based on the VM, it makes the most sense to use VMAs in the APIs. NOTE: Daniel intends to eventually rip out active/inactive LRUs, but for now, leave them be. v2: Remove leftover hunk from th

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Convert active API to VMA

2013-09-11 Thread Chris Wilson
On Wed, Sep 11, 2013 at 02:57:52PM -0700, Ben Widawsky wrote: > if (from != NULL) { > - struct drm_i915_private *dev_priv = > from->obj->base.dev->dev_private; > - struct i915_address_space *ggtt = &dev_priv->gtt.base; > + struct drm_i915_private *dev_priv

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Convert active API to VMA

2013-08-30 Thread Chris Wilson
On Fri, Aug 30, 2013 at 04:43:58PM -0700, Ben Widawsky wrote: > From: Ben Widawsky > > Even though we track object activity and not VMA, because we have the > active_list be based on the VM, it makes the most sense to use VMAs in the > APIs. > > NOTE: Daniel intends to eventually rip out active/

[Intel-gfx] [PATCH 5/8] drm/i915: Convert active API to VMA

2013-08-30 Thread Ben Widawsky
From: Ben Widawsky Even though we track object activity and not VMA, because we have the active_list be based on the VM, it makes the most sense to use VMAs in the APIs. NOTE: Daniel intends to eventually rip out active/inactive LRUs, but for now, leave them be. Signed-off-by: Ben Widawsky Co