Re: DMA memory allocation/deallocation

2002-03-13 Thread Terry Lambert
Greg Johnson wrote: > Thanks for the reply Mark, I tracked my problem down. In > 'bus_dmamem_alloc', 'contigmalloc' is used if the size is > greater than PAGE_SIZE. However, in 'bus_dmamem_free' > the same PAGE_SIZE check is performed, but nothing is > done for the case where the size is greater t

Re: DMA memory allocation/deallocation

2002-03-13 Thread mark tinguely
> Thanks for the reply Mark, I tracked my problem down. In > 'bus_dmamem_alloc', 'contigmalloc' is used if the size is > greater than PAGE_SIZE. However, in 'bus_dmamem_free' > the same PAGE_SIZE check is performed, but nothing is > done for the case where the size is greater than PAGE_SIZE.

Re: DMA memory allocation/deallocation

2002-03-13 Thread Greg Johnson
Thanks for the reply Mark, I tracked my problem down. In 'bus_dmamem_alloc', 'contigmalloc' is used if the size is greater than PAGE_SIZE. However, in 'bus_dmamem_free' the same PAGE_SIZE check is performed, but nothing is done for the case where the size is greater than PAGE_SIZE. So I then call

Re: DMA memory allocation/deallocation

2002-03-13 Thread mark tinguely
> I am having some memory allocation woes in my FreeBSD kernel > device driver. I allocate DMAable memory with something like: > > retval = bus_dma_tag_create ... > (1 << 20), > 1, > (1 << 20), ... > which seems to succeed/work. But when I attempt to release the

DMA memory allocation/deallocation

2002-03-12 Thread Greg Johnson
Hi there FreeBSD guys, I am having some memory allocation woes in my FreeBSD kernel device driver. I allocate DMAable memory with something like: retval = bus_dma_tag_create ( NULL, 4, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL,