]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: enable IOMMU pass through for be2net
authorCraig Hada <craig.hada@hp.com>
Sun, 21 Apr 2013 23:28:18 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2013 19:36:06 +0000 (15:36 -0400)
commit462d49c8d6d73683943f138cb131978af32e5c3d
tree2e43c920662b1427f84f3ed4663a7db77f1039fc
parent7807dc54420deff019a412909212449f92376c0d
be2net: enable IOMMU pass through for be2net

This patch sets the coherent DMA mask to 64-bit after the be2net driver has
been acknowledged that the system is 64-bit DMA capable. The coherent DMA
mask is examined by the Intel IOMMU driver to determine whether to allow
pass through context mapping for all devices. With this patch, the be2net
driver combined with be2net compatible hardware provides comparable
performance to the case where vt-d is disabled. The main use-case for this
change is to decrease the time necessary to copy virtual machine memory
during KVM live migration instantiations.

This patch was tested on a system that enables the IOMMU in non-coherent
mode. Two DMA remapper issues were encountered in the previous version and
both patches have been committed.
    commit f6af0cba92a8be38e9fe66c73884bce5860c17d6
    commit 36042fab6e41dbcb03a026c94117a5c49c1bab69

Signed-off-by: Craig Hada <craig.hada@hp.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c