powerpc/cell: Add DMA_ATTR_WEAK_ORDERING dma attribute and use in Cell IOMMU code
authorMark Nelson <markn@au1.ibm.com>
Fri, 18 Jul 2008 13:03:34 +0000 (23:03 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 Jul 2008 00:39:36 +0000 (10:39 +1000)
commit1ed6af73440c5ec920884bb800685a8cab4ce847
tree68a452bd8e9d07e9a28cef63ee3b72e0319635da
parent79e25bac124a7d1d7bf966f06dd9398a1b5f3d20
powerpc/cell: Add DMA_ATTR_WEAK_ORDERING dma attribute and use in Cell IOMMU code

Introduce a new dma attriblue DMA_ATTR_WEAK_ORDERING to use weak ordering
on DMA mappings in the Cell processor. Add the code to the Cell's IOMMU
implementation to use this code.

Dynamic mappings can be weakly or strongly ordered on an individual basis
but the fixed mapping has to be either completely strong or completely weak.
This is currently decided by a kernel boot option (pass iommu_fixed=weak
for a weakly ordered fixed linear mapping, strongly ordered is the default).

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Documentation/DMA-attributes.txt
arch/powerpc/platforms/cell/iommu.c
include/linux/dma-attrs.h