]> Pileus Git - ~andy/linux/commit
drm/i915: Add vma to list at creation
authorBen Widawsky <ben@bwidawsk.net>
Thu, 1 Aug 2013 00:00:16 +0000 (17:00 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 12:10:20 +0000 (14:10 +0200)
commit8b9c2b9411dd55617442f8151fb6fb2849c72f7e
tree93098931e345d8e44c878386e465191cbee7182f
parent95f5301dd880da2dea2c9a9c29750064536d426a
drm/i915: Add vma to list at creation

With the current code there shouldn't be a distinction - however with an
upcoming change we intend to allocate a vma much earlier, before it's
actually bound anywhere.

To do this we have to check node allocation as well for the _bound()
check.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: move list_del(&vma->vma_link) from vma_unbind to vma_destroy,
again fallout from the loss of "rm/i915: Cleanup more of VMA in
destroy".]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
fixup for drm/i915: Add vma to list at creation
drivers/gpu/drm/i915/i915_gem.c