Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp257392iog; Fri, 17 Jun 2022 03:06:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sl2m1iqKzpoN9zZtCvxF6gNRN5mS6fUStHfBlzia/N8AXiuIvXVVoVYu7beXyPC51lr0af X-Received: by 2002:a63:4c1d:0:b0:3fd:9833:cdd9 with SMTP id z29-20020a634c1d000000b003fd9833cdd9mr8582106pga.103.1655460376140; Fri, 17 Jun 2022 03:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655460376; cv=none; d=google.com; s=arc-20160816; b=Yfo3hKHXIGrHH4KYvWJ3Kr1gggoQ928OB3inVehW5JF3dBBNdCidaqFGbmeG5kntRu tCIhmoR678awD9RpuzSsCCsdN+PpmTwWCw/vSBgMBkJi4DNfWmCUZ2h9tMx1qTF5/R0w 1m7dIo+vCV/To6qIN6nJKq7LcSPQkQiUikCOUG7IF1PUC2M+OHycWgcxs2tU/csgMxlH n5sHoqmbWuIzl8ViITMqFYYEFnQqeXfehjAPV/FTBjswn1iZWjtXq1vF7UuOIUVPyPGc 6LVPg513F+vSMYlgFLKUBou+WS2FK8HGIzqm8NoBWrBgJtPDW0rjcDAmmsZPogKTR3NR UYhQ== 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=N8K+pe8Ldt9l8k+H2FV4gmmPp44m6lZua5Vk9ZsYM5k=; b=NCEegKxOhGcOL6D8+afflNpeWpLmRKijzR2AKezYqo6JdivueeTXCOT+dhOg4+udzf tcs4k40jllfi/yggXC1KVJPhCMuKnJ335ksmZA8RJW9deS+rE0wXyuhcVGYNael3l5FX nJ1T89RdclqITgkiNusukoBpqqAYJJH1tSc46XlHPIdNqf5ur0iCr3c+AweL+jIpx3PC kdXWVd8G9LLU5j6WEcPsdeTFRI7aqF0OJ2Igk0468Xudt7ZNkJr/KGstz4X9g2GEMhwh 7Q0d09a9pI8WdSDWCk4iwnFwrHAIQrx2UJlJsphYeHS8Vz5gNEqabfH5IE1wgKIejqiR Z2Kw== 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 np1-20020a17090b4c4100b001e0728a2a5csi6118686pjb.99.2022.06.17.03.05.58; Fri, 17 Jun 2022 03:06:16 -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 S1381031AbiFQJ7w (ORCPT + 99 others); Fri, 17 Jun 2022 05:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234702AbiFQJ7v (ORCPT ); Fri, 17 Jun 2022 05:59:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C2606517DE; Fri, 17 Jun 2022 02:59:50 -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 AC2D812FC; Fri, 17 Jun 2022 02:59:50 -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 6D4353F73B; Fri, 17 Jun 2022 02:59:50 -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 v3 0/2] crypto: qat - Remove x86 dependency on QAT drivers Date: Fri, 17 Jun 2022 09:59:43 +0000 Message-Id: <20220617095945.437601-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): 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(-) -- 2.25.1