From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755547AbcBBOts (ORCPT ); Tue, 2 Feb 2016 09:49:48 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:43444 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359AbcBBOtq (ORCPT ); Tue, 2 Feb 2016 09:49:46 -0500 Date: Tue, 2 Feb 2016 15:49:32 +0100 From: Ralf Baechle To: Linus Torvalds Cc: Paul McKenney , Boqun Feng , Will Deacon , Peter Zijlstra , "Maciej W. Rozycki" , David Daney , James Hogan , =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , Linux Kernel Mailing List Subject: Re: [RFC][PATCH] mips: Fix arch_spin_unlock() Message-ID: <20160202144932.GA30875@linux-mips.org> References: <20160128095718.GC30928@arm.com> <20160128223131.GV4503@linux.vnet.ibm.com> <20160129095958.GA4541@arm.com> <20160129102253.GG4503@linux.vnet.ibm.com> <20160201135621.GD6828@arm.com> <20160202035458.GF6719@linux.vnet.ibm.com> <20160202051904.GC1239@fixme-laptop.cn.ibm.com> <20160202064433.GG6719@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2016 at 12:19:04AM -0800, Linus Torvalds wrote: > Memory ordering is confusing enough as it is. We should not make > people worry more than they already have to. Strong rules are good. Confusing and the resulting bugs can be very hard to debug. One of the problems I've experienced is that Linux does support liberal memory ordering, even as extreme as the Alpha. And every once in a while a hardware guy is asking me if Linux their preferred variant of weak ordering and answering honestly I have to say yes. Even advising against it in strong words against it, guess what will happen - another weakly ordered core implementation. To this point we've only fixed theoretical memory ordering issues on MIPS but it's only a matter of time until we get bitten by a bug that does actual damage. SGI and a few others have managed to build large systems with significant memory latencies yet managed to get decent performance with strong ordering. Ralf