Re: dma_alloc_coherent fails

From: Russell King
Date: Fri Jun 01 2007 - 17:31:55 EST


On Fri, Jun 01, 2007 at 10:16:41PM +0530, Maximus wrote:
> Hi,
> Am using a linux 2.6.19 kernel for arm. the dma_alloc_coherent
> function call in the kernel for 38400 bytes fails.
>
> Has anyone faced this problem before?.
>
> What could be make dma_alloc_coherent to success sometimes and fail
> sometimes?.

Memory fragmentation. Large allocations (> 1 page) are always unreliable.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/