projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372c932
)
drm/virtio: implement prime mmap
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 27 Feb 2019 14:44:39 +0000
(15:44 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 28 Feb 2019 08:09:01 +0000
(09:09 +0100)
Sync gem vm_node.start with ttm vm_node.start,
then we can just call drm_gem_prime_mmap().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link:
http://patchwork.freedesktop.org/patch/msgid/20190227144441.6755-2-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_prime.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio/virtgpu_prime.c
index c59ec34c80a5df2c6b3a91f7ec73cd05f85445ad..b4c9199349e720d65d1c2ddea5170de5ffad9abd 100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_prime.c
+++ b/
drivers/gpu/drm/virtio/virtgpu_prime.c
@@
-56,7
+56,10
@@
void virtgpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
}
int virtgpu_gem_prime_mmap(struct drm_gem_object *obj,
-
struct vm_area_struct *are
a)
+
struct vm_area_struct *vm
a)
{
- return -ENODEV;
+ struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj);
+
+ bo->gem_base.vma_node.vm_node.start = bo->tbo.vma_node.vm_node.start;
+ return drm_gem_prime_mmap(obj, vma);
}