Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbcDZPt2 (ORCPT ); Tue, 26 Apr 2016 11:49:28 -0400 Received: from mail-am1on0095.outbound.protection.outlook.com ([157.56.112.95]:35286 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751757AbcDZPtZ (ORCPT ); Tue, 26 Apr 2016 11:49:25 -0400 Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=mellanox.com; Subject: Re: [RFC][PATCH 22/31] locking,tile: Implement atomic{,64}_fetch_{add,sub,and,or,xor}() To: Peter Zijlstra References: <20160422090413.393652501@infradead.org> <20160422093924.482859927@infradead.org> <571E840A.8090703@mellanox.com> <20160426152844.GZ3448@twins.programming.kicks-ass.net> CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , From: Chris Metcalf Message-ID: <571F8A27.1020706@mellanox.com> Date: Tue, 26 Apr 2016 11:32:55 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160426152844.GZ3448@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [12.216.194.146] X-ClientProxiedBy: SN1PR16CA0017.namprd16.prod.outlook.com (10.169.34.27) To DB5PR05MB1685.eurprd05.prod.outlook.com (10.165.6.151) X-MS-Office365-Filtering-Correlation-Id: b58c29d4-3912-4c04-51fb-08d36de81665 X-Microsoft-Exchange-Diagnostics: 1;DB5PR05MB1685;2:2bY/pZxqEtBHgPwTs9hubITqcjwN+mT+JHn29Ocbf40rAhINLbgKN+vgtaJ/6myrtQdz+MSUeu0aZc6iRpqSj6Kf+GjXtOlTN2WUB1tNlCCLQTvE/O4RkWb85LPUvNBND8JIFpqDXzYP6X2LY0QVaMlkWENjiUQJ/yPpGe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tCJgv7W/fM80wnmclPfwzHGC3Hjn0Xb1r5dC0Ub4Vcymbr67EH71upvhV21nwT/i31JpMLPD98S6yQ6JjQAwxmRbzJlV8G+bpI20ElAKKBbmW/isSzOI+IXeliYNM5iX3G8/Y5VAZgDjc+6db+L5qUaxQ6KVOq1nXjR95iVmh1RNeqA6+F3cCDHORvPmqwO9RvtH7c+7CdBOWOja8MRqZqu1WvewkUybimk1xH7tZyNGpUMD8JDbhe/hBJCCYCDND5g+FFxvtT1kQA/m/ho5RDLoCStKXX/ua5IBNiz26VzRv2Ki9YYZpRFVqYjMwS4bpMVYe8PO6orC9/J9HNxEuwET0t2qRvonIQBHqk1t+LsiOkXTMrsaI9lMLVu1SPpu2erzDjdtjIPmBbrMJuBn4Rw3wOMrpz5EiaJK+2r0MZ5/2eCi2/PrUqATHc+AZdO2+mGzvphzYvUahKcdSrVoVwt3YmB5Gxm4ENp04kGj52f5cw;4:SoGO/7ZrfY+QLWEbbVP+WGnGXmhgjyskyQs8Y7ObfEfjSz1sutVM/lG97EpHWwvouI8Bod6aDIfD6FJg5yjIBD3L4DIMCkGa5WEheQfMjuCTHfs9MbUL2RzqrY8gtB9CfR78rc5+JCsA9bzrZY4BIyIrpv8760NM5SD0z0d2fiRHETXpshbksyh3yBsquY99gGnSJpvuCTG1U9t54N9hsG7aCP19cIrrYuHht25O34LE9HFQ4w8boQWPWAfdKunegRzI+EI5EwdyuaHwGUtSMPbEGJ0su0ehdT4la+HspkfiZ6HkpYGSRpo1z+kf7s+PpYGZ+Wp/+QqOms2/BMXI7f7fprwST93UGxuxK5Taz7QehZeNmv4Kgei0YohtMAuG/OkpzBmNEepCqcjlnDqHXGGzkUoZ7UE5NONG+QCvQ8c= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521072)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:DB5PR05MB1685;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1685; X-Forefront-PRVS: 0924C6A0D5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6049001)(377454003)(24454002)(33656002)(64126003)(189998001)(4001350100001)(50986999)(81166005)(92566002)(23746002)(2906002)(4326007)(230700001)(19580395003)(19580405001)(80316001)(1096002)(5008740100001)(586003)(5004730100002)(3846002)(2950100001)(77096005)(15975445007)(6116002)(50466002)(54356999)(65816999)(87266999)(76176999)(47776003)(110136002)(36756003)(65956001)(86362001)(65806001)(66066001)(93886004)(42186005)(142933001)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR05MB1685;H:[10.15.7.169];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DB5PR05MB1685;23:qTfwud+YnKQzEFH4XTsEukFpidPwJHVFUxILB?= =?Windows-1252?Q?WdoZO+vWa2vd4sJvJGxNMljb3zXsuVxp3wqteNa/TBhrI1Nrlzwx1k7C?= =?Windows-1252?Q?LD1uBCaSno1ACVWFjkRIyu1jf2laOEPlwOLBANrFLAN3LZ17cWWCeWd9?= =?Windows-1252?Q?R3cd6HhD+ZcCFIfpGFeatQhIlVespGJaFb0s5jp4DQyi0gCYO5IC39vD?= =?Windows-1252?Q?Vl3A/sMPSt6wiPVWt+C5HFmITDcDFGWQ7yuTcTJUbVwNoNQNi840xRx0?= =?Windows-1252?Q?YaVfxvsX/EOvwoDsbXlCONIGqUA5JsbHWKRTse9Fq7XLDpUH75yk0nvN?= =?Windows-1252?Q?y2I+2YnEIeuOuWExGkhz3Kon8z8MNG/eP00JBPDRbKiqY+11U8CRPUpg?= =?Windows-1252?Q?mywuel7stFHNQUcS/7H9dXkfAdLO4UtDgBIf2jrCNlni2tdZXE0z2Xqn?= =?Windows-1252?Q?QSYqISjNADe6d4HoBB7EVY1PSkrIlfgHMawe8TB0aVVS3ekYid0ckIoz?= =?Windows-1252?Q?FNS8f3OKP4EZalRKH0nBT3RoSZShZUzDYsw6pNHIaMccZ9jnNt56yCIP?= =?Windows-1252?Q?gU6Qr4UjDT7Mue/yUejTkU/xnpbHBW+ZswIB91rEzKzkt7ngcz7BGcU3?= =?Windows-1252?Q?HT60boKQeP9a9BGX5W2JdeNMhRnHm4PSdiTjxYZ9Wo0YVud/LFFIyjjU?= =?Windows-1252?Q?Dkg3qdrnyNmd24pMl8fqll2K4gm21EncnsxrW6uCkE6pRA7HYLONHKjM?= =?Windows-1252?Q?rfJi7qzYs1GcrCW/mcjTJDTKq14ResTopOA3XOvvfWcJN/gF+dLLsyk5?= =?Windows-1252?Q?1mBoixZGsDAil500DWkJgY5+ZFaYKZfPHxE1u7a3i7QZrjngQLxlT2Oh?= =?Windows-1252?Q?Oz2pj8vxlZAxkIepRhZVdtkvqXcjOHnDdzU2bvmElL+ry8+a/KNsR50E?= =?Windows-1252?Q?FynXWkY6XFWZ1sXimCLBf+Gb7yc26K0JHZRr14SLTwwePVRlI7UJL3w0?= =?Windows-1252?Q?px+aeJzxfTjV+w0SWdCwuH4Qjm4CdDyEVCiP3zhD8caOkg9T5dZ/lgAL?= =?Windows-1252?Q?Y2HE+kPuA/5t7+IhdCse19KDsDA5WCPOEWffgYhCocZ1UVliQMpmDro8?= =?Windows-1252?Q?0r7eTv5uNNXG3DSDOJajNaZJjPi5Lz4XOk8Qq6oWCWxiJUSvaltrMj9s?= =?Windows-1252?Q?Q1uZB6NHs+jBj9LiYtErDQ1o5EM3SBvX6sMGFi8kejpQa9Q/YfG?= X-Microsoft-Exchange-Diagnostics: 1;DB5PR05MB1685;5:liVnPZTBv2zItd0F+0MrxItWlMGryWbbI29VkbLfy1bfK/2IMqfyif/xbiMcHOMFI6+CnV8FNMxEqitqZqaI4W+z81QvbpSfSxuBuGmnQYyzG80aglImgfvglCkx8+jYMNReaKIFQgR9GdovObhHGw==;24:75Q2EXB7mslIwUxhjAruNmR9lm/QkdY6a4LORo0IBUas+cxokEp6a3idjLGYUMwNThZ0JCH8WvYR8Yw1I1nwwDOAGRSlhna8YYYjKtsIYrY=;7:w7iCBP8pAcRTkuMBFLS2SA2o5RFG5cr1fYaXUmDnWSBg7qn/hL413HJcKYsidXzl/6Sfr2TCnZfD0lEE12cgDwO7J/Sck6yfzPldAQjPxCuELUi4nJubSe7rlZMusCvLQifxNS2Y1nRN8DBdXE198QTcb2BzWtfmKe/QbYamqvmpqIOxw0VfdURLoeE3hP3K SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2016 15:33:10.3855 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1685 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 543 Lines: 16 On 4/26/2016 11:28 AM, Peter Zijlstra wrote: > On Mon, Apr 25, 2016 at 04:54:34PM -0400, Chris Metcalf wrote: >> Otherwise, though just based on code inspection so far: >> >> Acked-by: Chris Metcalf [for tile] > Thanks! > > Just to verify; the new fetch-op thingies _do_ indeed need the extra > smp_mb() as per my patch, because there is no trailing instruction > depending on the completion of the load? Exactly. I should have said so explicitly :-) -- Chris Metcalf, Mellanox Technologies http://www.mellanox.com