drm/vma: provide drm_vma_node_unmap() helper
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 24 Jul 2013 19:10:03 +0000 (21:10 +0200)
committerDave Airlie <airlied@gmail.com>
Thu, 25 Jul 2013 10:47:08 +0000 (20:47 +1000)
commit51335df9f044ccfafb029f4d7fbeb11c4526340a
treeb2875ee2e4ab79a10c84bdff6a558b336be86838
parent72525b3f333de54fa0c42ef87f27861e41478f1e
drm/vma: provide drm_vma_node_unmap() helper

Instead of unmapping the nodes in TTM and GEM users manually, we provide
a generic wrapper which does the correct thing for all vma-nodes.

v2: remove bdev->dev_mapping test in ttm_bo_unmap_virtual_unlocked() as
ttm_mem_io_free_vm() does nothing in that case (io_reserved_vm is 0).
v4: Fix docbook comments
v5: use drm_vma_node_size()

Cc: Dave Airlie <airlied@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/drm_vma_manager.h
This page took 0.034865 seconds and 5 git commands to generate.