Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1999353imm; Thu, 20 Sep 2018 06:19:51 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdaoo3R8L7q//pmJY/I8T8NelmwsZkWylr839Yo296xO5XLiIVb98ssWW8qadD87w+55KnX+ X-Received: by 2002:a63:225f:: with SMTP id t31-v6mr36787114pgm.275.1537449591422; Thu, 20 Sep 2018 06:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537449591; cv=none; d=google.com; s=arc-20160816; b=uJ08bwRDAVyB5XCcKDK1Ttk9CdUi54N61l0UR4C4xSoIlonUb0siVMS0CRxlrf6Cu0 u32enN6j9wkCMab0DmLGDeZg+Sr1ZvN3HWXAamNyiVtjbmCPTzLqnNF657kFAi+fbGMX OQyT74DCila6UyJ0EPAikXzJMQ0pGo/bKdRka3cuom6Vy3V3xSgr0we+RG/S5v7geI7I IsLJR0UTuuGGsl1mBsOixLdM3OaXrnSvZXgcu8mbAdElDq1fk4Al2bFlATPDc3vge5Jo Kahae33k45eJpOiNvdRCzBU6qSMWNh6CiC8sAYQXhaGmQVhpxR+HKTu42zj4Wn6h1Uam 5l+Q== 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=qb8FhoRUiaD64YjeprXVz3QYpoiNZZ6oRT13r8imNYo=; b=Di03xndeuWDMWlh8z7CHM9zDhnDF3I3NLOSuEKXaBDJ6/JlojrZVy5PDKXf/r2rG4d QV6IXoGUZltgubtsk/I8SBCZDN8OQGSK0ark0HNQbOC+hhYf490etPDgOAoYZhjrrnb7 sukE5gsqOo4tGQHg6cMfiE89bsUa6vd2HJIHllBEQHJ48yqtgUmVYPvgcP83E/J0rTli RleImt9j0+38rDSOFGT7L7ZqV4clq4OdAYdb3Paz8lxIb2gm+vFoDibdw0Rxt9425eR5 QnCI94BGDiBoM9XjMiLIPfnKbIZ9qtCS0yUyopjx348E5BL1MYGcoIIiQ/o7EOyQ7lAt 9kHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=QDsoneKF; 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 v126-v6si23570149pgv.10.2018.09.20.06.19.34; Thu, 20 Sep 2018 06:19:51 -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=QDsoneKF; 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 S1732816AbeITTCv (ORCPT + 99 others); Thu, 20 Sep 2018 15:02:51 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:36031 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbeITTCt (ORCPT ); Thu, 20 Sep 2018 15:02:49 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 8386023d; Thu, 20 Sep 2018 13:01:31 +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=NHyiYwi6nEMe5Tx+fPvDHk4MCU8=; b=QDsone KF0pVH4UnGLf4z1hWZED+9kocErWsmVsP68iZ+UVucGKRBG6e6HnjgTjv1UPvgxB QHssaMyRWSoPz972xTzYAhFs1MEXC3gF3DMqawvPo9WzT0+54Z6bR0nSqE1giaqD 2qP9SjqWeohpw94BM8Suklnf1Jr7v5itNyx6/ICn/U3ss/JUBxyReFGe1aldEu3g wrhMjtlF9jHyrZAzUJbL2SottPkm8k/tjhg4Ipzo1R+IdXWgrxyNMsBc44g6ltpn y3X5nUrfQLz4AZ1FOFG8XQoPS18hruIWKXX58XPW/FSio6UDvlhxuJ64iWl9NtxD nOM7ygJBHOdKE+4Q== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 5657edc1 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Thu, 20 Sep 2018 13:01:30 +0000 (UTC) Received: by mail-ot1-f41.google.com with SMTP id v44-v6so9327083ote.13; Thu, 20 Sep 2018 06:19:18 -0700 (PDT) X-Gm-Message-State: APzg51B10gw9Q4aCxWBuKVgUOFqNdL2Fb6RZr2agYNXLCNvYKkX1GiWP H/M37/KrN7cLRHDZNo86tIF6PuufUqSpa48RSnI= X-Received: by 2002:a9d:56b6:: with SMTP id o51-v6mr20914677oth.393.1537449558024; Thu, 20 Sep 2018 06:19:18 -0700 (PDT) MIME-Version: 1.0 References: <20180918161646.19105-1-Jason@zx2c4.com> <20180918161646.19105-7-Jason@zx2c4.com> <20180918202549.ogfyunppxaha7sfu@pburton-laptop> In-Reply-To: <20180918202549.ogfyunppxaha7sfu@pburton-laptop> From: "Jason A. Donenfeld" Date: Thu, 20 Sep 2018 15:19:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v5 06/20] zinc: ChaCha20 MIPS32r2 implementation To: paul.burton@mips.com Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson , Ralf Baechle , jhogan@kernel.org, linux-mips@linux-mips.org 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 Paul, Thanks a bunch for the review. On Tue, Sep 18, 2018 at 10:25 PM Paul Burton wrote: > Should this be .set reorder? Nice catch. Fixed here: https://git.zx2c4.com/WireGuard/commit/?id=23d97fc333cf85dd07445a9d21a28cbef47c553c But then... > Even better - could we not just place the addiu before the bne & drop > the .set noreorder, allowing the assembler to fill the delay slot with > the addiu? Likewise in many other places throughout the patch. > > That would be more future proof - particularly if we ever want to adjust > this for use with the nanoMIPS ISA which has no delay slots. It may also > allow the assembler the choice to use compact branches (ie. branches > without visible delay slots) when targeting MIPS32r6. I know neither of > these will currently build this code, but I think avoiding all the > noreorder blocks would be a nice cleanup just for the sake of > readability anyway. Great idea. Rene has committed that here: https://git.zx2c4.com/WireGuard/commit/?id=5c153a59ac3aa58a3ff17c69fee63d599e5f2758 These will be in the v6 patchset whenever that's posted, and it's already been merged into the dev tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/linux.git/log/?h=jd/wireguard Regards, Jason