drm/vgem: implement virtual GEM
authorZach Reizner <zachr@google.com>
Thu, 5 Mar 2015 00:33:41 +0000 (16:33 -0800)
committerDave Airlie <airlied@redhat.com>
Wed, 1 Apr 2015 23:21:48 +0000 (09:21 +1000)
commit502e95c6678505474f1056480310cd9382bacbac
treedc69d2e48c0b2968ef6d1bed29c63913116df300
parent564b687b031ccc647943f946b93037cf0780612a
drm/vgem: implement virtual GEM

This patch implements the virtual GEM driver with PRIME sharing which
allows vgem to import a gem object from other drivers for the purpose
of mmap-ing them to userspace. The mmap is done using the mmap
operation exported by other drivers.

v2: remove platform_device and do not attach to dma bufs
v3: use drm helpers for get/put pages
v4: correct dumb create pitch

Reviewed-by: Rob Clark <robdclark@gmail.com> (v3)
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> (v3)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Zach Reizner <zachr@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/vgem/Makefile [new file with mode: 0644]
drivers/gpu/drm/vgem/vgem_dma_buf.c [new file with mode: 0644]
drivers/gpu/drm/vgem/vgem_drv.c [new file with mode: 0644]
drivers/gpu/drm/vgem/vgem_drv.h [new file with mode: 0644]