Re: Is it needed to zero out the dma buffer for DMA_ATTR_NO_KERNEL_MAPPING

From: Marek Szyprowski
Date: Fri Sep 04 2020 - 05:10:53 EST


Hi

On 04.09.2020 04:28, Hillf Danton wrote:
> Currently the DMA_ATTR_NO_KERNEL_MAPPING buffer allocated is not
> cleared while dma core always zero it out for coherent allocations.
>
> Is it making sense to do memset for the attr?

If it is not cleared then this is a bug. Please propose a patch fixing
this issue.

Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland