From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: edgar.iglesias@xilinx.com, Russell King <linux@arm.linux.org.uk>,
michal.simek@xilinx.com,
virtualization <virtualization@lists.linux-foundation.org>,
j.wu@xilinx.com
Subject: Re: [RFC 4/4] rpmsg: DMA map sgs passed to virtio
Date: Tue, 23 Jun 2015 21:46:13 +1000 [thread overview]
Message-ID: <20150623114613.GM5149@toto> (raw)
In-Reply-To: <20150623071620-mutt-send-email-mst@redhat.com>
On Tue, Jun 23, 2015 at 07:17:44AM +0200, Michael S. Tsirkin wrote:
> On Sat, May 16, 2015 at 12:32:10PM +0300, Ohad Ben-Cohen wrote:
> > On Thu, May 7, 2015 at 3:28 AM, Edgar E. Iglesias
> > <edgar.iglesias@gmail.com> wrote:
> > >
> > > On Wed, May 06, 2015 at 03:51:48PM +0930, Rusty Russell wrote:
> > > > "Edgar E. Iglesias" <edgar.iglesias@gmail.com> writes:
> > > > > From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> > > > >
> > > > > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> > > >
> > > > First off, I have handed maintainership off to Michael S. Tsirkin, so
> > > > his word is now law.
> > > >
> > > > That said... there's nothing fundamentally *wrong* with this, but it's
> > > > not how standard virtio works. We decided some time ago that as we're
> > > > paravirtualized, we would not be doing address mapping.
> > > >
> > > > rpmsg uses virtio, but it's with a twist: they're not talking to a
> > > > host. Thus my preference, in order, would be:
> > > >
> > > > 1) Don't use non-kmalloc addresses.
> > > > 2) If that's not possible, call these _dma interfaces _rpmsg instead,
> > > > so normal virtio users don't get confused and try to use them.
> > >
> > > Thanks Rusty,
> > >
> > > That was helpful, I'll see if I can do something in line with nr 2.
> > >
> > > AFAICT, #1 will be hard. The remote-processor would have to be
> > > cache-coherent and share memory address-space view with the master
> > > CPU. This is not the common case for remoteproc (unlike when virtio
> > > communication flows between host and guest on the same CPU or SMP system).
> > > Ohad, do you have any thoughts on this?
> >
> > rpmsg is allocating a large chunk (256KB) of physically-contiguous CMA
> > memory today, which is exposed via the dma_alloc_coherent API (and set
> > up in advance by platform-specific code), so if #2 above is
> > acceptable, it would be easier, yeah.
> >
> > Thanks,
> > Ohad.
>
> I'm thinking same as Rusty: I'd prefer 1 but if not possible, I can live
> with 2 above.
Thanks all for the feedback,
I'm currently travelling and won't be doing much coding until
august/september. We are using something along the lines of nr 2 at
Xilinx and it's working fine. I'll post something like that in
september if no one beats me to it.
Best regards,
Edgar
prev parent reply other threads:[~2015-06-23 11:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-01 5:01 [RFC 0/4] rpmsg: Fix init of DMA:able virtqueues Edgar E. Iglesias
2015-05-01 5:01 ` [RFC 1/4] virtio_ring: Break out vring descriptor setup code Edgar E. Iglesias
2015-05-01 5:01 ` [RFC 2/4] virtio_ring: Add option for DMA mapped sgs in virtqueue_add Edgar E. Iglesias
2015-05-01 5:01 ` [RFC 3/4] virtio: Add dma variants of virtqueue_add_in and outbuf Edgar E. Iglesias
2015-05-01 5:01 ` [RFC 4/4] rpmsg: DMA map sgs passed to virtio Edgar E. Iglesias
2015-05-06 6:21 ` Rusty Russell
2015-05-07 0:28 ` Edgar E. Iglesias
2015-05-16 9:32 ` Ohad Ben-Cohen
2015-06-23 5:17 ` Michael S. Tsirkin
2015-06-23 11:46 ` Edgar E. Iglesias [this message]
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=20150623114613.GM5149@toto \
--to=edgar.iglesias@gmail.com \
--cc=edgar.iglesias@xilinx.com \
--cc=j.wu@xilinx.com \
--cc=linux@arm.linux.org.uk \
--cc=michal.simek@xilinx.com \
--cc=mst@redhat.com \
--cc=virtualization@lists.linux-foundation.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