Does kmalloc on MPC82xx work correctly with GFP_DMA?

Dan Malek dan at
Wed Oct 20 00:15:37 EST 2004

On Oct 19, 2004, at 4:36 AM, Conor McLoughlin wrote:

> If I look at where it is allocating the memory with kmalloc, it is
> in this area.

Oooops, sorry you are correct, I had vmalloc() on the brain
due to some debugging I was doing.

> Just because it works doesn't mean that there might not be a bug
> lurking there.

It works because the 82xx is cache coherent.  The MMU mapping
is irrelevant.  There is no bug here.  Just because people don't
understand how something works doesn't mean there is a bug
present.  On processors like the 8xx or 4xx that are not cache
coherent, this would be a bug unless cache management functions
are also called and the buffers are properly aligned to cache


	-- Dan

More information about the Linuxppc-embedded mailing list