Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCCA7C433EF for ; Sun, 28 Nov 2021 19:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346392AbhK1TxR (ORCPT ); Sun, 28 Nov 2021 14:53:17 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:60352 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbhK1TvJ (ORCPT ); Sun, 28 Nov 2021 14:51:09 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-118-qy-x9jMpP1-ksZIE77l-EA-1; Sun, 28 Nov 2021 19:47:50 +0000 X-MC-Unique: qy-x9jMpP1-ksZIE77l-EA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Sun, 28 Nov 2021 19:47:49 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.026; Sun, 28 Nov 2021 19:47:49 +0000 From: David Laight To: 'Noah Goldstein' , Eric Dumazet CC: "tglx@linutronix.de" , "mingo@redhat.com" , Borislav Petkov , "dave.hansen@linux.intel.com" , X86 ML , "hpa@zytor.com" , "peterz@infradead.org" , "alexanderduyck@fb.com" , "open list" Subject: RE: [PATCH v1] x86/lib: Optimize 8x loop and memory clobbers in csum_partial.c Thread-Topic: [PATCH v1] x86/lib: Optimize 8x loop and memory clobbers in csum_partial.c Thread-Index: AQHX4nNzHa79im/GnUeKV4t1ya1z3awZWESA Date: Sun, 28 Nov 2021 19:47:49 +0000 Message-ID: <8e4961ae0cf04a5ca4dffdec7da2e57b@AcuMS.aculab.com> References: <20211125193852.3617-1-goldstein.w.n@gmail.com> In-Reply-To: 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Li4uDQo+IFJlZ2FyZGluZyB0aGUgMzIgYnl0ZSBjYXNlLCBhZGRpbmcgdHdvIGFjY3VtdWxhdG9y cyBoZWxwcyB3aXRoIHRoZSBsYXRlbmN5DQo+IG51bWJlcnMgYnV0IGNhdXNlcyBhIHJlZ3Jlc3Np b24gaW4gdGhyb3VnaHB1dCBmb3IgdGhlIDQwLzQ4IGJ5dGUgY2FzZXMuIFdoaWNoDQo+IGlzIHRo ZSBtb3JlIGltcG9ydGFudCBtZXRyaWMgZm9yIHRoZSB1c2FnZSBvZiBjc3VtX3BhcnRpYWwoKT8N Cj4gDQo+IEhlcmUgYXJlIHRoZSBudW1iZXJzIGZvciB0aGUgc21hbGxlciBzaXplczoNCj4gDQo+ IHNpemUsIGxhdCBvbGQsICAgIGxhdCB2ZXIyLCAgICBsYXQgdmVyMSwgICAgdHB1dCBvbGQsICAg dHB1dCB2ZXIyLCAgIHRwdXQgdmVyMQ0KPiAgICAwLCAgIDQuOTYxLCAgICAgICA0LjUwMywgICAg ICAgNC45MDEsICAgICAgIDQuODg3LCAgICAgICA0LjM5OSwgICAgICAgNC45NTENCj4gICAgOCwg ICA1LjU5MCwgICAgICAgNS41OTQsICAgICAgIDUuNjIwLCAgICAgICA0LjIyNywgICAgICAgNC4x MTAsICAgICAgIDQuMjUyDQo+ICAgMTYsICAgNi4xODIsICAgICAgIDYuMzk4LCAgICAgICA2LjIw MiwgICAgICAgNC4yMzMsICAgICAgIDQuMDYyLCAgICAgICA0LjI3OA0KPiAgIDI0LCAgIDcuMzky LCAgICAgICA3LjU5MSwgICAgICAgNy4zODAsICAgICAgIDQuMjU2LCAgICAgICA0LjI0NiwgICAg ICAgNC4yNzkNCj4gICAzMiwgICA3LjM3MSwgICAgICAgNi4zNjYsICAgICAgIDcuMzkwLCAgICAg ICA0LjU1MCwgICAgICAgNC45MDAsICAgICAgIDQuNTM3DQo+ICAgNDAsICAgOC42MjEsICAgICAg IDcuNDk2LCAgICAgICA4LjYwMSwgICAgICAgNC44NjIsICAgICAgIDUuMTYyLCAgICAgICA0Ljgz Ng0KPiAgIDQ4LCAgIDkuNDA2LCAgICAgICA4LjEyOCwgICAgICAgOS4zNzQsICAgICAgIDUuMjA2 LCAgICAgICA1LjczNiwgICAgICAgNS4yMzQNCj4gICA1NiwgIDEwLjUzNSwgICAgICAgOS4xODks ICAgICAgMTAuNTIyLCAgICAgICA1LjQxNiwgICAgICAgNS43NzIsICAgICAgIDUuNDQ3DQo+ICAg NjQsICAxMC4wMDAsICAgICAgIDcuNDg3LCAgICAgICA3LjU5MCwgICAgICAgNi45NDYsICAgICAg IDYuOTc1LCAgICAgICA2Ljk4OQ0KPiAgIDcyLCAgMTEuMTkyLCAgICAgICA4LjYzOSwgICAgICAg OC43NjMsICAgICAgIDcuMjEwLCAgICAgICA3LjMxMSwgICAgICAgNy4yNzcNCj4gICA4MCwgIDEx LjczNCwgICAgICAgOS4xNzksICAgICAgIDkuNDA5LCAgICAgICA3LjYwNSwgICAgICAgNy42MjAs ICAgICAgIDcuNTQ4DQo+ICAgODgsICAxMi45MzMsICAgICAgMTAuNTQ1LCAgICA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