Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3941972rdb; Thu, 14 Sep 2023 07:23:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTJs2asMRt2Vi1tTB3oelxhHOjd98KttA3GP15s4sOlWdVqGfgaoejsMcOx2WES4cTbEFV X-Received: by 2002:a17:903:2342:b0:1b3:ea47:796c with SMTP id c2-20020a170903234200b001b3ea47796cmr6369710plh.29.1694701393295; Thu, 14 Sep 2023 07:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694701393; cv=none; d=google.com; s=arc-20160816; b=qov5B4Jk5KQ6ATVJpJx4lH4WBmTpH717Bf+1NXQW4nhEakFRQk/T1tAAtd2ux/knY6 16JxxzhzrMLm4wSKWlEWYuhGgK8LMukOd6xzdA62Gy+vGdiFK+faxah7wt8UiL36VD7+ ExZ62bOHgY5NheJEgZi0fOWipvVURbd98cqTfSdN0zXp2X5S1VwchjCV6WfDLWJs2fqf JEJL4QV0MHWzDRs6ApdMgQLCaS9/sxWfzpVTFe2pupdJ9IjKdH+E3OW0eGwMR3rE9Ezc q+15FsJFDMq/LbblJUgLjhgCciZbjgvC9x654u7tAP0Xozxy4Dtt0tBdM53KYWMDptYK D9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SPQkcVLpDKs4yyjPNRvKfMmSBT6wwrDh/Dbnovgt3NA=; fh=F4+6XccBCJSVyNHQ09VbRco8eenSnLkpwnVDXrihfII=; b=X1qT5JTUcY1Atxt7p3DCnp3sp2qIlBGSAWYQIzDNsLLGtoN9yXwybuBY9dYCE9RAeF iriuX3s1bDsDQo4Bp02AUAJw+JdEwCu/nc2JOJ6f4PbH4q2NPrgV5fEZ+2JY9UYPi2Pp uZ3EhT0HtSBiLuNT5geWl2P3cE/UN3CejK6zsW4PM01diWZPC6BjJeU1IXjZyTAz+Gd4 b3Z+nJM8Hh2/CPT53k0SkzwhUthy8YKPwg29SAM40FmIfePNVZVj6LqAKp55OOpD3KA9 vDvVLJQDy5qXKR8Aoi9HhnjO1ifm5FWpu9x1Xo6MK8LATdzL1dpPT7pJx0fvuYVcfnyA uOkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SlSCX7kj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q8-20020a17090311c800b001bbbd9cd44bsi1914267plh.79.2023.09.14.07.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 07:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SlSCX7kj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E6ED782C2D24; Thu, 14 Sep 2023 05:49:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236954AbjINMts (ORCPT + 99 others); Thu, 14 Sep 2023 08:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbjINMtr (ORCPT ); Thu, 14 Sep 2023 08:49:47 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6531FCE; Thu, 14 Sep 2023 05:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1694695783; x=1726231783; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LRfBpQwUTjGaQOOdiF6bBmCasixiCE0wp/+lqjUvX04=; b=SlSCX7kjqkws70S5p0ZyLFbyRwWcZlCSRldB+cPx83IS4wjgtsPQWo8B mhga35cBC5uHW7M2H1moK7H4Vq9WWyNiWSowg2NosuZZoGHel703aba55 fKnX2e6/zrvJo7ZkWxWIi6TAmiJdBrZG15CLFOsgYgNDiswVc9uMe9Ipw 7XimtYq+QeJEh6UlyxvQIi0VWVMuqTIzj72lyXmjDljnnbK/CTb/lQMAV P+N4QiZW0I8xjk3ipQiWIwTmZ3a3UJcyFwP/ynlP742btDZef1daL+rYH KUM3+JMQogJs90MWBtSLwq262hQIyGCxVUyPIG0P8/zvG6Qfz7zVg+A2H w==; X-CSE-ConnectionGUID: 7fr+3FzBQc6WGlJNPeDc1g== X-CSE-MsgGUID: ZKQIl3KrR2SbqKioEFS7OQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="asc'?scan'208";a="4641672" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 Sep 2023 05:49:42 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 14 Sep 2023 05:49:33 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 14 Sep 2023 05:49:30 -0700 Date: Thu, 14 Sep 2023 13:49:14 +0100 From: Conor Dooley To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , , Andy Chiu , Greentime Hu , "Jason A . Donenfeld" , Samuel Neves , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Heiko Stuebner , Herbert Xu , "David S. Miller" , , Subject: Re: [RFC PATCH 0/6] RISC-V BLAKE2s Vector implementation Message-ID: <20230914-roaming-plunging-948c78d9831c@wendy> References: <20230912115728.172982-1-bjorn@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="byxUR448N23jzR+h" Content-Disposition: inline In-Reply-To: <20230912115728.172982-1-bjorn@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 05:49:46 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 lipwig.vger.email --byxUR448N23jzR+h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 12, 2023 at 01:57:22PM +0200, Bj=F6rn T=F6pel wrote: > From: Bj=F6rn T=F6pel >=20 > Hi, >=20 > This is Andy's kernel mode vector V2 series [1], with my BLAKE2s > AVX-512-to-RISC-V translation patch appended. >=20 > I've tagged it as RFC, since Andy's series is still not in-tree yet. >=20 > It's a first step towards a Vector aided Wireguard! ;-) This has the same problems as Andy's stuff & doesn't build properly for the automation. What is the plan between yourself and Andy for submitting a version of the in-kernel vector support that passes build testing? Cheers, Conor. >=20 >=20 > Cheers, > Bj=F6rn >=20 > [1] https://lore.kernel.org/linux-riscv/20230721112855.1006-1-andy.chiu@s= ifive.com/ >=20 > Andy Chiu (3): > riscv: sched: defer restoring Vector context for user > riscv: vector: do not pass task_struct into > riscv_v_vstate_{save,restore}() > riscv: vector: allow kernel-mode Vector with preemption >=20 > Bj=F6rn T=F6pel (1): > riscv: Add BLAKE2s V implementation >=20 > Greentime Hu (2): > riscv: Add support for kernel mode vector > riscv: Add vector extension XOR implementation >=20 > arch/riscv/Kbuild | 2 +- > arch/riscv/Kconfig | 10 ++ > arch/riscv/crypto/Kconfig | 16 +++ > arch/riscv/crypto/Makefile | 6 + > arch/riscv/crypto/blake2s-glue.c | 39 ++++++ > arch/riscv/crypto/blake2s-v.S | 164 +++++++++++++++++++++++++ > arch/riscv/include/asm/entry-common.h | 13 ++ > arch/riscv/include/asm/processor.h | 2 + > arch/riscv/include/asm/simd.h | 52 ++++++++ > arch/riscv/include/asm/thread_info.h | 6 + > arch/riscv/include/asm/vector.h | 50 ++++++-- > arch/riscv/include/asm/xor.h | 82 +++++++++++++ > arch/riscv/kernel/Makefile | 1 + > arch/riscv/kernel/asm-offsets.c | 2 + > arch/riscv/kernel/entry.S | 45 +++++++ > arch/riscv/kernel/kernel_mode_vector.c | 146 ++++++++++++++++++++++ > arch/riscv/kernel/process.c | 10 +- > arch/riscv/kernel/ptrace.c | 2 +- > arch/riscv/kernel/signal.c | 4 +- > arch/riscv/kernel/vector.c | 5 +- > arch/riscv/lib/Makefile | 1 + > arch/riscv/lib/xor.S | 81 ++++++++++++ > crypto/Kconfig | 3 + > drivers/net/Kconfig | 1 + > 24 files changed, 725 insertions(+), 18 deletions(-) > create mode 100644 arch/riscv/crypto/Kconfig > create mode 100644 arch/riscv/crypto/Makefile > create mode 100644 arch/riscv/crypto/blake2s-glue.c > create mode 100644 arch/riscv/crypto/blake2s-v.S > create mode 100644 arch/riscv/include/asm/simd.h > create mode 100644 arch/riscv/include/asm/xor.h > create mode 100644 arch/riscv/kernel/kernel_mode_vector.c > create mode 100644 arch/riscv/lib/xor.S >=20 >=20 > base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d > --=20 > 2.39.2 >=20 --byxUR448N23jzR+h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQMBSgAKCRB4tDGHoIJi 0mgtAP9tLS4u6b4Irsx6NBLrW89j/8YmAa4iusUmxfsYju7AUwD+M8RdN9euI6/d KRezKxNx3it8mEaHXr5KwfCfOYRbNg0= =Gekc -----END PGP SIGNATURE----- --byxUR448N23jzR+h--