[RFC 0/3] How to pass IOMMU map attr via DMA API?
Joerg Roedel
joro at 8bytes.org
Mon Jun 24 03:21:28 EDT 2013
On Mon, Jun 24, 2013 at 08:17:59AM +0300, Hiroshi Doyu wrote:
> Ok, thanks. One more question, IOMMU H/W sometimes supports more
> platform specific attributes than READ/WRITE. For example, in OMAP,
>
> #define IOMMU_FLAG (IOVMF_ENDIAN_LITTLE | IOVMF_ELSZ_8)
>
> Is there any way to deal with those platform specific attrs from DMA
> mapping API POV?
Depends on the kind of flag and whether you want to make it changeable
from the DMA-API. The AMD IOMMU for example has a flag in the
page-tables to force PCI DMA coherency. This is always set by the
driver.
For other parameters that should be changeable and don't fit into the
dma_direction parameter in some way the use of dma_attr would make
sense.
Joerg
More information about the linux-arm-kernel
mailing list