[Cbe-oss-dev] [patch 9/9] powerpc/cell: Add DMA_ATTR_STRONG_ORDERING dma attribute and use in IOMMU code

Arnd Bergmann arnd at arndb.de
Wed Jul 16 17:54:03 EST 2008


On Wednesday 16 July 2008, Roland Dreier wrote:
>  > Strong ordering is only active when both the bridge and the IOMMU enable
>  > it, but for correctly written drivers, this only results in a slowdown.
> 
> So when would someone use this dma attribute?  As a hack to fix drivers
> where the real fix is too complicated?

This is used in the Axon PCIe endpoint drivers, e.g. in the Roadrunner
machine. The reason was to improve roundtrip latency by doing only
mmio stores, not loads, on each side of the PCIe connection, which
turn into posted DMA operations on the other end. With relaxed ordering,
the posted writes may be observed out of order. Strong ordering makes
sure they arrive in-order without having to do a non-posted mmio read
or eieio operation on the receiver side.

	Arnd <><



More information about the cbe-oss-dev mailing list