Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp256643iog; Fri, 17 Jun 2022 03:05:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDt0BVs/FAAKNaqaTpH0w+T/zB55avCQUYXmhmf3u1Q7Ki3umsTQYyXb599WlV9SVufq2X X-Received: by 2002:a17:906:20c6:b0:718:cc95:ccaf with SMTP id c6-20020a17090620c600b00718cc95ccafmr8496474ejc.714.1655460329746; Fri, 17 Jun 2022 03:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655460329; cv=none; d=google.com; s=arc-20160816; b=oWN+nMc95sehHwyD6fIElXR7ICTJsCKlWxUrZm2p/dI1btvJfmTnBgGoi8MhWskpkd 2ARZHVp3+Mcog6/9rQxJaIVx5L3D93BRJWA00u9nIpytmrFBfrriolEpov7AkcxyFWRg zLbbgqwzSRAtgrkTIwjAJeCWPhg//TlFqIGaWVqDq6hmnpazjUTcXPfaOVfTx9/WsbN2 hIh1zkJe51haVKfdSyxgumtCstyDDrk3vip/rpdaPkxPknlGfb+HYNosVBeQWJ+dLKIc 70BxUS93MAdoUay1xFQa+pEUNwkRgBuVqYKditdJqVCBwwMkOQHii1UMS5aC9Kcvu100 2lnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qxT2suDI9vyCLK6dmsnobv9Atx2bQu6/bUFxMK7nwvU=; b=V3NJxHhgHv7Zs3HXdlI50+bp3N3ljHw8GVdWb6NHAozrkPD2xv0iafa8Ji+zw+JjJy lEPBMJwRij0hUP1YpjS94Bxi5yEAPZuVx60Gt+Zlil2YGhBo64ey2XBUTbfKaakQXuUG njqGOJJvbyeQdQKNASlB9T3FwulVNKMS7P2MiPyCjcA6Dr9nJsrZ0SbMSvG3nNKYbnXO 2b1LjotLbQ+N6DSv54qMBP/SH6TM04CjKGA2j3LJKCDNqFncuxZHnoW50vDS27rsJySc Ji/oYnS9+Q+NtzRocGVPuavGZAKdCCGmJscGZip1Mh/6x6YLfFTicieM8RhIlT2668Y9 MsKw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a05640226cd00b0043169fcf02asi6004704edd.325.2022.06.17.03.04.49; Fri, 17 Jun 2022 03:05:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380496AbiFQJz5 (ORCPT + 99 others); Fri, 17 Jun 2022 05:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233978AbiFQJz4 (ORCPT ); Fri, 17 Jun 2022 05:55:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1AC4F4AE2C; Fri, 17 Jun 2022 02:55:55 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D5D4812FC; Fri, 17 Jun 2022 02:55:54 -0700 (PDT) Received: from ampere-altra-2-1.usa.Arm.com (ampere-altra-2-1.usa.arm.com [10.118.91.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 974FE3F73B; Fri, 17 Jun 2022 02:55:54 -0700 (PDT) From: Yoan Picchi To: Giovanni Cabiddu , Herbert Xu , "David S . Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andre Przywara , Ard Biesheuvel Subject: [PATCH 0/2] Crypto: Remove x86 dependency on QAT drivers Date: Fri, 17 Jun 2022 09:55:48 +0000 Message-Id: <20220617095548.436758-1-yoan.picchi@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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 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): 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(-) -- 2.25.1