From: Timur Tabi <ti...@codeaurora.org> Date: Thu, 12 Oct 2017 09:13:25 -0500
> On 10/12/17 4:30 AM, David Laight wrote: >> Isn't the memory allocated by a single kzalloc() call? > > dma_alloc_coherenent, actually. > >> IIRC that guarantees it doesn't cross a power or 2 boundary less than >> the size. > > I'm pretty sure that kzalloc does not make that guarantee, and I don't > think dma_alloc_coherent does either. Both make that guarantee, even when an IOMMU is used.