[openib-general] [PATCH v4 2/7] IB/ipath - Implement new verbs DMA mapping functions

Or Gerlitz ogerlitz at voltaire.com
Sun Dec 10 01:21:17 PST 2006


Ralph Campbell wrote:
> This version of the patch fixes ipath_sg_dma_address() and
> updates the comments for ipath_dma.c as Or Gerlitz
> suggested.

> This patch implements the interposing DMA mapping functions to allow
> support for IOMMUs and remove the dependence on phys_to_virt() and
> bus_to_virt().

Ralph,

The patch seems ready modulo the resolution of whether you implement the 
addresses returned by the ipath ib_dma_map_xxx code as keys into a SW 
IOTLB (which means you return dma_address_t and not u64 but assign it 
ipath semantics) or choose a different path to follow (ie assume the 
problem exists only under the unsupported by ipath 32bit / high-mem 
config, do nothing, etc) - what ever you set with Roland.

Or.






More information about the general mailing list