Re: [PATCH 12/18] soc: qcom: ipa: immediate commands
From: Christoph Hellwig
Date: Mon May 20 2019 - 13:38:14 EST
On Mon, May 20, 2019 at 09:55:42AM -0500, Alex Elder wrote:
> On 5/20/19 9:50 AM, Arnd Bergmann wrote:
> > Ok, that sounds reasonable, yes. I'm not sure if
> > dma_alloc_coherent() guarantees zero-initialization
> > though, so if that is required, you may have to
> > add a memset().
> I had dma_zalloc_coherent() originally but I think
> Christoph Hellwig posted something recently that
> removed that function, because dma_alloc_coherent()
> always zeroes the underlying memory.
>
> +Christoph, who might be able to explain or confirm
dma_alloc_coherent always zeroes the returned memory, which
is why dma_zalloc_coherent has been removed.