Thread (74 messages) 74 messages, 7 authors, 2022-02-25

Re: [PATCH 22/22] mtd: rawnand: Use dma_alloc_noncoherent() for dma buffer

From: Christoph Hellwig <hch@lst.de>
Date: 2022-02-19 07:19:06
Also in: linux-crypto, linux-i2c, linux-mm, linux-s390, lkml

On Sat, Feb 19, 2022 at 08:52:21AM +0800, Baoquan He wrote:
Use dma_alloc_noncoherent() instead of directly allocating buffer
from kmalloc with GFP_DMA. DMA API will try to allocate buffer
depending on devices addressing limitation.
I think it would be better to still allocate the buffer at allocation
time and then just transfer ownership using dma_sync_single* in the I/O
path to avoid the GFP_ATOMIC allocation.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help