Is it needed to zero out the dma buffer for DMA_ATTR_NO_KERNEL_MAPPING

Marek Szyprowski m.szyprowski at samsung.com
Fri Sep 4 05:10:46 EDT 2020


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




More information about the Linux-nvme mailing list