Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6834444rwb; Mon, 12 Dec 2022 07:02:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VBUqtvcxgeHeSkSPuiXA7+/IpxizI0pBlUXsfV4WW3Kkv7HAfwc1DRHFdx4QJ3bFcBTyN X-Received: by 2002:a17:902:eb83:b0:18e:4121:4b46 with SMTP id q3-20020a170902eb8300b0018e41214b46mr8070684plg.25.1670857336504; Mon, 12 Dec 2022 07:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670857336; cv=none; d=google.com; s=arc-20160816; b=ydCMdYiGWDCfv+ltyNlzqdSjPb0zFjDYYN068dfDxnxzReF/f9/penFC0a3Jd6FrWm gMaVVwJdrqyjaT6Kh6GeU8Hz6ejQ0JzbrsAtqQZiBdihMqD9eznKb5mWnf5Hht9XAXtb n0DR0xADi89wAeRS72MkUYEIGziBjC46xJHBQ7I8YalnE1b+qU2XsbOBDC74FXLk7TP/ I03K+wWTunc1IjmRhVvih8RkrPEt5sZWpeaX0A3bWWiuLI81mDz6tVRGUHmfvAGF6KbG 2VVqep00ypfAobNN09Mh/YSpxm8CU1W8qjIh/3dnJMs6LmhGXuO3QUiRRnyXlSfnUZNc rXTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=ZkshSWN8i5udtxboDcTyQQsoqg7vSKEwmPmy4VyG1hU=; b=bnenLYetlxopb6+cK98Zn3NPutppmSygUbMmBiHCRW6tqypkG5y5LhvzPB5a7M6/xH r/iRDkfoXS6NR1rEUQWcHZeiucrAS8XV5jYkQ3giC1ZTYqp2qo2mEJmzwY6TgP/sOL3x uD5n/r+TA6TtTtF9NFs+BcqSArASQid0dm9J3tVI+ZW3HOlW4lTd05Mo+6PDfGMGwarm pdXaotSG4tLJ7CgE1GvqcyvDRW+huM50EQlZ3QPPafBk4wHsDQaYKYzzD+OyEQxe9FjX cjVYu/4r9g8IuXU53mZKZnowvo7MHOIa32k5YLkl68+lGa+KSngSOC8EVoa6B8jA07Ej yrvg== 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=strongswan.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a170903110f00b00189e2b9e630si10321573plh.270.2022.12.12.07.01.55; Mon, 12 Dec 2022 07:02:16 -0800 (PST) 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=strongswan.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231770AbiLLOqA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Dec 2022 09:46:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbiLLOpl (ORCPT ); Mon, 12 Dec 2022 09:45:41 -0500 X-Greylist: delayed 471 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 12 Dec 2022 06:45:36 PST Received: from mail.codelabs.ch (mail.codelabs.ch [109.202.192.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FDF713CD6 for ; Mon, 12 Dec 2022 06:45:36 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.codelabs.ch (Postfix) with ESMTP id B96E9220002; Mon, 12 Dec 2022 15:37:42 +0100 (CET) Received: from mail.codelabs.ch ([127.0.0.1]) by localhost (fenrir.codelabs.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UvXraO4sfpgr; Mon, 12 Dec 2022 15:37:41 +0100 (CET) Received: from [10.6.32.204] (unknown [185.12.128.224]) by mail.codelabs.ch (Postfix) with ESMTPSA id 602B6220001; Mon, 12 Dec 2022 15:37:41 +0100 (CET) Message-ID: <60937acc8b143e552aa41a689c03febb1fd3729a.camel@strongswan.org> Subject: Re: [PATCH v2 0/2] ARM: allow kernel mode NEON in softirq context From: Martin Willi To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Cc: linux-crypto@vger.kernel.org, Linus Walleij , Arnd Bergmann Date: Mon, 12 Dec 2022 15:37:41 +0100 In-Reply-To: <20221207103936.2198407-1-ardb@kernel.org> References: <20221207103936.2198407-1-ardb@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,SPF_HELO_NONE, SPF_PASS 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 Hi Ard, > Currently on ARM, we only permit kernel mode NEON in task context [...] > For IPsec packet encryption involving highly performant crypto > implementations, this results in a substantial performance hit [...] Thanks for your continued work on this. > Without these changes, an IPsec tunnel from a 32-bit VM to the 64-bit > host can achieve a throughput of 9.5 MB/s TX and 11.9 MB/s RX. > > When the crypto algorithm is permitted to execute in softirq context, > the throughput increases to 16.5 MB/s TX and 41 MB/s RX. In my tests on an Armada 385, I could increase IPsec throughput with ChaCha20/Poly1305 on RX from ~230 to ~260 MBit/s when using the NEON code path. So you may add my: Tested-by: Martin Willi Thanks, Martin