usNIC requires Intel IOMMU to be present in order to function
correctly.  This patch adds a dependency on CONFIG_INTEL_IOMMU
of CONFIG_INFINIBAND_USNIC.  It also fixes iommu_domain_has_cap
not found error that is thrown if usNIC is built with !CONFIG_IOMMU_API.

Signed-off-by: Upinder Malhi <[email protected]>
---
 drivers/infiniband/hw/usnic/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/usnic/Kconfig 
b/drivers/infiniband/hw/usnic/Kconfig
index 0f14b6d..2cc8ba0 100644
--- a/drivers/infiniband/hw/usnic/Kconfig
+++ b/drivers/infiniband/hw/usnic/Kconfig
@@ -1,10 +1,9 @@
 config INFINIBAND_USNIC
        tristate "Verbs support for Cisco VIC"
-       depends on NETDEVICES && ETHERNET && PCI
+       depends on NETDEVICES && ETHERNET && PCI && INTEL_IOMMU
        select ENIC
        select NET_VENDOR_CISCO
        select PCI_IOV
-       select IOMMU_SUPPORT
        select INFINIBAND_USER_ACCESS
        ---help---
          This is a low-level driver for Cisco's Virtual Interface
-- 
1.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to