From: Timur Tabi > Sent: 12 October 2017 15:13 > 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.
dma_alloc_coherent() definitely does. And I've a driver that relies on it (for 16k blocks). David