Skip to content

ARM: mvebu: mvebu-mbus and I/O coherency fixes

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] ARM: mvebu: mvebu-mbus and I/O coherency fixes
Quoted 9 lines · Thomas Petazzoni

We will indeed need to do more extensive testing and review. However, I don't agree that this should prevent this patch from going to stable:
the current situation in the kernel (and also past kernels) is known to be broken: DMA coherent mappings allocated by dma_alloc_coherent() are *not* coherent in the current situation. Writes made by the device to the memory are not guaranteed to be immediately visible to the CPU, unless an explicit I/O sync barrier is done, which obviously is never done for DMA coherent mappings since those are assumed by Linux to be coherent, and therefore not require any cache maintenance operation.

That's actually an incorrect statement.

On all ARMv6+ where DMA coherent memory is "normal memory, non-cached, write combine" but because it's "normal memory", memory barriers are required. This is why we have the memory barriers in readl() and writel().

Remember, DMA coherent memory is about avoiding effects from caching, not about avoiding weakly ordered memory effects.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.