Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp782314imm; Fri, 5 Oct 2018 11:40:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LxPYhHzQ1EBqJVUo2qYTrXLcARvqG4/COcH3bL0OKw/mNFQO9FLmLxyQxVUcqZAqlvFRI X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr12642136plb.91.1538764830660; Fri, 05 Oct 2018 11:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538764830; cv=none; d=google.com; s=arc-20160816; b=hrqsS1/XIPL0IWgCeUw1wWibS5dO7x059cpLX1L7Ewj3xgglGChL840xyBf2m36aKK b5eOSYu0nl8h76to2y6mISH4xBy6WIFbiWu/kmyQD/1oV1BCja2jRRHr0MvAr357fN/A ZS/z1KOEiD0z+786/3hcL0hHscDD/Ydcp0hCSwUqmGLtznMeFu2PNpa2FFYETSATR+Ga KXkAnxQLyOt/QAtJuLgn4Uk75cu3hWBW8kEihIk5Yq7vsgdJ+FWL4Jmh2pw/4M1cPz9g J41MAH/DBxaGQnD7r+I9H8Q7kwslda90H7K7RSlFjc4WNew+mxiFL4+Ub1rtiIFL0CaX zwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=QQgv4Zl6jiUIrmJdKbVhqLTlCH/3YllNDFTAfZEdDPo=; b=L3nnc6BFxHfAjR0//n5+9/nF70hvSON3wRTNSqSU5ULytXucEj3HgKGNIb19d34s9W ECpvfXfMVms+wQHswfHlg6St19jMJYys6v9v4oScBfrF7UKnYjPUBOfWlM7obRtX+zHj /LA84mb0obY01AWGtWLBx4jF7pZzJsw//BPZAE+uU6epSh4ZoD3507XRw4k+y2YFsArj ka+wuSzbqEHA3x11AWIMlxTUth/IcqI0WWf+O80ZJIfFcrPIN6GLaAol0BVNMinDzKVn gKOx3Z3S/KeArAtxH7NVW+TC4JDNrEeZMVsaWGrsWg1POa3woEKizYvVsZXmLNyPzCbz TBIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ZGjzMudV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca4-v6si10196363plb.406.2018.10.05.11.40.14; Fri, 05 Oct 2018 11:40:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ZGjzMudV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728879AbeJFBkE (ORCPT + 99 others); Fri, 5 Oct 2018 21:40:04 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:59661 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbeJFBkE (ORCPT ); Fri, 5 Oct 2018 21:40:04 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id d7db8103; Fri, 5 Oct 2018 18:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to; s=mail; bh=0KK8ySgqtXWyvI77mHHL3ERXrcc=; b=ZGjzMud Vv4oGKEzO3oQm9zMYhT3EsK0cDFbNzgm7/BJRGPnw0YgZZSZxVHSRRZtQsRurzxG rlj0+VO/yGDsGXmkdvnD2q2LZQW065l89X3fwXFXzyFL/kdWkJ/bm5w05Vim0rkg f0U3R7XVTaUpxAKWWUF767eTkW+Se3WYFCWBVtwfloSfWtHYo8Dwip/BXI/sIPYe R3m5bRMF+GQ6hiYLm4Ckjs+xOAM5dviXnl5zjlwxS/eAFizLi9xxIAbX+vAZ074B trxnnCcLtM2M+PAAh6PPnkdn9vkxfE4hCeZSuAGfTlIujl+DGZQ6sJfvZx9J+sRN YPEAhIgt3P4mA8w== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4e134b1f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 5 Oct 2018 18:39:39 +0000 (UTC) Date: Fri, 5 Oct 2018 20:40:03 +0200 From: "Jason A. Donenfeld" To: ard.biesheuvel@linaro.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, sneves@dei.uc.pt, luto@kernel.org, jeanphilippe.aumasson@gmail.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, peter@cryptojedi.org, djb@cr.yp.to Subject: Re: [PATCH net-next v6 19/23] zinc: Curve25519 ARM implementation Message-ID: <20181005184001.GA10106@zx2c4.com> References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-20-Jason@zx2c4.com> <20181005150538.17006.qmail@cr.yp.to> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <20181005150538.17006.qmail@cr.yp.to> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hey Dan, On Fri, Oct 05, 2018 at 03:05:38PM -0000, D. J. Bernstein wrote: > Of course, there are other ARM microarchitectures, and there are many > cases where different microarchitectures prefer different optimizations. > The kernel already has boot-time benchmarks for different optimizations > for raid6, and should do the same for crypto code, so that implementors > can focus on each microarchitecture separately rather than living in the > barbaric world of having to choose which CPUs to favor. I've been playing a bit with some code to do this sort of thing, choosing a set of implementations to enable or disable by trying all the combinations, and then calculating a quick median. I don't know if I'll submit that for the initial merge of this patchset -- and in fact all the current implementations I'm proposing are pretty much okay on microarchitectures -- but down the line this could be useful as a mechanism. Jason --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEq5lC5tSkz8NBJiCnSfxwEqXeA64FAlu3r/8ACgkQSfxwEqXe A64NZRAAxHqb5/Z9ObOwhJ6OLx/HnHRBt35TCF7ZOS6CtnOwHr7KYFeWdny4GUvF saghZ8OkUK9g7DVDzDDFOsTtFAjBqrZiqrL7eQAlNszz8Ru2ijsUUqXrgzC2Ikms FDMCZqkbIwHLon/8UelYHz/MW1MgId+HVMjhNzxleE3fdMhgLwGmRkiUMHmBUMBG Xuvljbqfl2Y0jgytW6Np+GeIMHqbWPQjcbsk3lfIsfwAsMcCeA063nlf6f5uVM8Y l+bDhSm2oB9laOXZJc6fl5e+J1TMIQIlpGldXBhHXZU5JrRWr5XnVIbGQYQ3DXSf 2GVdf+Mo0AgkqoMXqIOd07k65dFXDyui0PG0oypxknKRG1d7+Gke8avIOVME+UrK aWGPA74qubEfVzV492wbKrpYhiaeV+VL7qi/4+FP76pRwUFC2KloAi3NFotFXDCA VFzlECZ8H3Ryla+ZnHA7mAJHsIuBZXYqMQScoHUG1zbSg6a8bjUt1gTdAO/vkVvc WZXpewhL23FLOR0C3/J2dkoRdBh3iKb/xG129w9PoA3/v52cCnKe760ZD7TpwSh2 toG7zwJMssriYB+GTvFV1om6Rli+dAP1o9OvqTW8IUA2r3BYJrmVLtKsSIQ1RDjJ M++c1/sfq3ca2bNkoZjFahmNEwP+dMhCcNGXO9RKpYRHzm1agBo= =yJNa -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--