Received: by 10.213.65.68 with SMTP id h4csp433380imn; Sat, 7 Apr 2018 01:53:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/0/HCrHmCW3A0GcOgCu/FYqXaJNkfn2XowdJ925RRr75876R8pnSFoLH4SYONinvsB9iTh X-Received: by 2002:a17:902:650e:: with SMTP id b14-v6mr30856981plk.147.1523091202960; Sat, 07 Apr 2018 01:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523091202; cv=none; d=google.com; s=arc-20160816; b=Ll4swR4YzUGoyiPPNvPFHGruk6PXecrHJ07xJUQ9nT0C5vQmfcxG+kpwM/nRMSKr76 NKvu35K1ML1GRmgsJJBkWcR5p1RMbuewrWcD4c2aRQguMqfqGi2EGdHQTE+a8rtJLUZy M4ZFfNMtJ22a0AE77U2TyCEZtE06IVeALdcQFABleX+f9oQJOCsnL8qthmOHIMaC0f9L IBxHKn5TheWIg6kLZoJS7hh1YeU7Uye4RLXffmq0XBqdzcDkaumrAvmCMkjlK3LcvAU8 8uBYBl/QpCyFW+GZHlMTfM/NwaltILshbpREDVhXfu/XscY32ldzv7uCXquD5/Ul6Nhb BJ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=N7Ss+SBP3XSy70nO45jQopikNrhdd7vEPLMomei+u3Q=; b=bJTBPzVPaNPfAfzVhC74cH2d2bOL6C0uRIF7m4q6FQFP52t9fBQANnucY1G1aSVWCi E6yW4Da2qtD7oUOJC87DywC59hrlG1sNk1RCGaFL2UC1F6iVEhCIeDKYSMqVpkXqjOAE P5xQBnGMDQqIupVon6FN2wq6U2AP8OkrdKG9d/ceiVHxBzz4jQPTQ8fv9uMJAVuNIZ8h l7MJnwjXhl+fhSNd8TZxeTJZVrJ56PeVv8XMcl9b5OEnVEHF0qyfALrbkTi0MtS+lTAN 5LTOjT36t1zunys2FW7hWJxTgOLHWxM5JJ3M7vch2QCt0i+WipEeugM1uqGV9i4qwZK6 7xag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Bp8FcZEI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a73si9501587pfe.23.2018.04.07.01.52.15; Sat, 07 Apr 2018 01:53:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Bp8FcZEI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbeDGIrj (ORCPT + 99 others); Sat, 7 Apr 2018 04:47:39 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33252 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbeDGIri (ORCPT ); Sat, 7 Apr 2018 04:47:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=N7Ss+SBP3XSy70nO45jQopikNrhdd7vEPLMomei+u3Q=; b=Bp8FcZEIp/JOMW2erT0ohpFSK /XjWSBmoEqflRql6poLs06Zc9xnLffqBesuI/Ydvc9qmBxjdZN3U7zAemwq5BYfjm5650yJGr6uPF KTFfj2WHuRr3xgvqfBwmonYBjgxET0doWYfTrfWMAVREAhU3ksOS6HznjyM0nZHm7iHiOba+cD09Y AWHHTdnjgM2lolnfUwLCLBklMojq+8BWrKF/chhEuOMhuQywCC37BPheW10pm8aE4otGMltxpMgTO HhsrBcVnhXt0L5Sk+0UdXoCC8jJgBDgiGokYMPTn+3WhUfhpLGEUaR2dF876udyfWw+oL20T3UxlI 5cQeQ6J4A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f4jVW-0005hj-PH; Sat, 07 Apr 2018 08:47:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7A48F20298CF9; Sat, 7 Apr 2018 10:47:32 +0200 (CEST) Date: Sat, 7 Apr 2018 10:47:32 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Waiman Long , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org, boqun.feng@gmail.com, catalin.marinas@arm.com Subject: Re: [PATCH 02/10] locking/qspinlock: Remove unbounded cmpxchg loop from locking slowpath Message-ID: <20180407084732.GO4082@hirez.programming.kicks-ass.net> References: <1522947547-24081-1-git-send-email-will.deacon@arm.com> <1522947547-24081-3-git-send-email-will.deacon@arm.com> <20180406210953.GA24165@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180406210953.GA24165@linux.vnet.ibm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 06, 2018 at 02:09:53PM -0700, Paul E. McKenney wrote: > It would indeed be good to not be in the position of having to trade off > forward-progress guarantees against performance, but that does appear to > be where we are at the moment. Depends of course on how unfair cmpxchg is. On x86 we trade one cmpxchg loop for another so the patch doesn't cure anything at all there. And our cmpxchg has 'some' hardware fairness to it. So while the patch is 'good' for platforms that have native fetch-or, it doesn't help (or in our case even hurts) those that do not.