lkml.org 
[lkml]   [2006]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bugs in usb-skeleton.c??? :)
On Thu, Jul 13, 2006 at 05:10:20PM +0400, Sergej Pupykin wrote:
> >> Does kmalloc always allocate pages that can be used in DMA?
>
> AvdV> normally yes. HOWEVER....
>
> I use sh4 cpu...

on SH-4 traditionally the whole memory space is mapped all the
time, so any space returned by kmalloc is DMA-able.
(I don't know if this applies to the SH-4A core, too)

> AvdV> ..it is nicer to use the DMA allocation API (which internally may fall
> AvdV> back to kmalloc etc), while kmalloc may work, it can be quite slow in
> AvdV> how it's made to work. So it's just nicer to just use the DMA memory
> AvdV> allocators... (see Documentation/DMA-API.txt file for a description of
> AvdV> this)

agree

--
ml.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-13 16:27    [W:0.120 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site