From: Ben Widawsky Subject: [RFCv2 PATCH 0/5] virtual GEM provider Date: Thu, 9 Feb 2012 00:19:26 +0100 Message-ID: <1328743171-13750-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id BEBB49E838 for ; Wed, 8 Feb 2012 15:19:43 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: Ben Widawsky List-Id: dri-devel@lists.freedesktop.org Incorporated some of the feedback given to Adam's original patch. My intention is to use this to do some dmabuf work/testing with i915 since it seemed too difficult to get some of Dave Airlie's stuff working, and I really don't feel like learning anything about nouveau if I can avoid it. (though I plan to do that later as well). I think what's missing is a shrinker, left in size for mmap (didn't see anyone respond to Daniel Vetter's comment), munmap/remap probably won't work, do quite a bit more testing; that's all I can think of at the moment. The most basic of tests for this are here: git://people.freedesktop.org/~bwidawsk/vgem-gpu-tools master I've also pushed this repo here: git://people.freedesktop.org/~bwidawsk/drm-intel vgem Adam Jackson (1): drm/vgem: virtual GEM provider Ben Widawsky (4): drm/vgem: fops should be separate and constified drm/vgem: Add a drm_vgem_gem_object drm/vgem: getparam ioctl drm/vgem: properly implement mmap drivers/gpu/drm/Kconfig | 8 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/vgem/Makefile | 4 + drivers/gpu/drm/vgem/vgem_drv.c | 377 +++++++++++++++++++++++++++++++++++++++ include/drm/vgem_drm.h | 62 +++++++ 5 files changed, 452 insertions(+), 0 deletions(-) create mode 100644 drivers/gpu/drm/vgem/Makefile create mode 100644 drivers/gpu/drm/vgem/vgem_drv.c create mode 100644 include/drm/vgem_drm.h -- 1.7.9