Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp823225imm; Mon, 1 Oct 2018 20:32:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV614R83bg8eOiGvV1rkHAr7IxCfC8sJ18r2HWcWUXi+CqELyAaedkzwlnA1IlKbAXSxnS3uS X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr14523033pfh.160.1538451141406; Mon, 01 Oct 2018 20:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538451141; cv=none; d=google.com; s=arc-20160816; b=1Ay7prBar8bOpV64udzKXF7ezKfUeoU/ZkH+S1xSCrJI6t4wzBaS25P6ExFhi6XKUB TzYxC4yL9hWjBPAAg8BKMBxYYT0PP6/0KQgf/qnPw07Z5Gc4afmQVHsv+yTMgEtTgyMV +TzTIRNuQDv7ML7xc27ch+NYMPmVARhztTz/R92UXjDV0pykZiU9RLU1xfyqGLFazFu8 0i+R9LCLwvaDNZiMJZDRLgHB+cK8QVQF8loCSlMMHjwwgoXWFzhGvSm7TKQlAcKZtiiV lldRTq/UHiXzXEPj0DjKyxxBQ2od9V7F42PEzG7owMZNCrWQcy9dRNRXamI9NpYOCMtj BkUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ep55F4KLIaHruniDThHFJbEZL89erzrCS4RRd4rXYTQ=; b=ar0C1BxWnNMQ1A+GdqRBw/oljw66TY9bkh91Wv20cUxLaIcxCHX+mX/nzR8CMZDZvx gzIN8qa8lpsohC7DqvD5b2oisi94RXr/4FacR2teqHLXcEQXhAS8k29FdySrynsJV6EK TGkBYfDI1XQRwiisTz4kHOHpnC0czN3ziNzCN4SgDe5JFeeigg9aVOPUpGs9E8tdq/Co UZa6sy+1NPYbe7GR1mrKKubrZ7RHFzeg1s0Q8gnCCC8RzKMpTQQBQ+YHIk4F6nz9qB7d AyeUMOSIOHaDuZnxa5LutZpSbTOBZ2wI6x/ReZpbC59ieMwO++hYaSCAQbyY3Bi88Dch oRQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=RSnx5yMc; 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 f8-v6si16247302pln.512.2018.10.01.20.32.07; Mon, 01 Oct 2018 20:32:21 -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=RSnx5yMc; 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 S1726890AbeJBKMx (ORCPT + 99 others); Tue, 2 Oct 2018 06:12:53 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:45245 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726854AbeJBKMx (ORCPT ); Tue, 2 Oct 2018 06:12:53 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id cf0a2c62; Tue, 2 Oct 2018 03:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=fYAcjMZps57+KOGwlbb7IWoHMvE=; b=RSnx5y Mc0P0EU99CbLn5ZSp6I02xkVQ3oDMPdEF6XQ7XKp5GvS4A2ACeCoeaVst5hbZpgN FnfzajiQpe60X24say5OyMZjMqkyXQ+6u8dm1buegdc0gh8EQAS5LbJDi2xMySZC HbtxQ88iZOcz08cmKtwWTYDm3nzHhkiGsy+0aqnbdg7EB/12iIKdN8efH0vfGWBh bXe9y+EaNzRqDWiaxKk/0sfgqW6ihaXlNpLPm4RWlNAdJrOljxE5UiDKj+Vm0O8o 34J5OaIG/Xk3mJ9LMGlpCMGebdw3HBzVqNoH1S9LBmpnhDXfZCS93aBPqEyLo3k9 3WdD8ctG1sux9EYg== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id fddd901f (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Tue, 2 Oct 2018 03:31:48 +0000 (UTC) Received: by mail-ot1-f41.google.com with SMTP id 36-v6so499048oth.11; Mon, 01 Oct 2018 20:31:48 -0700 (PDT) X-Gm-Message-State: ABuFfoiShLX6fJKKiJHMj0hgJ0YgBLcp5AM2IC3oVP45upLyIWFMXS3M Bhb/nr6nc46O6wZ+OImczObMc0QkupRnzy5V2hs= X-Received: by 2002:a9d:11f7:: with SMTP id y52-v6mr7916484oty.143.1538451107980; Mon, 01 Oct 2018 20:31:47 -0700 (PDT) MIME-Version: 1.0 References: <20180925145622.29959-22-Jason@zx2c4.com> <20181002032609.o5i2hmphuqtkqgc4@gondor.apana.org.au> In-Reply-To: <20181002032609.o5i2hmphuqtkqgc4@gondor.apana.org.au> From: "Jason A. Donenfeld" Date: Tue, 2 Oct 2018 05:31:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v6 21/23] crypto: port ChaCha20 to Zinc To: Herbert Xu Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson , Eric Biggers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Herbert, On Tue, Oct 2, 2018 at 5:26 AM Herbert Xu wrote: > Oh nice, so you did the conversion of the existing crypto code. > > I presume someone has done the numbers and verified that there > is no performance regression? > > If so it would be good to include those numbers somewhere in this > submission (within a patch description so that it goes into git). Indeed I've done a pretty ridiculous amount of benchmarking, and the x86_64 numbers are included in those commits because they're pretty straightforward to show. The performance is also better on arm1176,cortex-a7,8,9,15,53,73. On mips, as well, performance is better, since there wasn't any optimized code there at all. Early versions of this patchset included a regression on cortex-a7, which was particularly problematic because Eric Biggers recent fscrypt work requires fast chacha on that hardware, but this v6 (and the future v7) contain code that is faster on all platforms across the board. Regards, Jason