Skip to content

RFC How to pass IOMMU map attr via DMA API?

Joerg Roedel linux-arm-kernel linux-iommu linux-tegra 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 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 [RFC 0/3] How to pass IOMMU map attr via DMA API?
Quoted 7 lines · Hiroshi Doyu

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