Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp80849rdb; Tue, 31 Oct 2023 00:58:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj1Mh1nEeZeuQ2sUlZL/cSJi5IhuDJSaVCsM1fzoQP668iI4uFnIfucmuEw8NgPbTDOFjJ X-Received: by 2002:a17:902:c451:b0:1cc:2ed0:5ab1 with SMTP id m17-20020a170902c45100b001cc2ed05ab1mr7829480plm.17.1698739105895; Tue, 31 Oct 2023 00:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698739105; cv=none; d=google.com; s=arc-20160816; b=PkKzDWXRQr0BU8ref1Mox2wibpJM/TpD0DCVLu3c1YyC+esZeT9qWhUVhuorJIQ10h GMAruzwM59sr3NpDn2elwN3wK+AfaUOKk14IugfTvOc+1v7uciHzSBzrqwNCtWUupOfw TqPdevTz7qLFyA6Pa2XWTQRbEZtGhpqowEEnLPwhp3+uCIEdMYK7UFws2peNpgdnVxcx YTpkMirySp4By3kqfuvtqK+L0w44XVQINfWxjklwV8J8F6JTaqFDP0oZRHT7Bs4LfvaE Aa0nsg2+Si0lFSvY+SGrHtdEQUQSincoTAwxHMxpKIe7b4xM/xJrfNMFliDEBSFY1tG7 HRjg== 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=eiDnUW4Kn/odss8/DbdMU36YzLZTMzt2HhmARUpQoCE=; fh=I7+sLeLcH04X2O7Vx8fFT+De7Xnk9HpXp7Lv6szk1fo=; b=hFaDCxnWlcW/S8X6BRCQKA7Z3r2tByostURgrRgoF11F1azKAokkQnM/hFSMQ1+74e HvyMKypQ4LExUIWsrAsaNMtUSnFptg2oo5LuyGJfTHpicqB81QGqn8sjl1I5qh7/ta0l xFklaYJmazEIVuaKwkXixQIchR+8O782qYpKRc6S3aFMPhM2d7IpG9OFnHssy/jWo8Fa oTR/o5naep/hhdFJQT/W8fxwykkA8kD0iAEQre/uaMja6ede58kZdOPp4b/A53WnI9td DCG9Fe3Ybmis9QmRHUp93UhPNxC3KQdLVCafifk9P2Tu0FkEF4NyZUNrxFWT3HnBGhzv ehFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=nL0YLl38; 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 u12-20020a170902e5cc00b001c9bdaa81e3si654376plf.633.2023.10.31.00.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:58:25 -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=nL0YLl38; 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 77F6F8038F99; Tue, 31 Oct 2023 00:58:23 -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 S229576AbjJaH6H (ORCPT + 99 others); Tue, 31 Oct 2023 03:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236158AbjJaH5v (ORCPT ); Tue, 31 Oct 2023 03:57:51 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E19B79F; Tue, 31 Oct 2023 00:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1698739069; x=1730275069; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eiDnUW4Kn/odss8/DbdMU36YzLZTMzt2HhmARUpQoCE=; b=nL0YLl38fK87H00c2OlSpo/RC4VGZLb97MzfQ9siON+2wvjJewueN9/+ 0nkYJJmNGgGDAQLlT49gpLsJvVcNm3URQhsX0+/nxdBWjGKHfnTSlVL0A NDXulnmUkFE2NreUcloeQHWM9ffcPBJiT9g4plWXPCV4srIubHs+Um3YT GqxwewCd+o8qgpetks/pgEvX05VumjjjmfCcPlSEC914O374ILJUcj7vh CLMhcwhhvzG0E/nR2lR/LnVhWyOZkfefqcSTU3Ufjzag0Agv6vGgGHiCa ZemQXwc/auyIbJZbeUJrTwuieQo+nZesGnG2e8so6InqIZKDD/sdWzHSc A==; X-CSE-ConnectionGUID: oOYSTJdaShisXPhp1E4W2A== X-CSE-MsgGUID: 9QGEiL/2TtG25dQLEbKR6A== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="asc'?scan'208";a="241617896" 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; 31 Oct 2023 00:57:48 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Tue, 31 Oct 2023 00:57:45 -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; Tue, 31 Oct 2023 00:57:43 -0700 Date: Tue, 31 Oct 2023 07:57:19 +0000 From: Conor Dooley To: Charlie Jenkins CC: Palmer Dabbelt , Conor Dooley , Samuel Holland , David Laight , Xiao Wang , Evan Green , , , , Paul Walmsley , Albert Ou , Arnd Bergmann Subject: Re: [PATCH v8 0/5] riscv: Add fine-tuned checksum functions Message-ID: <20231031-shrouded-simmering-e60d23d17fa3@wendy> References: <20231027-optimize_checksum-v8-0-feb7101d128d@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qRR1lRF7FS8U2Elp" Content-Disposition: inline In-Reply-To: <20231027-optimize_checksum-v8-0-feb7101d128d@rivosinc.com> 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 00:58:23 -0700 (PDT) --qRR1lRF7FS8U2Elp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 27, 2023 at 03:43: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@rivo= sinc.com/ Not sure if the dep here is related, but the series is back to failing to build properly. Patch 3's build is broken everywhere pretty much, and patch 4's allmodconfigs don't build: https://patchwork.kernel.org/project/linux-riscv/list/?series=3D797256 Cheers, Conor. --qRR1lRF7FS8U2Elp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZUCzXwAKCRB4tDGHoIJi 0gTuAQCn9o4GuOxKhaiu5W8NOQuoO/gxx0KouCaKxas8K9dn4wEA1y5FNvh1iWAg XUdMgxRn+G362ufQfEH3gDx1oLZImgE= =YvhH -----END PGP SIGNATURE----- --qRR1lRF7FS8U2Elp--