Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4043420rdb; Thu, 14 Sep 2023 10:02:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRQin+SOweFKEhGESztHWgNgZRFB3Ur5TV6nB5eYRpC94EnmnUEf8TshmnYJarNwbHJGnX X-Received: by 2002:a17:902:d2cd:b0:1c3:f023:9823 with SMTP id n13-20020a170902d2cd00b001c3f0239823mr5130437plc.6.1694710973056; Thu, 14 Sep 2023 10:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694710973; cv=none; d=google.com; s=arc-20160816; b=H8Th6xkxOJ8iE5iaGvAZB+n/MoPmoJorE5mZAZNCr++1gUQryANfBc9t8fiW+64a6Y h/mQkDR6xMQLy0DamelXTykK0VYtwKcIIsCs9T0OnAhMj4vm3QZNM5xD5N6bv3aPGr/u ETV/aLncH+phGnX/TpRtHwyv3mUz85346SYG4kqf3JrzFLCzpG7F3wfPfPhyrmIb3UQ7 2VcwCY82i/xkuyVg1VjqFfVNrdSzPyGk5p3KBWTA1dvPyID6ASI3s78BKIjI6VWt38fY debtCfTR8y93qJm7ySuFhluylSP3pF+8W96YnCBiqGQhU+bljcNJgD9wt0YCajG7dIgL v+ZQ== 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=rZAo5cE2i/8IuyyefsQsNUE4o09Et2jc/LyMwFZyz60=; fh=N/xbbmE90QCFGMtGP83c3fluID4f7wx7TitAlodYdhM=; b=vSJEVAkdofQad0ZOuDZveyRUPI1NLseeOuEQVs5NsP9/tYIW8ISo7xmGsEbEOHaVxL BAtguA484w9ISmJVrtaT6VGYjY2rbxWmBt9P/5WJXxtxMvzGX/rgAfMHc5cy/zppA1Hp h3Q8mq6jLcG6ta1cDQ+ydMPpR0EbKWLAyqhXld7COWseiw4sMklyf1g5NNyKQEueqe1D 0rEXvm4MkszdmVHVWCehBrtc9LhCD0IbzF0rEQFA/k0/V8ZXQJwFMBCLe9yBWmDtASs4 Q7v5UZ1wDdE/xAH2zhMowVDrOLmEWSdLN+vh0W2ulP8dQM2Rjf5ml3adQTFDtSaeACNa 6hWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=g+xI9VjI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-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 u13-20020a170902e80d00b001b84f9263e7si2115653plg.325.2023.09.14.10.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 10:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=g+xI9VjI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-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 B21AD829A576; Thu, 14 Sep 2023 05:47:38 -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 S233068AbjINMra (ORCPT + 99 others); Thu, 14 Sep 2023 08:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjINMr3 (ORCPT ); Thu, 14 Sep 2023 08:47:29 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C301FCC for ; Thu, 14 Sep 2023 05:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1694695644; x=1726231644; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tMp3otj0E3N1naQgnjsWYmftiJNjCbwcCEIwK3540lA=; b=g+xI9VjIvRdUNb9EocDLqFfUCFIaA1HpTJiR84m2RJnz4nEweEOEigO8 /2evzxF+Iw06ajZF4w3ghD34lInDgW0RRCrwdlPpeV1YhFuWBXN2ZULXD VAnCrojXnBiLMeTORdZ2im1Gy2kr7gpHNrFyxMEGZuxsQxurW6TqLG1tj mB9TWDFtGTRsDg5CTncaR8iJz9WL0kGBgcYEfX98+KLDjANN2UHLFyzMd y6SGO3fatjQkfWgsg4LYlZg9CEnuyAoWcGNsVmy5j28zK/W4H2P8CbW2Q zp9Bd8maY+xoBcBvNBmyHnsaka0TzM6vqmr12V0hMRjEfLgDVsb+z5kx8 g==; X-CSE-ConnectionGUID: lkrc8tYBQW+sSqrl8F8mbg== X-CSE-MsgGUID: vLu6P7iFQCiOKWUeCiVYmQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="asc'?scan'208";a="4824435" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 Sep 2023 05:47:24 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) 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:46:47 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:46:45 -0700 Date: Thu, 14 Sep 2023 13:46:29 +0100 From: Conor Dooley To: Charlie Jenkins CC: Palmer Dabbelt , Conor Dooley , Samuel Holland , David Laight , , , Paul Walmsley , Albert Ou Subject: Re: [PATCH v4 4/5] riscv: Vector checksum library Message-ID: <20230914-pennant-obligate-db3adf056281@wendy> References: <20230911-optimize_checksum-v4-0-77cc2ad9e9d7@rivosinc.com> <20230911-optimize_checksum-v4-4-77cc2ad9e9d7@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KDMf+6JZIfT6eNsC" Content-Disposition: inline In-Reply-To: <20230911-optimize_checksum-v4-4-77cc2ad9e9d7@rivosinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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:47:38 -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=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email --KDMf+6JZIfT6eNsC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 11, 2023 at 03:57:14PM -0700, Charlie Jenkins wrote: > This patch is not ready for merge as vector support in the kernel is > limited. However, the code has been tested in QEMU so the algorithms > do work. This code requires the kernel to be compiled with C vector > support, but that is not yet possible. It is written in assembly > rather than using the GCC vector instrinsics because they did not > provide optimal code. >=20 > Signed-off-by: Charlie Jenkins > --- > arch/riscv/lib/csum.c | 92 +++++++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 92 insertions(+) >=20 > diff --git a/arch/riscv/lib/csum.c b/arch/riscv/lib/csum.c > index 47d98c51bab2..eb4596fc7f5b 100644 > --- a/arch/riscv/lib/csum.c > +++ b/arch/riscv/lib/csum.c > @@ -12,6 +12,10 @@ > =20 > #include > =20 > +#ifdef CONFIG_RISCV_ISA_V > +#include What actually includes this header, I don't see it in either Andy's in-kernel vector series or Bjorn's blake2 one. Can you link to the pre-requisites in your cover letter please. Thanks, Conor. --KDMf+6JZIfT6eNsC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQMApQAKCRB4tDGHoIJi 0mhkAQCXmf4t51iUccwMbirqaRqdZmk8Yzcti0AGOXOg+2IUZQD/UOoVsc8T1wQw 644D6sgHFMl2lPtyh7o/BcKqkMHoYgA= =61Sl -----END PGP SIGNATURE----- --KDMf+6JZIfT6eNsC--