Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1648477pxb; Mon, 8 Mar 2021 02:59:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLgyieKmruFX1OisM2a4+1O0ntbHT2Idd0RXmza7y/xS/eFMvzqyjVFkZAiOHv+E77xWFl X-Received: by 2002:a05:6402:350f:: with SMTP id b15mr21428503edd.6.1615201194892; Mon, 08 Mar 2021 02:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615201194; cv=none; d=google.com; s=arc-20160816; b=IHXQLHTyT2bOS0iLTvFnUUXGFe+00zq2rn5NDnJd3hPzii8pRE0Zn+ReYbAyXlWOzE x44ExAkYVbUfGhS+I9xGaJsIvBC3u8q8UmikR/Kldp5iVCeQ0sqfQ8de1djMay0+n7ZK b721JomrAsClRm4Pqt1YHHQPgF2UNLG0TiHkqKcAse0+cdhXiCNmGQFIg2s01cJ9c/8N Ji97t8so0MNHedsLcUPNTe2aRxGRrBG+CaeEFcOXgIidp2juq5PQwGMWAq3yAvS2m94f 72ecfsFe9K/+3cxBR89BILM1JsLQbMvmKWZESZEqjgjKXUPwbo5L5qWZHwswLmJJskXZ 3a1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6NUVUWVGAWeWchTVUUzzK2du8qMbVm73nkNa5ZlvVek=; b=u4dBO4HSuiUAbdMOG5/Qzh95ZjQuwIdKrdSga7UUgOkUtNmt193xx1ShpD5T8hcqzi OY9+vhpb2j6oNAhBLDGBzZ7dKyAsISX+W3VGbyAKabiIhq38Xb1fecb8EcpIkLe41AN4 6JLJIE368hZ+roNx5aJLpmL+E3KSVjmSN89cxxlXQvhcLJxRTG1DC8Y/aw5NunQfs9yu JFQ3Nm3kIX0lXZsvo2p7pdS0rzyp4koQMn9VgILhJCZEBgfgH62bwpH3jY9kmAVKaFsX 7Ie05ca+XaxnTwSMNxLf73k6MhdhUdiPT8a7GKd1uxexCmTAXZ4ptfiJDxUoq0GsmGel EqBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si6639936ejy.441.2021.03.08.02.59.31; Mon, 08 Mar 2021 02:59:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbhCHK4Y (ORCPT + 99 others); Mon, 8 Mar 2021 05:56:24 -0500 Received: from elvis.franken.de ([193.175.24.41]:57506 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbhCHK4G (ORCPT ); Mon, 8 Mar 2021 05:56:06 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lJDYR-0003M5-01; Mon, 08 Mar 2021 11:56:03 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id D599DC12B6; Mon, 8 Mar 2021 11:54:37 +0100 (CET) Date: Mon, 8 Mar 2021 11:54:37 +0100 From: Thomas Bogendoerfer To: "Maciej W. Rozycki" Cc: "Jason A. Donenfeld" , "open list:BROADCOM NVRAM DRIVER" , LKML , Ralf Baechle , George Cherian , Huacai Chen , Jiaxun Yang , stable@vger.kernel.org Subject: Re: [PATCH] crypto: mips/poly1305 - enable for all MIPS processors Message-ID: <20210308105437.GB6622@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 02:16:04AM +0100, Maciej W. Rozycki wrote: > The MIPS Poly1305 implementation is generic MIPS code written such as to > support down to the original MIPS I and MIPS III ISA for the 32-bit and > 64-bit variant respectively. Lift the current limitation then to enable > code for MIPSr1 ISA or newer processors only and have it available for > all MIPS processors. > > Signed-off-by: Maciej W. Rozycki > Fixes: a11d055e7a64 ("crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation") > Cc: stable@vger.kernel.org # v5.5+ > --- > On Wed, 3 Mar 2021, Jason A. Donenfeld wrote: > > > >> Would you mind sending this for 5.12 in an rc at some point, rather > > >> than waiting for 5.13? I'd like to see this backported to 5.10 and 5.4 > > >> for OpenWRT. > > > > > > why is this so important for OpenWRT ? Just to select CRYPTO_POLY1305_MIPS > > > ? > > > > Yes. The performance boost on Octeon is significant for WireGuard users. > > But that's the wrong fix for that purpose. I've skimmed over that module > and there's nothing MIPS64-specific there. In fact it's plain generic > MIPS assembly, with some R2 optimisations enabled where applicable but not > necessary (and then R6 tweaks, but that's irrelevant here). > > As a matter of interest I have just built it successfully for a MIPS I > DECstation configuration: > > $ file arch/mips/crypto/poly1305-mips.ko > arch/mips/crypto/poly1305-mips.ko: ELF 32-bit LSB relocatable, MIPS, MIPS-I version 1 (SYSV), BuildID[sha1]=d36384d94f60ba7deff638ca8a24500120b45b56, not stripped > $ > > Patch included, please apply. > > So while your change is surely right, what you want is this really. > > Maciej > --- > arch/mips/crypto/Makefile | 4 ++-- > crypto/Kconfig | 2 +- > drivers/net/Kconfig | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]