Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp202147iog; Fri, 24 Jun 2022 02:17:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sWh+TG/OKqa13JIXlj9YG/LA0ZrAtRoYTST9j5gZ+29lUjW0nrGdnK6D9z+JPZnTcujFeP X-Received: by 2002:a17:907:7283:b0:722:e541:f157 with SMTP id dt3-20020a170907728300b00722e541f157mr12388040ejc.269.1656062274324; Fri, 24 Jun 2022 02:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656062274; cv=none; d=google.com; s=arc-20160816; b=gpvPtqBGPnO0iX0Hm7WHSpwjV+6HgrvxTfsvCMTGmSrsESTcOQwjvb7oNzLQZ7UrCv 19NYtS8nDWfOEzB/Zv62KVKgWB0J/9gGgGafNZe6vL7k7pg3PYI8WZ3EEV2I3v2Wq+Ov R71AdewrNUAJz1gWTli7ae2FdW+nzqHVz7JfS3Vl1QkLXsvN8P2v8Fm9LA4PdXzhFWiv W1Qfe+fSJK4u9LstnhB1Bxm9zshJicjfqCViJynsK56AA4jHs4p5tg/dCwLiZcVKu8ct g6Oxav5Y3rjN1ennfCso38JVGTLHx+LMSvdRvIC1yTEn60hgaXZI+u3U4ByGl3Hzli6U 7Crg== 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=j3gGdvmjSr46LKFYK1/3PyWFeYb+AjKIx0sNSHvAong=; b=DnNjNnjd5/gzsKtx8qV6JJSpjlICpMJqWhUbQ3p7NA9gYWe33ZBjFHrlyJFnoOJFwY QtW75qVky+aFq8UpJ4z2XkB4uYxoq209JTZAJXVqV8mAljJBi1rVQf+1gLBP+RY56nax 9UEWTbzeQ6dnzUxc+LM0UgtC+nQIZeSurh8D/BYlUBa18VMc0HI6tZ7wQ4I0RY9qHDPx 3OEJ/9TBKP9DFoC/PbbLoVZPGo0KJUFE0Bz0cANJ7+2LPPH+BY6F9rv2OB005HINKmaL RhfvaH1xk5IsVQkbv4REt9TU8fM2m9CQaQlxRsa6ms0oZKA6+/b+LS6HB5fmfwnC179b chcw== 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:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc37-20020a1709078a2500b0072632e5173esi1255085ejc.932.2022.06.24.02.17.29; Fri, 24 Jun 2022 02:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbiFXJPf (ORCPT + 99 others); Fri, 24 Jun 2022 05:15:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbiFXJPa (ORCPT ); Fri, 24 Jun 2022 05:15:30 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E12E156FBF; Fri, 24 Jun 2022 02:15:28 -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 1o4fPO-00Ai5b-Dq; Fri, 24 Jun 2022 19:15:24 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 24 Jun 2022 17:15:22 +0800 Date: Fri, 24 Jun 2022 17:15:22 +0800 From: Herbert Xu To: Yoan Picchi Cc: Giovanni Cabiddu , "David S . Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , Ard Biesheuvel Subject: Re: [PATCH v3 0/2] crypto: qat - Remove x86 dependency on QAT drivers Message-ID: References: <20220617095945.437601-1-yoan.picchi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220617095945.437601-1-yoan.picchi@arm.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Jun 17, 2022 at 09:59:43AM +0000, Yoan Picchi wrote: > The QAT acceleration card can be very helpfull for some tasks like dealing > with IPSEC but it is currently restricted to be used only on x86 machine. > Looking at the code we didn't see any reasons why those drivers might not > work on other architectures. We've successfully built all of them on x86, > arm64, arm32, mips64, powerpc64, riscv64 and sparc64. > > We also have tested the driver with an Intel Corporation C62x Chipset > QuickAssist Technology (rev 04) PCIe card on an arm64 server. After the numa > patch, it works with the AF_ALG crypto userland interface, allowing us to > encrypt some data with cbc for instance. We've also successfully created some > VF, bound them to DPDK, and used the card this way, thus showing some real > life usecases of x86 do work on arm64 too. > > Changelog v1 ... v2: > - Add COMPILE_TEST to Kconfig > > Changelog v2 ... v3: > - Add the Crypto tag to the commit header > > Andre Przywara (1): > crypto: qat - replace get_current_node() with numa_node_id() > > Yoan Picchi (1): > crypto: qat - Removes the x86 dependency on the QAT drivers > > drivers/crypto/qat/Kconfig | 14 +++++++------- > drivers/crypto/qat/qat_common/adf_common_drv.h | 5 ----- > drivers/crypto/qat/qat_common/qat_algs.c | 4 ++-- > drivers/crypto/qat/qat_common/qat_asym_algs.c | 4 ++-- > 4 files changed, 11 insertions(+), 16 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt