Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1032328pxb; Fri, 15 Apr 2022 19:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUmfYmkeWvYf2wvkQ0LLTi8W1pHlOVq9FypUpV4pgl38L43zJGIUIyg3eGeSr7SNcJBn30 X-Received: by 2002:a17:902:bd4a:b0:158:9eb3:2ce3 with SMTP id b10-20020a170902bd4a00b001589eb32ce3mr1647375plx.55.1650074482783; Fri, 15 Apr 2022 19:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074482; cv=none; d=google.com; s=arc-20160816; b=GSBxCdY22L4NfEb2MkV8/b2e3ibGJmVtskjiC+vsWtbRgpDZekB3oPqZKPF7JDFo/n UoUl2mTTNj9xnActEQKxguI5++tK1XUC4WAOcZ6EDdDjHWVn2fv+awIxBYPH4TXn4p1z 1ePYMTS3aoFPS3lV2Z+1bzmd/TkcRpaxC1LJ557CpzrL/bXX810iWjsO5eYqYmfhF5K5 O08qxwtNZdFAwTaQHO8N+RiVeDFTdNzveyeJe0A/nULITCGN00BcUQV/twT8X2iV06sN Exq/8mlZnlcxQzYZhZzdkLUY9A8y3EpWKh3DlAzv0Z52XAjwsRWB/5XjAzfCTkBrku7s aFQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qmwd7Ml1U2/ENAvygM/VywUmESwnIUFCbwzWllVMCgk=; b=NUGB49/jf/VHxmzMvIoWBxYCttTtXv6QVuADrNK+0rXHYidQboYuTCkx7QCzDtcVOJ O9bKVmcldT6Bk9n9c7oeRKts6ApItNKiZZGluhESSWscNQqQveD6SnA4wWYOE9A2t1Kx Io49MKGpgoEpy7+swbyDPGoa6m42h1qzxSJPRgZLjKORvGKY/UV/HuabOC7B51rXHu2d dLPs4AKf/3fcqv1UZsakHQ/raf4Lyxy2H9tlTf9iPAann1QyoWEQO3Tz0vRT36U+sVzF zyrR3o76rPCPpF6fId6WEi1RmzpWXjUpOSSa8OEUJrnuSyYuXaS0o63+ADXqcWmyq3Yc M5Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id np12-20020a17090b4c4c00b001ce6da85d4csi3383537pjb.189.2022.04.15.19.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68A031C1E52; Fri, 15 Apr 2022 18:21:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238704AbiDOInH (ORCPT + 99 others); Fri, 15 Apr 2022 04:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351456AbiDOImk (ORCPT ); Fri, 15 Apr 2022 04:42:40 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 717598EB6B; Fri, 15 Apr 2022 01:40:04 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nfHUc-003EXs-Lt; Fri, 15 Apr 2022 18:39:52 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 15 Apr 2022 16:39:50 +0800 Date: Fri, 15 Apr 2022 16:39:50 +0800 From: Herbert Xu To: Robin Murphy Cc: giovanni.cabiddu@intel.com, davem@davemloft.net, qat-linux@intel.com, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: qat - stop using iommu_present() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Apr 05, 2022 at 01:25:11PM +0100, Robin Murphy wrote: > Even if an IOMMU might be present for some PCI segment in the system, > that doesn't necessarily mean it provides translation for the device > we care about. Replace iommu_present() with a more appropriate check. > > Signed-off-by: Robin Murphy > --- > drivers/crypto/qat/qat_common/adf_sriov.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt