Skip to contentSkip to conversation

Is it needed to zero out the dma buffer for DMA_ATTR_NO_KERNEL_MAPPING

DISCUSSION Hillf Danton 2 participants 2 messages Sep 4, 2020 NVMe

lore
Share & tools
lore
#1 lore raw

Hi

Quoted 4 lines · Hillf Danton

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

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland