OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6f448
)
drm/nouveau: switch to gem vma offset manager
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 5 Sep 2019 07:05:03 +0000
(09:05 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 11 Sep 2019 06:03:23 +0000
(08:03 +0200)
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>
Link:
http://patchwork.freedesktop.org/patch/msgid/20190905070509.22407-3-kraxel@redhat.com
drivers/gpu/drm/nouveau/nouveau_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_ttm.c
b/drivers/gpu/drm/nouveau/nouveau_ttm.c
index
e67eb10
..
77a0c6a
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_ttm.c
@@
-236,7
+236,7
@@
nouveau_ttm_init(struct nouveau_drm *drm)
ret = ttm_bo_device_init(&drm->ttm.bdev,
&nouveau_bo_driver,
dev->anon_inode->i_mapping,
-
NULL
,
+
dev->vma_offset_manager
,
drm->client.mmu.dmabits <= 32 ? true : false);
if (ret) {
NV_ERROR(drm, "error initialising bo driver, %d\n", ret);