Re: [RFC][PATCH] SPI subsystem

From: David Brownell
Date: Mon Oct 03 2005 - 10:40:43 EST


> I believe the issue is that you can't properly control the alignment
> to ensure that you don't inadvertantly dirty the cache lines
> corresponding with the memory you're performing DMA to/from.

That's a much better (== content-ful) explanation; thanks Russell.

Cache line sharing can indeed be a PITA ... and while it's an issue
that's not unique to DMA from the stack, it's something that's less
manageable there. Plus, DMA isn't always cache-coherent. Meaning
that for example DMA to the stack might bypass the cache and then
later be overwritten by flushing cached stack updates. (etc.)

- Dave

-
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/