numam-dpdk/lib/librte_eal
Alejandro Lucero d287e4d41b igb_uio: map dummy DMA forcing IOMMU domain attachment
For using a DPDK app when iommu is enabled, it requires to
add iommu=pt to the kernel command line. But using igb_uio driver
makes DMAR errors because the device has not an IOMMU domain.

Since kernel 3.15, iommu=pt requires to use the internal kernel
DMA API for attaching the device to the IOMMU 1:1 mapping, aka
si_domain. Previous versions did attach the device to that
domain when intel iommu notifier was called.

This is not a problem if the driver does later some call to the
DMA API because the mapping can be done then. But DPDK apps do
not use that DMA API at all.

Doing this dma map and unmap is harmless even when iommu is not
enabled at all.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2017-03-30 22:26:07 +02:00
..
bsdapp eal/bsd: query the cpu count only once 2017-03-27 23:56:58 +02:00
common vfio: support hotplug 2017-03-30 18:40:15 +02:00
linuxapp igb_uio: map dummy DMA forcing IOMMU domain attachment 2017-03-30 22:26:07 +02:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00