Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2952806imm; Thu, 24 May 2018 19:47:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXtbduwFh0LWhvohb+oI/Ed+0bPUUDZ1UgILLuigcXkke+EL2iP8n0hbQEH6IMcQ4TCHGr X-Received: by 2002:a63:7001:: with SMTP id l1-v6mr492787pgc.358.1527216435669; Thu, 24 May 2018 19:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216435; cv=none; d=google.com; s=arc-20160816; b=e/DLUvVygZKlPHlnprpzs6oC20HWXmZUknAMuF8jvLlJood6MJ54dshMdCMS7l33YU HYn0wrKtxxD0Xt+SRbOgNSPPjK1kZvc0XDS8K3Lr+hb5SsuKgL0m44jAMIXoCwcYaJ6e Lek21AiDDrd+in8AdunTbRtdAHuYZ7cOybquZ0Cu3vLsi9dnRXjqzY6E5ew6m0jAEZDI bwrtr1DDMjq+Lmbf4yxw4MGOzkDVmnxjFQ06g+LPRL6ihQZNSR6XR8erTVQWD3RDQduQ 1ki9Viyy7kV5yZF5R8cAm7YizF8IuK70Sn82ng4Jnm8HPeV/CVYZDYIRS/DK0+96lJ6Z U2qw== 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=hmvKklzxOFc8FzdLVJcqkl9yHi1bz1aGSFxpJtgVhwA=; b=ZgNRjdKCk3ThstbOnE9RV3TNmboZLak1rYS1TwlGLSJWoA/VErCooSTv7WppsR2ejr 43jeR1nSJgYek+s4kBZ79wDma5fMVxARpwCxyTiR2vnOS1ZISi6LYDhy9rZo6ur+ywmN seeq2xhwgkuCtwBOhSL/DTPcx09SZ0+9tIXor+wh/CbFgTBmm87p0GwvXZbIzEE38FZG c8v7ATHJ5fFDJFUxT4mrCu/mrtLOJu47KlOHJKHXosZ4qhla/ioucLs77eEmIc9MzkIc wVkN8nxU56rVOjNwZ8inAiPqzScpnO+VV7Gs/GeqMgrDmzV8UQrdmelDTUKsio11Kur2 wrJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1S/T6HHY; 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 l11-v6si16550598pgp.426.2018.05.24.19.47.01; Thu, 24 May 2018 19:47:15 -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=merlin.20170209 header.b=1S/T6HHY; 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 S1755179AbeEXWc7 (ORCPT + 99 others); Thu, 24 May 2018 18:32:59 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58446 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751407AbeEXWcz (ORCPT ); Thu, 24 May 2018 18:32:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=hmvKklzxOFc8FzdLVJcqkl9yHi1bz1aGSFxpJtgVhwA=; b=1S/T6HHY02PwrpKzPQB2vE/ZQ nGqt8q06J1RM8kPNYHQBE3SjHtdEma6KZrLaVetIvNH0Bg5M1xkazBu5JZnfeuiBB8nbk8WqZVLiQ LTQGEOV198D/A9TNyDOvLcXb+EIboMru+dpP1olB+A8T8zsRWI/NFoR7PICnxEtYY+159A5BBAMwy klQ62EOF2GbAgZVCusrwagwAlrj/s6hq7QXB1QXJihTlp86rxT2qkG+ZCP1yYJyU78ZuE3x4iJsua VhrzctwA0w7F7qLQ5j8LKCyVbWTX7ds5YzLbIjDot9HJqLM4WSD93rWYLr9qJz/eoXSOKbY3EA/wQ 2gOEcLNGg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLymt-0002Kw-3o; Thu, 24 May 2018 22:32:47 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A1E102029F86C; Fri, 25 May 2018 00:32:44 +0200 (CEST) Date: Fri, 25 May 2018 00:32:44 +0200 From: Peter Zijlstra To: Andrea Parri Cc: Mark Rutland , Will Deacon , linux-kernel@vger.kernel.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, yamada.masahiro@socionext.com Subject: Re: [PATCH 6/9] asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_* Message-ID: <20180524223244.GO12198@hirez.programming.kicks-ass.net> References: <1527159586-8578-1-git-send-email-will.deacon@arm.com> <1527159586-8578-7-git-send-email-will.deacon@arm.com> <20180524124410.GF12198@hirez.programming.kicks-ass.net> <20180524124734.GE8689@arm.com> <20180524130948.f37eltocl5tnittp@lakrids.cambridge.arm.com> <20180524220610.GA7607@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524220610.GA7607@andrea> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 25, 2018 at 12:06:10AM +0200, Andrea Parri wrote: > Hi Mark, > > > As an aside, If I complete the autogeneration stuff, it'll be possible > > to generate those. I split out the necessary barriers in [1], but I > > still have a lot of other preparatory cleanup to do. > > I do grasp the rationale behind that naming: > > __atomic_mb_{before,after}_{acquire,release,fence}() > > and yet I remain puzzled by it: > > For example, can you imagine (using): > > __atomic_mb_before_acquire() ? > > (as your __atomic_mb_after_acquire() is whispering me "acquire-fences"...) Yes, I really do think he means acquire-fence. It is however something I have vague memories of not being liked much because it is the memop itself that carries the ordering. That said, this is only an implementation detail and not a public interface, so maybe we can get away with it.