Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5157635rdb; Tue, 12 Dec 2023 23:52:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhDjp8NvLXAyfUdeeqiUqJ92wq8Kslh3DRMoyzNJMefD/t5fsCCzi9qvhuscbgzKouG2+O X-Received: by 2002:a17:902:e542:b0:1d1:cdb2:a93c with SMTP id n2-20020a170902e54200b001d1cdb2a93cmr8717361plf.130.1702453955752; Tue, 12 Dec 2023 23:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702453955; cv=none; d=google.com; s=arc-20160816; b=06tR1icmGrJ/jlq1Ouif6ypYqCIDxDwmFc7VZOSZe0D1US0LwZD4FmU0oE+MAuD90H PSJ+43Az85zQ8e4MiGRzfttegCdnyThPfPp96fJWHaA1VFeo1yfXW2aXOlXZG6DLgYB8 YSO/pyDb7VcsgV/F4NgRq3ShiNnaPifyRl/OQErGhQLMztuvUE6zgfpW1ZK+Tsi5/IWG p+nAtpFVz7iyb9ZBnN5DyLIydGalX4wx4be1n2OTQxCVUke2ggY3+oEooQPrX+gsL5Tf l0ktC6lPFbWOI8wk2eepvLDchuoiqBkQHMwhHLAJbUyFkmI849zWISbCBbhbu4pRNO1H 2V0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=IikDPD6jbTPCIfjTpK6kFvZMdeXgof5FgKKPsLRI3mQ=; fh=F5cWrAHDBZALc2ScNplBGffzBAIhznaz3w8Oc5cIVYI=; b=QkV6jF+Pvuc6koKyzCEuCyQePSsSHDg6D2twtW60+7Tn0GMP+JBD9Z1va0cdqzUBn5 c3uPknv0q5gCah8Y9cUTBueFSKjiyzIJVqWsWI3T0YR4wrht6rhr2N/230mMUx8vgF3j f+6h5hJFmxJG8Asot87xTHFgVGyYvOM4LBVv/8japWn2y+DzOX+n8RTnyqs0B/UQQjqy mWk9IWS2TEeKYq73EZ4gTnAKcDX0a7Zx6QMwxPOxdq0MygTu36QhuzcId3kEBseI74wH Fqcu1gf0kPnVhZW7Lc9lSrVxtMYT7QhigKOH0XQmMYIAUxjyg60C7e4by93x9dlk17Ao NqxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=MJqz6FRP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="a9/6Zjsh"; 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=arndb.de Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z15-20020a170903018f00b001d0a47b70a2si9330755plg.137.2023.12.12.23.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:52:35 -0800 (PST) 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=@arndb.de header.s=fm1 header.b=MJqz6FRP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="a9/6Zjsh"; 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=arndb.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 19F1780505DD; Tue, 12 Dec 2023 23:52:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378785AbjLMHwT (ORCPT + 99 others); Wed, 13 Dec 2023 02:52:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378780AbjLMHwS (ORCPT ); Wed, 13 Dec 2023 02:52:18 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CC6101; Tue, 12 Dec 2023 23:52:24 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1DAFD3200A01; Wed, 13 Dec 2023 02:52:23 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 13 Dec 2023 02:52:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1702453942; x=1702540342; bh=IikDPD6jbT PCIfjTpK6kFvZMdeXgof5FgKKPsLRI3mQ=; b=MJqz6FRPuL878xfJjDRkXLDQ6A 94LXNYwawjYG5kT3WifJJ8HgE5s3MDfAFL7Ezbmdu0bgQvY+GljnznmbQ7jbnP8l aIHAIbjsmHXJhKQBuLQHeh3nEARv48QIsxBMCa8Ooa4G3cbPF8xsiRbIT5Yuyl1z Y/RYdxdzJkIETVdRIlZappNAuK7eibT0zRSw12+2HRVnNsUuouL1Zs9R4trzGU2d C8VJCq5lCOlyHOBCHLQOQKgPcRLyrpj49FUH1GVYv0h3sCqHg9rnoxBNkaJ8yI/V yIvvZBF7MimA2R+OpK9/yaS7RK8utWQfo3UfDlyJy6Y91qlG0ZDXcXUPa40Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702453942; x=1702540342; bh=IikDPD6jbTPCIfjTpK6kFvZMdeXg of5FgKKPsLRI3mQ=; b=a9/6ZjshxAADOKa4QrgHFLpFnxAQWtUw1m9QurJ5LIt2 qsJOSKO2cxRlIfhru7FqZs5Df/QsOtDehz6WPo1roLrvpaJaLbBwvDA/PAyBjMtd X46UNuhlrA9TGY/as3pGU1uNyYj6FZEeJSOsKTUJJEH4sfz53EaLqKciODqIbf7r K8GaxK+3sNFcq0uw2fKpuNXWaoWktPkqUC8lYHvMUh07B+ob0xbNx8cgivGLMxx/ qztUXbQN7X3bsCxCMikhQTa9rtP77PFAMvoc5OWuJKwhnheXb8tyCa7OSNbv/xD2 BYPaRuappODvHcZyck9ih1qMJ6zKnaLDy1MB7Z4lnQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelhedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 18315B6008D; Wed, 13 Dec 2023 02:52:22 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1283-g327e3ec917-fm-20231207.002-g327e3ec9 MIME-Version: 1.0 Message-Id: <129fa764-dc7a-4979-95e8-39a15c487095@app.fastmail.com> In-Reply-To: <20231212-optimize_checksum-v12-1-419a4ba6d666@rivosinc.com> References: <20231212-optimize_checksum-v12-0-419a4ba6d666@rivosinc.com> <20231212-optimize_checksum-v12-1-419a4ba6d666@rivosinc.com> Date: Wed, 13 Dec 2023 08:52:01 +0100 From: "Arnd Bergmann" To: "Charlie Jenkins" , "Palmer Dabbelt" , "Conor Dooley" , "Samuel Holland" , "David Laight" , "Xiao W Wang" , "Evan Green" , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-Arch Cc: "Paul Walmsley" , "Albert Ou" Subject: Re: [PATCH v12 1/5] asm-generic: Improve csum_fold Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Tue, 12 Dec 2023 23:52:33 -0800 (PST) On Wed, Dec 13, 2023, at 02:18, Charlie Jenkins wrote: > This csum_fold implementation introduced into arch/arc by Vineet Gupta > is better than the default implementation on at least arc, x86, and > riscv. Using GCC trunk and compiling non-inlined version, this > implementation has 41.6667%, 25% fewer instructions on riscv64, x86-64 > respectively with -O3 optimization. Most implmentations override this > default in asm, but this should be more performant than all of those > other implementations except for arm which has barrel shifting and > sparc32 which has a carry flag. > > Signed-off-by: Charlie Jenkins Acked-by: Arnd Bergmann