linux/drivers/gpu/drm/qxl
David Herrmann 72525b3f33 drm/ttm: convert to unified vma offset manager
Use the new vma-manager infrastructure. This doesn't change any
implementation details as the vma-offset-manager is nearly copied 1-to-1
from TTM.

The vm_lock is moved into the offset manager so we can drop it from TTM.
During lookup, we use the vma locking helpers to take a reference to the
found object.
In all other scenarios, locking stays the same as before. We always
guarantee that drm_vma_offset_remove() is called only during destruction.
Hence, helpers like drm_vma_node_offset_addr() are always safe as long as
the node has a valid offset.

This also drops the addr_space_offset member as it is a copy of vm_start
in vma_node objects. Use the accessor functions instead.

v4:
 - remove vm_lock
 - use drm_vma_offset_lock_lookup() to protect lookup (instead of vm_lock)

Cc: Dave Airlie <airlied@redhat.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Martin Peres <martin.peres@labri.fr>
Cc: Alex Deucher <alexander.deucher@amd.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>
2013-07-25 20:47:07 +10:00
..
Kconfig qxl: fix Kconfig deps - select FB_DEFERRED_IO 2013-05-28 17:03:37 +10:00
Makefile
qxl_cmd.c qxl: add ring prep code for s/r 2013-07-05 10:44:17 +10:00
qxl_debugfs.c drivers, drm: fix qxl build error when debugfs is disabled 2013-04-30 10:00:27 +10:00
qxl_dev.h
qxl_display.c qxl: use drm helper hotplug support 2013-07-05 10:44:19 +10:00
qxl_draw.c
qxl_drv.c qxl: add suspend/resume/hibernate support. 2013-07-05 10:44:18 +10:00
qxl_drv.h qxl: add suspend/resume/hibernate support. 2013-07-05 10:44:18 +10:00
qxl_dumb.c
qxl_fb.c qxl: add fb and ttm entry points for use by suspend/resume. 2013-07-05 10:44:18 +10:00
qxl_fence.c
qxl_gem.c
qxl_image.c
qxl_ioctl.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2013-07-09 16:04:31 -07:00
qxl_irq.c
qxl_kms.c qxl: use drm helper hotplug support 2013-07-05 10:44:19 +10:00
qxl_object.c qxl: add suspend/resume/hibernate support. 2013-07-05 10:44:18 +10:00
qxl_object.h drm/ttm: convert to unified vma offset manager 2013-07-25 20:47:07 +10:00
qxl_release.c drm/ttm: convert to unified vma offset manager 2013-07-25 20:47:07 +10:00
qxl_ttm.c drm/qxl: fix build with debugfs turned off. 2013-04-18 11:47:40 +10:00