]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: switch to gem vma offset manager
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 5 Sep 2019 07:05:06 +0000 (09:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 11 Sep 2019 06:03:24 +0000 (08:03 +0200)
commitbb99d6cd1b3012b2b8d1d8f1e965235dd3bb28f9
treee1c209525b24bc57fd24b47b48284afcbe6a89ef
parent48a20afa016f66c7c414cbf5cf4dd3cfe884d93d
drm/amdgpu: 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-6-kraxel@redhat.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c