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
> 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.
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
> 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
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,
5 matches
Mail list logo