Received: by 10.223.176.5 with SMTP id f5csp736317wra; Fri, 9 Feb 2018 06:26:35 -0800 (PST) X-Google-Smtp-Source: AH8x224h242vcGejZjOGy+fSLrhjrA/Oix+bj/JWDa3wDmsVk6HXWnQCngOqRIv4Ub957s165DNe X-Received: by 2002:a17:902:7614:: with SMTP id k20-v6mr2725064pll.343.1518186395407; Fri, 09 Feb 2018 06:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518186395; cv=none; d=google.com; s=arc-20160816; b=ULovL6O0+1X+Q7wADkckk8TK33QKatJYRA13oc5xSkaqIv4amjAs35Hwz3axNlm3U8 54dXCFH5N9JHkgulVOguRRkdExpie5Qg5m0Qs04YJKdf+upMVJlGX+5ueUl6O7UrgOgc uX4em7vmBCU2GpqG5rkA6InN9/JSuONzYQkGdU8AiJmhPyni4l188YCKia7bIJT+06Z5 xUi34D0Bf74p75fG9K7NfH/QA2FrHAzw40f4OABMdkDCS67HQfmF/rG6Wy1kXP986DMD DK/PLTpZ7Ef3EG6Bj3bZMQYGYY+RL3B9pDGapLRG+no+hEL6hjJPBgvl+GRradSSKUGY S9zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=Y54o05pHdZDf0pMelN/0hHZ+3DpcFMDR4g2rD8rGxwE=; b=NVcue6nlR2JSVjE7MBtdnRbTN6Xs/uAzRWa7V0TzTJdJNRbiAExBUFqWmm3gTh47UZ 1AO0gmDrxYoEO+iRH4Xq1enyriqJ05EzOdafx6KaTyTLVZaFi0NHtqoT/AfYL83N9tMb jumgdrY0nXogNbFT7ddHho5JlMuzZyeWBm6mIDFO7qpFYUFY4RrD7S/rDJJnrP/qOg68 j/E5xq4A9HOAM4zKMZVR/pe+bk5EeQ/TzWZLOrZuvc3Lk7l/gEmXrksCmququaXxS+iY evUiy1nuctD14icO7QYKHOuAA5WjjWhl/DLpKMa9GvoOGsh2JeLCfb9YostP8saSJv8n khsw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q69si1792427pfa.300.2018.02.09.06.26.21; Fri, 09 Feb 2018 06:26:35 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752587AbeBIOZQ (ORCPT + 99 others); Fri, 9 Feb 2018 09:25:16 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58648 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752189AbeBIOV6 (ORCPT ); Fri, 9 Feb 2018 09:21:58 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w19EJaK1003519 for ; Fri, 9 Feb 2018 09:21:58 -0500 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g1brn4aph-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 09 Feb 2018 09:21:57 -0500 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 9 Feb 2018 09:21:57 -0500 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 9 Feb 2018 09:21:52 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w19ELpOZ43778148; Fri, 9 Feb 2018 14:21:51 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB024B204E; Fri, 9 Feb 2018 09:18:46 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.80.219.97]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 5B002B205A; Fri, 9 Feb 2018 09:18:45 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 40D1616C6AF4; Fri, 9 Feb 2018 06:20:33 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com, "Paul E. McKenney" Subject: [PATCH RFC tip/lkmm 08/10] EXP Remove understore from smp_mb__before_atomic() workings Date: Fri, 9 Feb 2018 06:20:29 -0800 X-Mailer: git-send-email 2.5.2 In-Reply-To: <20180209141832.GA17505@linux.vnet.ibm.com> References: <20180209141832.GA17505@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18020914-0008-0000-0000-000002CF3CB1 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008504; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000250; SDB=6.00987228; UDB=6.00501083; IPR=6.00766585; BA=6.00005821; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019457; XFM=3.00000015; UTC=2018-02-09 14:21:55 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020914-0009-0000-0000-0000383403C8 Message-Id: <1518186031-17997-8-git-send-email-paulmck@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-09_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802090184 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Paul E. McKenney --- tools/memory-model/linux-kernel.bell | 2 +- tools/memory-model/linux-kernel.cat | 2 +- tools/memory-model/linux-kernel.def | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/memory-model/linux-kernel.bell b/tools/memory-model/linux-kernel.bell index b984bbda01a5..558bbef9e08a 100644 --- a/tools/memory-model/linux-kernel.bell +++ b/tools/memory-model/linux-kernel.bell @@ -28,7 +28,7 @@ enum Barriers = 'wmb (*smp_wmb*) || 'rcu-lock (*rcu_read_lock*) || 'rcu-unlock (*rcu_read_unlock*) || 'sync-rcu (*synchronize_rcu*) || - 'before_atomic (*smp_mb__before_atomic*) || + 'before-atomic (*smp_mb__before_atomic*) || 'after_atomic (*smp_mb__after_atomic*) || 'after_spinlock (*smp_mb__after_spinlock*) instructions F[Barriers] diff --git a/tools/memory-model/linux-kernel.cat b/tools/memory-model/linux-kernel.cat index babe2b3b0bb3..31c08a44c088 100644 --- a/tools/memory-model/linux-kernel.cat +++ b/tools/memory-model/linux-kernel.cat @@ -29,7 +29,7 @@ let rb-dep = [R] ; fencerel(Rb_dep) ; [R] let rmb = [R \ Noreturn] ; fencerel(Rmb) ; [R \ Noreturn] let wmb = [W] ; fencerel(Wmb) ; [W] let mb = ([M] ; fencerel(Mb) ; [M]) | - ([M] ; fencerel(Before_atomic) ; [RMW] ; po? ; [M]) | + ([M] ; fencerel(Before-atomic) ; [RMW] ; po? ; [M]) | ([M] ; po? ; [RMW] ; fencerel(After_atomic) ; [M]) | ([M] ; po? ; [LKW] ; fencerel(After_spinlock) ; [M]) let gp = po ; [Sync-rcu] ; po? diff --git a/tools/memory-model/linux-kernel.def b/tools/memory-model/linux-kernel.def index a397387f77cc..ff4b756f4a44 100644 --- a/tools/memory-model/linux-kernel.def +++ b/tools/memory-model/linux-kernel.def @@ -21,7 +21,7 @@ smp_mb() { __fence{mb} ; } smp_rmb() { __fence{rmb} ; } smp_wmb() { __fence{wmb} ; } smp_read_barrier_depends() { __fence{rb_dep}; } -smp_mb__before_atomic() { __fence{before_atomic} ; } +smp_mb__before_atomic() { __fence{before-atomic} ; } smp_mb__after_atomic() { __fence{after_atomic} ; } smp_mb__after_spinlock() { __fence{after_spinlock} ; } -- 2.5.2