Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4024209rdb; Thu, 14 Sep 2023 09:29:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnJcTJO/nicD4tvpngE7qE6lWJMg5gJQVyhD0QB+sJ1rmYQsoZEXOF6lhmIbKZk0z0UvGj X-Received: by 2002:a17:90a:e003:b0:26d:416a:b027 with SMTP id u3-20020a17090ae00300b0026d416ab027mr5997721pjy.31.1694708986418; Thu, 14 Sep 2023 09:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694708986; cv=none; d=google.com; s=arc-20160816; b=DpFIfxww+1i/9iMI8IlUtF4FQ4qnwCAc4ywSuflaau0NXoh3x3vSHsd+a681fS6d4S FEt2waxPjdQkVMYOE8FX0TZ6UH0IGOockfjmQQOvPAW65fQS67fxpEwetQ0TqUcGqtSb dPX/z124HisvIsllknvyQqG+Px7mBviJwIQLDnDsZGQXKCAoGlRG5smeBf7wNtZphWvR 75bG+c5+0Z8/i3FSOLoIvustBPprCLix0Pe26T+j3C72hCVAbL903+XQhyQIDpdy+9at rtlMnjiJB1UKBrt7wHPJV/VICVTnb+3cK/kyLxd9xgd10b9W0g+ifHEScpt222AYJlco Tyig== 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=J1dKIsTKU+SROZow0S3qjrK5fOXcn30NC4SqR0YWVtI=; fh=tVgOTvyl6vpk5kdXQuiLK3wuuGtTAZk9E0tioYjXddQ=; b=z74rC6S0OcnOiE5uLsxzBxyWQA/Wok/SMyrRl9Hv34h0daGKJ/r6yb8jf7yhQJmWKz xgcJUssNDxbMA7l0/IklLOiGBRiULe7uAd5oIAPx0lRz/xGciyMK/J77X0F53eSnKt1A ylhl1xeeKHA6KdtCSnaK+nwx+BG0prcodZ0URHWXKuC+m+RXYMdCtEnG1dnywhawrLXc YzzSwzG4bCOhFVJyCcCHNm1IS/MRpBvniOh4UsdrFoCvzxUXyK2bHaVDGMYlN2fKaEHB 50EQ6GZ7dyfE55RfcJezawAbs0j2PKiqXp9QL1NDoCc86H1yzWYrc4r7Saxc+9LqVkz5 bULg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mq92Ma92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id g184-20020a636bc1000000b0054ff53233f2si1677707pgc.567.2023.09.14.09.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mq92Ma92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 469FF8374CAA; Thu, 14 Sep 2023 09:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233860AbjINQ3i (ORCPT + 99 others); Thu, 14 Sep 2023 12:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbjINQ3h (ORCPT ); Thu, 14 Sep 2023 12:29:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986C61BE3 for ; Thu, 14 Sep 2023 09:29:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59C41C433C7; Thu, 14 Sep 2023 16:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694708973; bh=H33byKpeFMjVP9Sa7iH9ab3sgake7AuLJWHEwU6i/zo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mq92Ma924rZPbjERas1Von9mhS2Qc15dxZ5mE6S3FhJouTcZTuxmUC2EJGYXGUGtM 8rTu0DKEDtw7xnY9HZt95xIaXGR0FJsXwJOSWowfK0h/t1eNG2h1NThrAR78fy8Sje FNxBYyhQ7Xz2WMyO6+9ksnLXb51wvboSwQCZc5yv3HFmluurTXTAkWrG3DIaJ0kzE3 84WbzKntmWk2j9TjXKKHcjbnEC16zKeZRxLNCgGZ1a8l6BdCszSrr5cHG0mlfNtm5l jRxpjTYladGg/UvCBmU4djrfJtUOh99RiMlg5RMY/Mt91HbGOIztX+1YK1jzuc4jAt FbEWoOTj3ho3A== Date: Thu, 14 Sep 2023 17:29:29 +0100 From: Conor Dooley To: Charlie Jenkins Cc: Conor Dooley , Palmer Dabbelt , Samuel Holland , David Laight , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Walmsley , Albert Ou Subject: Re: [PATCH v4 4/5] riscv: Vector checksum library Message-ID: <20230914-hardiness-uninjured-6818bfb40b4f@spud> References: <20230911-optimize_checksum-v4-0-77cc2ad9e9d7@rivosinc.com> <20230911-optimize_checksum-v4-4-77cc2ad9e9d7@rivosinc.com> <20230914-pennant-obligate-db3adf056281@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vACo4KyzGOkrlLwY" Content-Disposition: inline In-Reply-To: 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 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:29:44 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.vger.email --vACo4KyzGOkrlLwY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2023 at 12:14:16PM -0400, Charlie Jenkins wrote: > On Thu, Sep 14, 2023 at 01:46:29PM +0100, Conor Dooley wrote: > > 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 > >=20 > > 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. > >=20 > > Thanks, > > Conor. >=20 > It is defined here: > https://github.com/riscv-non-isa/rvv-intrinsic-doc/blob/main/doc/rvv-intr= insic-spec.adoc. > The header is for the vector intrinsics that are supported by llvm and > gcc. Well, whatever you're doing with it does not work, producing 3600 or so fatal errors during compilation, all saying: =2E./arch/riscv/include/asm/checksum.h:14:10: fatal error: riscv_vector.h: = No such file or directory Do you have some makefile hack somewhere that's not part of this patchset? Also, I'm dumb, but can you show me where are the actual intrinsics are being used in this patch anyway? I just seem some types & asm. Thanks, Conor. --vACo4KyzGOkrlLwY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQM06AAKCRB4tDGHoIJi 0mdwAP40Q0oxsDF3wBoaGgdhytSmQcfrEYVaDIb9xbFef+wnGgD/Xg6SCr64B3S9 O5MiMctRJdwO8l41VhuCdOxSlG7qkgE= =r45z -----END PGP SIGNATURE----- --vACo4KyzGOkrlLwY--