In response to some of Daniel's requests on patch 6, I tried to clean up some of our code via bind/unbind. I haven't done terribly thorough testing so far - but basic tests are passing on IVB, and the code is a lot cleaner IMO. This could be squashed in to patch 6, but I would prefer to leave it as this small series on top of the bunch. I have tried a lesser version of this before in my earlier gtt/agp cleanups. Daniel rejected it then in favor of his own version. I am trying again because I think the latest PPGTT work provide an even greater case for it. References: http://lists.freedesktop.org/archives/intel-gfx/2013-January/023920.html Ben Widawsky (3): drm/i915: Add bind/unbind object functions to VM drm/i915: Use the new vm [un]bind functions drm/i915: eliminate vm->insert_entries() drivers/gpu/drm/i915/i915_drv.h | 23 +++--- drivers/gpu/drm/i915/i915_gem.c | 36 +++++----- drivers/gpu/drm/i915/i915_gem_context.c | 6 +- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 19 ++--- drivers/gpu/drm/i915/i915_gem_gtt.c | 109 ++++++++++++++++++----------- 5 files changed, 109 insertions(+), 84 deletions(-) -- 1.8.3.2