From patchwork Tue Dec 17 16:48:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3362871 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 74F6D9F344 for ; Tue, 17 Dec 2013 16:58:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5700320381 for ; Tue, 17 Dec 2013 16:58:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32B942031C for ; Tue, 17 Dec 2013 16:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754872Ab3LQQ6c (ORCPT ); Tue, 17 Dec 2013 11:58:32 -0500 Received: from mtv-iport-1.cisco.com ([173.36.130.12]:63316 "EHLO mtv-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753814Ab3LQQ63 (ORCPT ); Tue, 17 Dec 2013 11:58:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1017; q=dns/txt; s=iport; t=1387299509; x=1388509109; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=iyIOSRbKPf1uJm16fO5tPjf3Swb33dmAV3Jtwzi39Bc=; b=V1arwe4QtPPcIic61g934wpfSAuobuJBhcrZ0LklEte+dRX1N7xHU9Om TvuJ11dD08JfwLPI5w0VBNcz5tbjbGj6nDxuMNLga5kdnFZ29oq0j1kl1 gIrp8hMEQvnIMr2C4XjWPxmsCM8m8xOx2vF+cHZZLCbo316cp0qBNuMbS c=; X-IronPort-AV: E=Sophos;i="4.95,502,1384300800"; d="scan'208";a="97555790" Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-1.cisco.com with ESMTP; 17 Dec 2013 16:49:03 +0000 Received: from sjc-savbu-bld03.cisco.com (sjc-savbu-bld03.cisco.com [171.71.188.58]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id rBHGn3O8021249; Tue, 17 Dec 2013 16:49:03 GMT Received: by sjc-savbu-bld03.cisco.com (Postfix, from userid 246720) id 970443F7DB; Tue, 17 Dec 2013 08:49:03 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org Cc: Upinder Malhi Subject: [PATCH for-next 3/9] IB/usnic: Make usNIC built depend on Intel IOMMU Date: Tue, 17 Dec 2013 08:48:31 -0800 Message-Id: <1387298917-7365-4-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.0-rc0 In-Reply-To: <1387298917-7365-1-git-send-email-umalhi@cisco.com> References: <1387298917-7365-1-git-send-email-umalhi@cisco.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/infiniband/hw/usnic/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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