]> git.baikalelectronics.ru Git - kernel.git/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)
commitc98929eddacb1d6d22fe940b351f0064886c9e93
tree93098931e345d8e44c878386e465191cbee7182f
parentde2e3e91cffe5bc12aff502a4bccc64e57eec600
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