Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5102115rdb; Sat, 16 Sep 2023 03:08:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYhp34K4jNbjKED/AQ5rlceKtMVUXRyITX9s1aMQEXAH+KyFA22Hkzp1R2d9YzoMUB3pKz X-Received: by 2002:a17:902:d702:b0:1bf:1:a4a8 with SMTP id w2-20020a170902d70200b001bf0001a4a8mr3336205ply.25.1694858891423; Sat, 16 Sep 2023 03:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694858891; cv=none; d=google.com; s=arc-20160816; b=FzYjxT1498PP4RxgKcOUJ1dlT5XUp30lk2KRT/+Ys9wsuf0jVd13GnzE1KmdzLnYVJ FhOtp+YZN/I7vnjTu1ybqjkzDZBvsHIkpbPSyhhZ9jD90ktCcUqp9atAaUT2Q+7laRT7 iRdhp6PPuxXw9E4EOXei9gbtj3aEIj/CLGgNDHYPUlHufWwpW0q2v2xBUzKsWBAfxyFg DJ4oHHchHpyu+GeouD+4EX87HG0UvLK3XDR9IyrszGRTIEriTOZ3kNv/zekRnbhwd9nl C6sqMgYFkc/tbL5WpaZDcj7WnYrQefmThOZXzPPUJANO5y8YlVwx3Imd1WifsAqy0YPl hY9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=dlCpcJGUEf0pLwlFRMsYF8hwWNncmnE9kE/dPtGkkA0=; fh=QnHKVSBKRc+NUhSdx+gdeQa1644F0j8/k10sWjnM0Y8=; b=ld78Xlr3NxuhWN21VevQBmfXMXnw9fWalGxBF4QuwP/JtiWDnx+Tu8P0xGeBboE4Mm 75crAZ+13wCRb1ytm3qVWFncI49BI4V87K7eUcdbvJw8hujyvfJub16EI6LKHojptiQA OwarGCqGtJmrHMFPrdZv+UWNybqwHjaswQJS3pscRBzect1dIgiLUB8MZ7BE8Ys84uc6 yRgcGj+le8EVHvmesPRWlIKeJGNT4DqqA5rRKlelMLcyzRpnPa4aJtgD96uP8kc5VgLV Nk12xZ3bcwQmt/mi3snk4mngpz+/jocm5Rml97dWTXEV+xsLztzp87w17J8km64tdtDI 0wmg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kg4-20020a170903060400b001c1e1fe16c7si4683128plb.236.2023.09.16.03.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 03:08:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 953D883B631B; Sat, 16 Sep 2023 03:08:08 -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 S238836AbjIPJdW (ORCPT + 99 others); Sat, 16 Sep 2023 05:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbjIPJcx (ORCPT ); Sat, 16 Sep 2023 05:32:53 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9A1F6E3 for ; Sat, 16 Sep 2023 02:32:47 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-244-9HYSYDoAOBG_m3lja_VXfg-1; Sat, 16 Sep 2023 10:32:44 +0100 X-MC-Unique: 9HYSYDoAOBG_m3lja_VXfg-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 16 Sep 2023 10:32:40 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sat, 16 Sep 2023 10:32:40 +0100 From: David Laight To: 'Charlie Jenkins' , Palmer Dabbelt , Conor Dooley , Samuel Holland , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" CC: Paul Walmsley , Albert Ou , Arnd Bergmann Subject: RE: [PATCH v6 3/4] riscv: Add checksum library Thread-Topic: [PATCH v6 3/4] riscv: Add checksum library Thread-Index: AQHZ5/ZuR2Nhj94ZDEWquHSBL7yNdbAdI/3w Date: Sat, 16 Sep 2023 09:32:40 +0000 Message-ID: <0357e092c05043fba13eccad77ba799f@AcuMS.aculab.com> References: <20230915-optimize_checksum-v6-0-14a6cf61c618@rivosinc.com> <20230915-optimize_checksum-v6-3-14a6cf61c618@rivosinc.com> In-Reply-To: <20230915-optimize_checksum-v6-3-14a6cf61c618@rivosinc.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 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]); Sat, 16 Sep 2023 03:08:08 -0700 (PDT) RnJvbTogQ2hhcmxpZSBKZW5raW5zDQo+IFNlbnQ6IDE1IFNlcHRlbWJlciAyMDIzIDE4OjAxDQo+ IA0KPiBQcm92aWRlIGEgMzIgYW5kIDY0IGJpdCB2ZXJzaW9uIG9mIGRvX2NzdW0uIFdoZW4gY29t cGlsZWQgZm9yIDMyLWJpdA0KPiB3aWxsIGxvYWQgZnJvbSB0aGUgYnVmZmVyIGluIGdyb3VwcyBv ZiAzMiBiaXRzLCBhbmQgd2hlbiBjb21waWxlZCBmb3INCj4gNjQtYml0IHdpbGwgbG9hZCBpbiBn cm91cHMgb2YgNjQgYml0cy4NCj4gDQouLi4NCj4gKwkvKg0KPiArCSAqIERvIDMyLWJpdCByZWFk cyBvbiBSVjMyIGFuZCA2NC1iaXQgcmVhZHMgb3RoZXJ3aXNlLiBUaGlzIHNob3VsZCBiZQ0KPiAr CSAqIGZhc3RlciB0aGFuIGRvaW5nIDMyLWJpdCByZWFkcyBvbiBhcmNoaXRlY3R1cmVzIHRoYXQg c3VwcG9ydCBsYXJnZXINCj4gKwkgKiByZWFkcy4NCj4gKwkgKi8NCj4gKwl3aGlsZSAobGVuID4g MCkgew0KPiArCQljc3VtICs9IGRhdGE7DQo+ICsJCWNzdW0gKz0gY3N1bSA8IGRhdGE7DQo+ICsJ CWxlbiAtPSBzaXplb2YodW5zaWduZWQgbG9uZyk7DQo+ICsJC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