dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	Ben Widawsky <ben@bwidawsk.net>, Dave Airlie <airlied@redhat.com>
Subject: [PATCH 0/7] RFCv3 VGEM Prime (dma-buf)
Date: Wed, 22 Feb 2012 20:29:12 +0100	[thread overview]
Message-ID: <1329938960-4903-1-git-send-email-ben@bwidawsk.net> (raw)

I'm going to be off doing other things for the next couple of weeks, so
I'm dropping these now to give it a nice soak while I'm gone.

Dave/Daniel: if you could look these over and tell me if the general
direction seems good.

Ajax: anything you missing in the basic vgem stuff?

Since the last time:
Squashed down the original vgem patches
Use dumb_bo functions/ditched VGEM ioctls
Hooked up prime import and export support

On the prime side, the major difference from what Dave has done before
is a per driver hash of the previously used dma bufs/gem objects.

The prime stuff is of particularly low quality at this point, like I
said, trying to get something out before I disappear for a while. So
please don't yell at me about obvious bugs :). After getting feedback on
what I have now, I will incorporate Dave's earlier work on i915 prime,
and get some better test cases going.

On my todos:
Ascii chart of dmabuf/drm object life cycle
hashsify the per file list
i915 per driver hash
vgem-i915 and vice versa test cases

As before, the very basic tools are here:
git://people.freedesktop.org/~bwidawsk/vgem-gpu-tools

Once we get cpu maps that I think Daniel wants to work on, I can even do
better tests with just VGEM.

Adam Jackson (1):
  drm/vgem: virtual GEM provider

Ben Widawsky (5):
  drm: DRM_DEBUG_PRIME
  drm: per device prime dma buf hash
  drm/vgem: prime export support
  drm/vgem: import support
  drm: actually enable PRIME

Dave Airlie (1):
  drm: base prime support

 drivers/gpu/drm/Kconfig             |    9 +
 drivers/gpu/drm/Makefile            |    3 +-
 drivers/gpu/drm/drm_drv.c           |    3 +
 drivers/gpu/drm/drm_gem.c           |    4 +
 drivers/gpu/drm/drm_prime.c         |  172 +++++++++++++++
 drivers/gpu/drm/drm_stub.c          |    8 +
 drivers/gpu/drm/vgem/Makefile       |    4 +
 drivers/gpu/drm/vgem/vgem_dma_buf.c |  248 ++++++++++++++++++++++
 drivers/gpu/drm/vgem/vgem_drv.c     |  389 +++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/vgem/vgem_drv.h     |   61 ++++++
 include/drm/drm.h                   |   10 +-
 include/drm/drmP.h                  |   55 +++++
 12 files changed, 964 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_prime.c
 create mode 100644 drivers/gpu/drm/vgem/Makefile
 create mode 100644 drivers/gpu/drm/vgem/vgem_dma_buf.c
 create mode 100644 drivers/gpu/drm/vgem/vgem_drv.c
 create mode 100644 drivers/gpu/drm/vgem/vgem_drv.h

-- 
1.7.9.1

             reply	other threads:[~2012-02-22 19:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22 19:29 Ben Widawsky [this message]
2012-02-22 19:29 ` [PATCH 1/7] drm: base prime support Ben Widawsky
2012-02-22 19:58   ` Kristian Høgsberg
2012-02-27  2:49   ` InKi Dae
2012-02-22 19:29 ` [PATCH 2/7] DRM_DEBUG_PRIME Ben Widawsky
2012-02-22 19:29 ` [PATCH 2/7] drm: DRM_DEBUG_PRIME Ben Widawsky
2012-02-22 19:29 ` [PATCH 3/7] drm/vgem: virtual GEM provider Ben Widawsky
2012-02-22 19:29 ` [PATCH 4/7] drm: per device prime dma buf hash Ben Widawsky
2012-02-22 19:29 ` [PATCH 5/7] drm/vgem: prime export support Ben Widawsky
2012-02-23 19:00   ` [Linaro-mm-sig] " Chris Wilson
2012-02-27 13:37   ` Tomasz Stanislawski
2012-02-27 15:43   ` Tomasz Stanislawski
2012-02-29 15:50     ` Daniel Vetter
2012-02-22 19:29 ` [PATCH 6/7] drm/vgem: import support Ben Widawsky
2012-02-23 19:10   ` [Linaro-mm-sig] " Chris Wilson
2012-02-23 23:00   ` Chris Wilson
2012-02-22 19:29 ` [PATCH 7/7] drm: actually enable PRIME Ben Widawsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329938960-4903-1-git-send-email-ben@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=airlied@redhat.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linaro-mm-sig@lists.linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox