Re: Question about cacheline aligned memory for DMA transfers

From: Clemens Ladisch
Date: Thu May 07 2015 - 03:16:29 EST


Johannes Thoma wrote:
> Does kmalloc return only memory that is cache line aligned?

Yes.

> do all architectures handle cache line misalign ed dma accesses
> correctly?

x86 does. Most other architectures do not have DMA-coherent caches.


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/