Question about cacheline aligned memory for DMA transfers

From: Johannes Thoma
Date: Wed May 06 2015 - 07:40:12 EST


Dear list,

I am working on a memory corruption problem with a patched 2.6.21 kernel in the
USB driver. In order to better understand the problem I would like to ask how
current kernels handle the case where the same cacheline is used for a DMA-able
object and another object.

Does kmalloc return only memory that is cache line aligned? If not, do all
architectures handle cache line misalign
ed dma accesses correctly like the powerpc (although not yet in 2.6.21)
architecture does?

Thanks for any insights.

- Johannes

PS: Please CC me I am not on the list.
--
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/