Received: by 10.223.185.116 with SMTP id b49csp40053wrg; Tue, 20 Feb 2018 15:27:55 -0800 (PST) X-Google-Smtp-Source: AH8x225nu17xpr10im/g32IxJ9cJ9SvFShdoQrSa6KfT1TCgDJqImAZWOGam9jrLHn0xSQoHTn4O X-Received: by 10.101.77.134 with SMTP id p6mr1012405pgq.230.1519169275826; Tue, 20 Feb 2018 15:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519169275; cv=none; d=google.com; s=arc-20160816; b=lLhYTMJqZwgi2P498mGuJwVVBWiBJAfETKpe5dLWeskm8CwWFoM0VPcSmuPcLuKWGT hBcYqU8UXNzHEnJQYRL2MJ4LqEAPG+81u9uc29vbRJIc+Yrq6ct2eug7/rbXMGLhz9p0 tF1FpSiQscZ+Qagd/0zRoZUAQGb3omTg6W7juKIw1/cloY+LRqvwboCDD45drIohNdWb NwF0YnZgzYQEYIE+p13y2mbSG01l0yUJWCBrJyCfrcIXTaJc4NAT8NwFldwr6mo7bHfG FKOobCjvtgwnEcS4plisMkedq9Earg55Ce7KKW9B37/4C40rD7udyuJ3jrZ+kbbcV8bM Jx2Q== 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=xMvjKX1TH9dnK1QLCR+jwVsHI6CI6H/Sn5ki7fPaprI=; b=Dk5d7haCmDjzptiJYvR1gSGlePG5oBqpIg5zMNRys3AWdIbgYDDghm75Tei1ZEOTyf KXTiyAskYeYhylhunTAqa+lQsJOHRUcvoDAaXOPs1w+y7ZwPMiOEPEj7pD3kcuj6ClrJ hXBVtcoAn5B1DHKnjbsREgc+QNXkuH+9NmdGyDFRgbF4B/xAbCdKfY+617nbkW6+VSjR GzX2UfcsT+ahlMrabaBtp5F9rZFtHoqYAnZ0AUmdaRkjyr+qyz4ncdmVGCZZfbtAPq97 +YYc7QhlniyHNnv45Hbem8srw/jkNfB0x9M03rkdEIepo0srK98PQsF7HZWd+D0axx6t UIIQ== 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 p27-v6si349914pli.328.2018.02.20.15.27.41; Tue, 20 Feb 2018 15:27:55 -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 S1752117AbeBTXZ6 (ORCPT + 99 others); Tue, 20 Feb 2018 18:25:58 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33020 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbeBTXZF (ORCPT ); Tue, 20 Feb 2018 18:25:05 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1KNORZS100574 for ; Tue, 20 Feb 2018 18:25:05 -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 2g8rmn2qun-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 w1KNOwFL49938652; 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 1AD9BB205E; 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 D3324B2056; Tue, 20 Feb 2018 19:27:16 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 3001316C8698; 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 07/12] Documentation/memory-barriers.txt: Cross-reference "tools/memory-model/" Date: Tue, 20 Feb 2018 15:25:07 -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-000002730527 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-0000592F0721 Message-Id: <1519169112-20593-7-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 spamscore=0 suspectscore=3 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=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: Andrea Parri A memory consistency model is now available for the Linux kernel [1], which "can (roughly speaking) be thought of as an automated version of memory-barriers.txt" and which is (in turn) "accompanied by extensive documentation on its use and its design". Inform the (occasional) reader of memory-barriers.txt of these developments. [1] https://marc.info/?l=linux-kernel&m=151687290114799&w=2 Co-developed-by: Andrea Parri Co-developed-by: Akira Yokosawa Signed-off-by: Andrea Parri Signed-off-by: Akira Yokosawa Signed-off-by: Paul E. McKenney --- Documentation/memory-barriers.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index 479ecec80593..74ad222d11ed 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt @@ -14,7 +14,11 @@ DISCLAIMER This document is not a specification; it is intentionally (for the sake of brevity) and unintentionally (due to being human) incomplete. This document is meant as a guide to using the various memory barriers provided by Linux, but -in case of any doubt (and there are many) please ask. +in case of any doubt (and there are many) please ask. Some doubts may be +resolved by referring to the formal memory consistency model and related +documentation at tools/memory-model/. Nevertheless, even this memory +model should be viewed as the collective opinion of its maintainers rather +than as an infallible oracle. To repeat, this document is not a specification of what Linux expects from hardware. -- 2.5.2