Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp270958rdb; Thu, 2 Nov 2023 03:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEG9ew8N4jQZ7wqdtW0eNyHBduL5bfhtTGkPYgRPaZU0rB3j1mFCwPVMRVkv743rJM7Q9up X-Received: by 2002:a05:6a20:8f03:b0:12f:c0c1:d70 with SMTP id b3-20020a056a208f0300b0012fc0c10d70mr19326560pzk.40.1698920582515; Thu, 02 Nov 2023 03:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698920582; cv=none; d=google.com; s=arc-20160816; b=yumtRX+hr9JGJIrFBG7fxsOQJV7ogbaqKN4BJMvtLqBfdA8unfnWqE90bE4f7+Ix7T T0gN95EqHrVmF3fDsJfIjNSB0ffmqCZNjssGPWfjiu6zoi6y6TTcBQOKo3E6vrnXSJk+ h+8qr5YU7qIoAUWYW6+/rX7RtghdQk53OAnx4SqHpNXGqe7fIBGvew/L4UeQolHglY7c GHShBTvJrzJaQibvsq6XTN7kI6AvJsdIERjikUk8PX6bbeLN1Fl1qK9zJUaeJkWecz/k K5V4fmAH2dvyIBunHye3OZ3iSzFoqxOCkWIcu1sQaoWNQxClATjy0mUSgFwxH2sU6kxz Trdw== 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=QTIJe6fBmHZ5pDGO2297HJQPTJ63MepYsAuffQjdfjA=; fh=72XhDX/KVxpZ5ROejkIBBzcLRxqSEYOoMcBaLGlHYfs=; b=FRUE+Sz4JsehKSnGfBWXztnpVGyMngngIamzIItdYaVVJKBPmpgkYlh/dtMpFvlBlV 589h4pmPeUi5UTxkMLYEUIUdClyhg+dRvIN+H+LjW5PTIFrXoogKWtrOJF+cv1SpycDJ 2u7AL2QV7dmDeMhXJcsgXb89QXl9WYpfPN1x/jvgSEElYsRlPokmeOuQV9cEajXlYRw5 iwxNgIPnnW4lRd+i1CChrLbRqpOg6KBIfPhVunnlF3cXIGrH7Kq6t5kj2XYfjbmqutvr Wiunkrqybkb7bQ40Ws/D3okDi5znVgNTSBSPKXVw4RCkT/9hN/OaE+AP2HuNJRZAUaME f8pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=QHqi45Db; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t13-20020a1709028c8d00b001ca7fab771esi4541023plo.609.2023.11.02.03.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 03:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=QHqi45Db; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 705D6809C1B1; Thu, 2 Nov 2023 03:22:57 -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 S1346593AbjKBKWm (ORCPT + 99 others); Thu, 2 Nov 2023 06:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346515AbjKBKWl (ORCPT ); Thu, 2 Nov 2023 06:22:41 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E6C9112; Thu, 2 Nov 2023 03:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1698920556; x=1730456556; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QTIJe6fBmHZ5pDGO2297HJQPTJ63MepYsAuffQjdfjA=; b=QHqi45Dbvzr6AK7DUY+wpj/871k8GYVEkDPXmZQI/oMO4I2TTSBw5swQ 1AVxlswINeOFzb7tqhkgOiXMaBiqRX1r79SemgNjfGIzgK8oPTOtpDf1W y+JY1F65YotJoMk4+deRpqbtf1syCqQ1eUMbfavMX1dj8ajNHVz1vll3r xR3RIn1sleUy0cLvzVr02Fbt4/GySTJZrxgIA9qfs8dVWwZE/ElgeDZ0o SfbuyvyiUTE89Meb4WXGHP4h3ZG9oadeOIX/IauMx1qgGkZri8BAFnhqc jU/KUv4Pf+mxWdSRMxjPfjSMbWCK6KUWqU5hu+dYslCZbIDYYdSeYQkwN g==; X-CSE-ConnectionGUID: dttG3pA+QG+SpyyA/RvAEA== X-CSE-MsgGUID: fmLvno0mTHGxaLzBwfDWtA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="asc'?scan'208";a="241755710" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Nov 2023 03:22:35 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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, 2 Nov 2023 03:22:18 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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, 2 Nov 2023 03:22:16 -0700 Date: Thu, 2 Nov 2023 10:21:51 +0000 From: Conor Dooley To: Charlie Jenkins CC: Conor Dooley , Palmer Dabbelt , Samuel Holland , David Laight , Xiao Wang , Evan Green , , , , Paul Walmsley , Albert Ou , Arnd Bergmann Subject: Re: [PATCH v9 0/5] riscv: Add fine-tuned checksum functions Message-ID: <20231102-express-deplete-4dd19e21a82c@wendy> References: <20231031-optimize_checksum-v9-0-ea018e69b229@rivosinc.com> <20231101-palace-tightly-97a1d35a4597@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iP257PpdxnYzWyml" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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, 02 Nov 2023 03:22:57 -0700 (PDT) --iP257PpdxnYzWyml Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 01, 2023 at 10:06:26AM -0700, Charlie Jenkins wrote: > On Wed, Nov 01, 2023 at 11:50:46AM +0000, Conor Dooley wrote: > > On Tue, Oct 31, 2023 at 05:18:50PM -0700, Charlie Jenkins wrote: > > > Each architecture generally implements fine-tuned checksum functions = to > > > leverage the instruction set. This patch adds the main checksum > > > functions that are used in networking. > > >=20 > > > This patch takes heavy use of the Zbb extension using alternatives > > > patching. > > >=20 > > > To test this patch, enable the configs for KUNIT, then CHECKSUM_KUNIT > > > and RISCV_CHECKSUM_KUNIT. > > >=20 > > > I have attempted to make these functions as optimal as possible, but I > > > have not ran anything on actual riscv hardware. My performance testing > > > has been limited to inspecting the assembly, running the algorithms on > > > x86 hardware, and running in QEMU. > > >=20 > > > ip_fast_csum is a relatively small function so even though it is > > > possible to read 64 bits at a time on compatible hardware, the > > > bottleneck becomes the clean up and setup code so loading 32 bits at a > > > time is actually faster. > > >=20 > > > Relies on https://lore.kernel.org/lkml/20230920193801.3035093-1-evan@= rivosinc.com/ > >=20 > > I coulda sworn I reported build issues against the v8 of this series > > that are still present in this v9. For example: > > https://patchwork.kernel.org/project/linux-riscv/patch/20231031-optimiz= e_checksum-v9-3-ea018e69b229@rivosinc.com/ > You did, and I fixed the build issues. This is another instance of how > Patchwork reports the results of the previous build before the new build > completes. Patchwork was very far behind so it took around 15 hours for > the result to be ready. :clown_face: > There are some miscellaneous warnings in random > drivers that I don't think can be attributed to this patch. Yeah, there sometimes are warnings that seem spurious when you touch a bunch of header files. I'm not really sure how to improve on that, since it was newly introduced. My theory is that how we do a build of commit A, then commit A~1 and then commit A again & take the difference between the 2nd and 3rd builds (which should both be partial rebuilds) is not as symmetrical as I might've thought and is the source of those seemingly unrelated issues that come up from time to time. --iP257PpdxnYzWyml Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZUN4PwAKCRB4tDGHoIJi 0jV3AP9c6KociGHuayEHtzK5fniiLEgkWkN9CfAqobQ+jqH0lAEA7HISbiX11E5K Exvq77KvbRkFrOWUcY+p5/1Ke/8UYwU= =M/iI -----END PGP SIGNATURE----- --iP257PpdxnYzWyml--