[PATCH v2 07/17] ARM: dma-mapping: no need to clean overlapping cache lines on invalidate
Catalin Marinas
catalin.marinas at arm.com
Wed Nov 25 07:19:42 EST 2009
On Mon, 2009-11-23 at 13:38 +0000, Russell King - ARM Linux wrote:
> Since we now clean the DMA buffers on map,
Is this still valid with the latest patch you sent?
> there's no need to clean
> overlapping cache lines on invalidation anymore. (Note: the DMA API
> prohibits other data sharing the same cache line as a DMA buffer
> anyway.)
Why was this cleaning ever needed if the DMA API prohibits cache line
sharing?
Even if we do cleaning on map, having shared cache lines is broken since
you may do an invalidate on unmap but the shared cache line may have
been dirtied.
--
Catalin
More information about the linux-arm-kernel
mailing list