2020-09-04 09:11:58

by Marek Szyprowski

[permalink] [raw]
Subject: Re: Is it needed to zero out the dma buffer for DMA_ATTR_NO_KERNEL_MAPPING

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