From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751436AbbE0Imu (ORCPT ); Wed, 27 May 2015 04:42:50 -0400 Received: from smtp-out4.electric.net ([192.162.216.187]:51989 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbbE0Imr (ORCPT ); Wed, 27 May 2015 04:42:47 -0400 From: David Laight To: "'Scott Wood'" CC: "'Christophe Leroy'" , Benjamin Herrenschmidt , Paul Mackerras , "Michael Ellerman" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v3 2/2] powerpc: add support for csum_add() Thread-Topic: [PATCH v3 2/2] powerpc: add support for csum_add() Thread-Index: AQHQkkqkelEqw9QfvkW74vO+INevup2IKrZggAAsFQCABfws0IAAT+qAgADpgLA= Date: Wed, 27 May 2015 08:41:01 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CB40893@AcuExch.aculab.com> References: <1d1362c8aa696e316d3ba97dce2342df6f6ee6cf.1432047904.git.christophe.leroy@c-s.fr> <063D6719AE5E284EB5DD2968C1650D6D1CB3D471@AcuExch.aculab.com> <1432323162.27761.274.camel@freescale.com> <063D6719AE5E284EB5DD2968C1650D6D1CB3EB5F@AcuExch.aculab.com> <1432669355.7862.16.camel@freescale.com> In-Reply-To: <1432669355.7862.16.camel@freescale.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-Outbound-IP: 213.249.233.130 X-Env-From: David.Laight@ACULAB.COM X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t4R8gwm5017988 From: Scott Wood > Sent: 26 May 2015 20:43 ... > > I was thinking of all 64bit targets, not 32bit ones. > > Oh, you mean move it out of arch/powerpc? Sounds reasonable, but > someone should probably check what the resulting code looks like on > other common arches. OTOH, if we're going to modify non-arch code, > that might be a good opportunity to implement Segher's suggestion and > move to a 64-bit accumulator. Or more likely: adding alternate 32bit words to different 64-bit registers in order to reduce the dependency chains further. I'm sure I've seen a version that does that somewhere. David ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éšŽŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨è­Ú&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿà ÿ¶ìÿ¢¸?–I¥