From patchwork Thu Sep 10 18:36:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tadeusz Struk X-Patchwork-Id: 7155301 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4E2349F326 for ; Thu, 10 Sep 2015 18:38:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7741F20870 for ; Thu, 10 Sep 2015 18:38:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87FE42085F for ; Thu, 10 Sep 2015 18:38:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859AbbIJSil (ORCPT ); Thu, 10 Sep 2015 14:38:41 -0400 Received: from mga03.intel.com ([134.134.136.65]:59515 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751981AbbIJSil (ORCPT ); Thu, 10 Sep 2015 14:38:41 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 10 Sep 2015 11:38:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,506,1437462000"; d="scan'208";a="801857379" Received: from tstruk-mobl1.jf.intel.com (HELO [127.0.1.1]) ([134.134.171.152]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2015 11:38:39 -0700 Subject: [PATCH] crypto: qat - don't check for iommu From: Tadeusz Struk To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, john.griffin@intel.com, qat-linux@intel.com, tadeusz.struk@intel.com Date: Thu, 10 Sep 2015 11:36:57 -0700 Message-ID: <20150910183657.26171.65960.stgit@tstruk-mobl1> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY 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 From: John Griffin In some cases we don't want iommu to be enabled but still we want enable VFs. Signed-off-by: John Griffin Signed-off-by: Tadeusz Struk --- drivers/crypto/qat/qat_common/adf_sriov.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" 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/crypto/qat/qat_common/adf_sriov.c b/drivers/crypto/qat/qat_common/adf_sriov.c index 2f77a4a..fb5a53d 100644 --- a/drivers/crypto/qat/qat_common/adf_sriov.c +++ b/drivers/crypto/qat/qat_common/adf_sriov.c @@ -245,9 +245,8 @@ int adf_sriov_configure(struct pci_dev *pdev, int numvfs) } if (!iommu_present(&pci_bus_type)) { - dev_err(&pdev->dev, - "IOMMU must be enabled for SR-IOV to work\n"); - return -EINVAL; + dev_warn(&pdev->dev, + "IOMMU should be enabled for SR-IOV to work correctly\n"); } if (accel_dev->pf.vf_info) {