All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Alexis Berlemont <alexis.berlemont@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Command code working with comedi not working	with analogy
Date: Wed, 12 Oct 2011 00:21:48 +0200	[thread overview]
Message-ID: <4E94C17C.2080702@domain.hid> (raw)
In-Reply-To: <CAMesUR5PsVLb16ZR1bdcbDWdUfvPxViPng+rD7mjQqy1q+OGfA@mail.gmail.com>

On 10/12/2011 12:12 AM, Alexis Berlemont wrote:
> The methods are not the same at that level:
> - comedi: n * dma_alloc_coherent  + a vmap at the end
> - analogy:  a big vmalloc + n * page_to_phys(vmalloc_to_page(vaddr)

I do not know if that makes a difference, but the result of
dma_alloc_coherent is memory physically contiguous, whereas it is not
the case for memory returned by vmalloc.

dma_alloc_coherent also allows the GFP_DMA32 flag if you want 32 bits
memory.

-- 
                                                                Gilles.


  reply	other threads:[~2011-10-11 22:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27 18:55 [Xenomai-help] Command code working with comedi not working with analogy Fernando Herrero Carrón
2011-09-27 21:02 ` Gilles Chanteperdrix
2011-09-28  7:33 ` Julien Delange
2011-09-28 15:19   ` Fernando Herrero Carrón
2011-09-29 19:57     ` Fernando Herrero Carrón
2011-09-29 22:16       ` Alexis Berlemont
2011-10-03 21:41         ` Fernando Herrero Carrón
2011-10-04 20:29           ` Fernando Herrero Carrón
2011-10-05 21:16             ` Alexis Berlemont
2011-10-05 23:06               ` Fernando Herrero Carrón
2011-10-06 18:49                 ` Fernando Herrero Carrón
2011-10-06 21:31                   ` Alexis Berlemont
2011-10-06 22:18                     ` Fernando Herrero Carrón
2011-10-07 22:06                       ` Alexis Berlemont
2011-10-10 15:27                         ` Fernando Herrero Carrón
2011-10-11 22:12                           ` Alexis Berlemont
2011-10-11 22:21                             ` Gilles Chanteperdrix [this message]
2011-10-11 23:08                               ` Alexis Berlemont
2011-10-12 16:00                             ` Fernando Herrero Carrón
2011-10-12 19:13                             ` Fernando Herrero Carrón
2011-09-28 15:37   ` Fernando Herrero Carrón

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=4E94C17C.2080702@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=alexis.berlemont@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.