DragonFly BSD
DragonFly kernel List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: bus_dmamem_alloc confusion


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 17 Oct 2004 14:04:41 +0200

On Fri, Oct 15, 2004 at 09:00:14PM -0700, Chuck Tuffli wrote:
> For a 4096 byte allocation the kva and
> bus address (b) were (a is the alignment)
> 
> Mem:  k=0xcc68f000 b=0x3c50000 a=0x1000

This is using the normal kernel slab allocator. The only think specialy
handled in bus_dmamem_alloc is that it is avoiding page crossing.

> 
> and for an 8096 byte allocation, the addresses come back
> 
> Mem:  k=0xcc6b4000 b=0x14000 a=0x2000

This is using contigmalloc, like all allocations over page size do.

How do you try to mmap the page?

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]