[PATCH] arm64: dma-mapping: always clear allocated buffers

Will Deacon will.deacon at arm.com
Thu Apr 23 07:28:17 PDT 2015


On Thu, Apr 23, 2015 at 12:46:16PM +0100, Marek Szyprowski wrote:
> Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha,
> ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures.

That's pretty compelling, even if it sucks. Maybe we could add a debug
option to poison DMA buffers if __GFP_ZERO isn't passed? It might help
others avoid the painful debugging experience you had...

Will



More information about the linux-arm-kernel mailing list