Received: by 10.223.185.116 with SMTP id b49csp40651wrg; Tue, 20 Feb 2018 15:28:45 -0800 (PST) X-Google-Smtp-Source: AH8x226hWuKnYxYs2eXHG/B1W6fBuGSj6VxPAZAj0Va4QXlMxO7dClM0t4W5za2s8BVwX9nSQZEa X-Received: by 10.98.76.17 with SMTP id z17mr1262863pfa.118.1519169324926; Tue, 20 Feb 2018 15:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519169324; cv=none; d=google.com; s=arc-20160816; b=s/4+eZkLfeI/UNp0IZZQc0L6gd8B2Q9gpWPvRogXLR9vv2rOQyO+K5RPN8rnMXIVcr Sa7VVq5ud+Sh9B68ceNWlm5yQs+K8OSHbFHqW56AvF8ED1hAQMHNLhe5bHWiQnVNEnsU FM0kcqQdjivsvrRz9PDtCYD+u1j7IUm1K8Y8HIzFhfZKqTO1sucHI+phsAnBEFstGGSG 6Wy4DMepvP6wDRgGs0MExBKJdBNyhczlVzoeiQwtXyDd3JmtFKvuWaSdVkemAvm9SnHd nx2P9HmoWu1cJ4KoNqLzzHllo6gXWMCUJQ8z6HlbRtI7Cxepnt5cox6stpcWNPHn8fxb tDGw== 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=4qaH9e85PehYJKLWjNLHmLpD1ycd3yUBwAXwyi+V460=; b=MGvE5w9oFBZQLD+6W2f2BcI5UFuSfvtlBERih5sDYnrj/MUNhGJ5N7MPmxOBs5GCbP lrkNCQ8opKD7XVGLSeg2b0EBWxQT3N0nmFtugxh1zSvfGWkCRzqy+LvGZyctqTDAjiBn qGx6i4HgFoFf3hs+/f4QiWOxmB0DpPDpG4sBBXdKz0z6nCjATlzGLTbtJml9MRpFr6EG nvEnJz+fccAl+Z3Rc2jD4vMVJuK5JFzEsiG9pU6S8W4pOdkSAk3+Z22JzA9OGCmTOhMI /1Yjk3YL9VBAI71C5eB8v+juVTdK1kT4ajEi0h9buGj/vRw4YUkoGHMDgXWawAT0mddE TU5Q== 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 q14si537240pfa.215.2018.02.20.15.28.30; Tue, 20 Feb 2018 15:28:44 -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 S1752147AbeBTX0h (ORCPT + 99 others); Tue, 20 Feb 2018 18:26:37 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58134 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751957AbeBTXZF (ORCPT ); Tue, 20 Feb 2018 18:25:05 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1KNNfjB085014 for ; Tue, 20 Feb 2018 18:25:04 -0500 Received: from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g8ub7c45s-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Feb 2018 18:25:04 -0500 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Feb 2018 18:25:03 -0500 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Feb 2018 18:24:59 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1KNOwEo45154472; Tue, 20 Feb 2018 23:24:58 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 204B1B2064; Tue, 20 Feb 2018 19:27:17 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.85.154.79]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id D70DAB2050; Tue, 20 Feb 2018 19:27:16 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 362D116C8699; Tue, 20 Feb 2018 15:25:21 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org, linux-arch@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, nborisov@suse.com, "Paul E. McKenney" Subject: [PATCH RFC tools/lkmm 08/12] memory-barriers: Fix description of data dependency barriers Date: Tue, 20 Feb 2018 15:25:08 -0800 X-Mailer: git-send-email 2.5.2 In-Reply-To: <20180220232405.GA19274@linux.vnet.ibm.com> References: <20180220232405.GA19274@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18022023-2213-0000-0000-000002730526 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008566; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.00992685; UDB=6.00504342; IPR=6.00772031; MB=3.00019661; MTD=3.00000008; XFM=3.00000015; UTC=2018-02-20 23:25:02 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022023-2214-0000-0000-0000592F0724 Message-Id: <1519169112-20593-8-git-send-email-paulmck@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-20_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 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-1802200276 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikolay Borisov In the description of data dependency barriers the words 'before' is used erroneously. Since such barrier order dependent loads one after the other. So substitute 'before' with 'after'. Signed-off-by: Nikolay Borisov Signed-off-by: Paul E. McKenney --- Documentation/memory-barriers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index 74ad222d11ed..0d83333b84a9 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt @@ -400,7 +400,7 @@ Memory barriers come in four basic varieties: where two loads are performed such that the second depends on the result of the first (eg: the first load retrieves the address to which the second load will be directed), a data dependency barrier would be required to - make sure that the target of the second load is updated before the address + make sure that the target of the second load is updated after the address obtained by the first load is accessed. A data dependency barrier is a partial ordering on interdependent loads -- 2.5.2