From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4E94C17C.2080702@domain.hid> Date: Wed, 12 Oct 2011 00:21:48 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Command code working with comedi not working with analogy List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexis Berlemont Cc: Xenomai help 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.