Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4260081rdb; Thu, 14 Sep 2023 17:43:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHr/w7CMjpt7JbB3zub/IX68FhqmKT/1wdoHtF/s4Lye9FU4x0H81wLEUJAN6agtWDHQ+9L X-Received: by 2002:a17:902:f546:b0:1c0:afda:540b with SMTP id h6-20020a170902f54600b001c0afda540bmr319947plf.8.1694738586940; Thu, 14 Sep 2023 17:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694738586; cv=none; d=google.com; s=arc-20160816; b=cLUfOdpHMC/U544rLRvc1x8k0RdRedUfPasSbFedFSDk9pADGlftFIGZpST3Fg9Gr0 q+aZKTvPZPMvUCGn5fU4aOA31Nv31OZMxK/7rdULgRKiltECmXsIDlFURkfS56l9YsSG RqojGeRSPZffvFkIaAOrOPTtpKx4nQcEUFWq3Z6CYc0ZuYh1Ex4Z+0EyIsZpdPgPj6Jv SM2Xt+hEb6gg1MNXd+DjSSz9Wms8Mi7QpD1Kxyc52K4E94++6kloIrswRETZwnvEtine h/k1jVW+S/VeDUN8Fquqcd8bPPyllX9Apur+bRTfFR+2WHkiLlf4hFkOqCaW7qr/47sK lzsA== 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=nE0aoCznO4lO1M+q3CiqWDdRUIUR9dxzkIRDNw4yOmY=; fh=LBOUWIFV8zHD3CidhtN9HP3U1ZReaFhyE0Mf/1H+aac=; b=th0dnYdFwE07oOXkST9xTmGH9ea7x4hzxgO46XQo9vdt38VdjsHapnfxc5l6UNzClF vl5VZ6TYzM79W/haQ/CecsxQ6/YmlBKOByb3ebL4Hy51M3ZpEp6o/gkkx2icMRdj8cd7 5arO+FrnRJhktrpVsZGE4x00a2TYABJp3ArmFbAPICr2NpUh4wngEZs58jtFaOk0LryF 88b+VQBj+YfhUHe7XUlmTfl8x00yONm5kkVA4EpGZ2SrgpTnGvAFkhCXI0EiuIaXecBS YxZLa9AXzgFA6DXoGrkU2Re+7Xdz1oVvWg3Xe6THtUTc+NcoRwrqtzXBPPLuu+bd17JC PZ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=abzvKja3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c9-20020a170903234900b001bee6def27esi2663406plh.260.2023.09.14.17.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 17:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=abzvKja3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6281A836E273; Thu, 14 Sep 2023 09:14:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238530AbjINQOZ (ORCPT + 99 others); Thu, 14 Sep 2023 12:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237860AbjINQOY (ORCPT ); Thu, 14 Sep 2023 12:14:24 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B99BB1BEA for ; Thu, 14 Sep 2023 09:14:20 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-5776089b652so854265a12.2 for ; Thu, 14 Sep 2023 09:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694708060; x=1695312860; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nE0aoCznO4lO1M+q3CiqWDdRUIUR9dxzkIRDNw4yOmY=; b=abzvKja3aGvCo6o865Rp0lbCjexuPjfhKCiVMCJlu3KBq9PM4+64/tbVaTHpqvA7EM 4z6UOz/koh/+7aMAF2p4jIDGw6Pcrb1hnmp/fNpw+dsLcrQ+x/kUhvPtWc17FkyD27Zw kPS4QiHxZFEZkOvKrDTCudtiD+t0rVLzCM8hsppA4MxaRBjowsuEQNftIsO5ILm54dg8 QQdMVTN5kYAqM4Nq3j0tWT/9BwgZtkrrLFWKWvNrDg0Mzc5d+9n4/p3EBZWNbGmA/bn3 NMcg0qZG4fbvvz29RvGQpeHy0tSP6HsF4ud2KHW6Qa+9rshFdTazYOdjq8JhS+KeMQYy ZfpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694708060; x=1695312860; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nE0aoCznO4lO1M+q3CiqWDdRUIUR9dxzkIRDNw4yOmY=; b=bbkNxDd/241ID6n/Cw2KZGjpr1ttzTFZ1YF8/BkrK1x7Ppsoe0nSnqgIR+pea5MS2G j7lkHsY1UoXR07CU3/jPGm3L7SF8MQjDcXk7DQb+09BDVvimANHVRSaQSqvTc13w6qe5 lDNSXeaCnNQXrinXHNAkoDbGLEX/ppYb+IFXkQxDnBPc1Aj9J9I06ErFfmm+ZdQJqtMu wHpqEYh5MH71iTuliMi5xO/bGDY/Wr78ZBSSgYp/sdziCqJWG3094h9eNyLfgvDlzdNp ED7MzCcLk7jj2cnNzbiWO1Ww42dKuLA1S8+wjcPmxiNkXHCPHk6M6/PviX/Pvus+vhPd Scgg== X-Gm-Message-State: AOJu0YwlBjIhS5WzFLJgl6I9cnrGrskVUxXpkJFZftCQPf2+GXLMZxEf kM9Y+WCPGHC7eSGZ+y1m+xchrIbJIR46361wMqs= X-Received: by 2002:a17:90b:4b84:b0:26b:2538:d717 with SMTP id lr4-20020a17090b4b8400b0026b2538d717mr5811694pjb.25.1694708060108; Thu, 14 Sep 2023 09:14:20 -0700 (PDT) Received: from ghost ([50.168.177.76]) by smtp.gmail.com with ESMTPSA id j5-20020a17090aeb0500b0026b4ca7f62csm1504449pjz.39.2023.09.14.09.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:14:19 -0700 (PDT) Date: Thu, 14 Sep 2023 12:14:16 -0400 From: Charlie Jenkins To: Conor Dooley Cc: Palmer Dabbelt , Conor Dooley , 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: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230914-pennant-obligate-db3adf056281@wendy> 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 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:14:30 -0700 (PDT) X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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. > > > > Signed-off-by: Charlie Jenkins > > --- > > arch/riscv/lib/csum.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 92 insertions(+) > > > > 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 @@ > > > > #include > > > > +#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. It is defined here: https://github.com/riscv-non-isa/rvv-intrinsic-doc/blob/main/doc/rvv-intrinsic-spec.adoc. The header is for the vector intrinsics that are supported by llvm and gcc. - Charlie