drm/radeon: switch to gem vma offset manager
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 5 Sep 2019 07:05:05 +0000 (09:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 11 Sep 2019 06:03:24 +0000 (08:03 +0200)
commit8b53e1cb2728b6326ac42ab23ca54f7bc2ce90bd
treedf05a7249945fe0efcb72f986d73ad17295f57cb
parentf1acf41f9e325047569ad9fa8a71604bd680837f
drm/radeon: switch to gem vma offset manager

Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it
instead of its own embedded struct.  This makes some gem functions
(specifically drm_gem_object_lookup) work on ttm objects.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190905070509.22407-5-kraxel@redhat.com
drivers/gpu/drm/radeon/radeon_ttm.c