Allocating uncached memory in 2.6.25(powerpc/440)

Roland Dreier rdreier at cisco.com
Sat Sep 20 08:09:35 EST 2008


 > basically, a block of contiguous memory is allocated. This block is
 > needed to set up some DMA descriptors, so it needs to be uncached, and
 > I thought this is what GFP_DMA flag is for.

No, GFP_DMA doesn't have that meaning.  To allocate uncached memory, use
dma_alloc_coherent().

 - R.


More information about the Linuxppc-embedded mailing list