From: Thomas Hellstrom <thellstrom@vmware.com>
To: Zachary Reizner <zachr@google.com>
Cc: "Stéphane Marchesin" <marcheu@chromium.org>,
"Ben Widawsky" <ben@bwidawsk.net>,
dri-devel@lists.freedesktop.org,
"Dave Airlie" <airlied@redhat.com>
Subject: Re: [PATCH] drm/vgem: implement virtual GEM
Date: Thu, 2 Apr 2015 10:30:53 +0200 [thread overview]
Message-ID: <551CFE3D.5030407@vmware.com> (raw)
In-Reply-To: <CAFNex=B4=oz0M8UZ9MT=rRcNuJein2fd804RvqwrpxENP5i44Q@mail.gmail.com>
On 11/25/2014 02:08 AM, Zachary Reizner wrote:
> After looking into removing platform_device, I found that using
> dma_buf_attach with a NULL device always returns an error, thereby
> preventing me from using VGEM for import and mmap. The solution seems
> to be to skip using dma_buf_attach, and instead use dma_buf_mmap when
> user-space tries to mmap a gem object that was imported into VGEM. The
> drawback to this approach is that most drivers stub their
> dma_buf_ops->mmap implementation. Presumably mmap could be implemented
> for the drivers that this would make sense for. Are there any
> comments, questions, or concerns for this proposed solution?
I see now that this driver has entered -next, and I'm sorry this comment
didn't arrive before. I simply missed this discussion :(
My biggest concern, as stated many many times before, is that dma-buf
mmap is a horrible interface for incoherent drivers, and for drivers
that use odd format (tiled) dma-bufs, basically since it doesn't supply
a dirtied region. Therefore (correct me if I'm wrong) there has been an
agreement that for purposes outside of ARM SOC, we should simply not
implement dma-buf mmap for other uses than for internal driver use.
So assume a real driver implements dma-buf mmap, but it is crawling due
to coherency- or untiling / tiling operations. How do you tell a generic
user of the vgem driver *NOT* to mmap for performance reasons? Or is
this driver only intended for ARM SOC systems?
Thanks,
Thomas
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-04-02 8:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 0:26 [PATCH] drm/vgem: implement virtual GEM Zach Reizner
2014-11-21 8:17 ` Daniel Vetter
2014-11-21 14:02 ` Adam Jackson
2014-11-21 18:45 ` Zachary Reizner
2014-11-25 1:08 ` Zachary Reizner
2015-04-02 8:30 ` Thomas Hellstrom [this message]
2015-05-21 9:13 ` Daniel Vetter
2015-05-21 13:49 ` Thomas Hellstrom
2015-05-21 14:19 ` Rob Clark
2015-05-21 14:26 ` Thomas Hellstrom
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=551CFE3D.5030407@vmware.com \
--to=thellstrom@vmware.com \
--cc=airlied@redhat.com \
--cc=ben@bwidawsk.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=marcheu@chromium.org \
--cc=zachr@google.com \
/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