Received: by 10.223.185.116 with SMTP id b49csp537001wrg; Wed, 21 Feb 2018 02:44:07 -0800 (PST) X-Google-Smtp-Source: AH8x227KJ888JAxDFTtPg2csF7Y0MIhNhX5f16FkloizJPXfI0p3+SOyegwry1OhdgpLBVoUdVsz X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr2715576pln.182.1519209846940; Wed, 21 Feb 2018 02:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519209846; cv=none; d=google.com; s=arc-20160816; b=mKHLcYxNL9YUV0qmaaGJSGLU+mwGpgZ8nZ1Eg7CCNN90c/+w/acA1DFp5YDb+SEav4 +QIBh9iJNHYWQQeJkc1yj5n2ZG/UBLL9vD9Jvm6VsPOf10ndiHjpu+nvvVrjx1rtupvg kFr8ezqPcx3d3UEuk2076clv0Dar5RP7NwwDiPx/aEcjKDhLttv8T50plKB9pUFL/C3Z 84erKmNMWpjiUvR+UJW9nGJbWGYRmxqVfzZnogQL0Gz6SGAv2VAgg0YwyJFa+OswWhps M7CO5pfrEDM+JZQ9/D/f6N6NG6ximpycimRNuZQW2a2sIVjKRfMb8bhp3uOdHQOPTHT5 JWxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=WfzLJWxgyeMSBzbq8hwdPJ051TNK8UWRjULl93qLx+8=; b=BY6t0WmEHo1i6hP4nPw+dZtDZmONhE/3BCZr62+0uzLT5fr7PJUVl8kpm8FOPaqzAp Fbm9I+p8VbPq4ojT9EPrUCgJgY99P4oIwQTr1bgdyDb3H4X6AwUox20/bdXexcAggtl6 aW6pCCKYm5oSe/CT0gt6B3Zw8lCwncqAw96qYPX9E30xZGcRbeIU2z5HlFeN8fhFpNtc MwerEZ2dv0Vz1gsM21gi8ZjAbmjerBC5s/0yPx048mnZc21z83tee/vHiOa90Sw4PJ3B RU4G7sbOZ4OwHAGhU9WSdbTevhMMCHqw7QCV6T8HfLBeAMUODy3anHjA36z0sibzTx7B fkCA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si263978pgo.278.2018.02.21.02.43.52; Wed, 21 Feb 2018 02:44:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753547AbeBUKmt (ORCPT + 99 others); Wed, 21 Feb 2018 05:42:49 -0500 Received: from terminus.zytor.com ([198.137.202.136]:43125 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbeBUKms (ORCPT ); Wed, 21 Feb 2018 05:42:48 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1LAgOBJ002468; Wed, 21 Feb 2018 02:42:24 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1LAgOEO002464; Wed, 21 Feb 2018 02:42:24 -0800 Date: Wed, 21 Feb 2018 02:42:24 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andrea Parri Message-ID: Cc: mingo@kernel.org, akiyks@gmail.com, hpa@zytor.com, parri.andrea@gmail.com, peterz@infradead.org, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, torvalds@linux-foundation.org, tglx@linutronix.de Reply-To: torvalds@linux-foundation.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, hpa@zytor.com, parri.andrea@gmail.com, peterz@infradead.org, mingo@kernel.org, akiyks@gmail.com In-Reply-To: <1519169112-20593-7-git-send-email-paulmck@linux.vnet.ibm.com> References: <1519169112-20593-7-git-send-email-paulmck@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] Documentation/memory-barriers.txt: Cross-reference "tools/memory-model/" Git-Commit-ID: 621df431b0ac931e318679f54047c47eb23cfdd2 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 621df431b0ac931e318679f54047c47eb23cfdd2 Gitweb: https://git.kernel.org/tip/621df431b0ac931e318679f54047c47eb23cfdd2 Author: Andrea Parri AuthorDate: Tue, 20 Feb 2018 15:25:07 -0800 Committer: Ingo Molnar CommitDate: Wed, 21 Feb 2018 09:58:14 +0100 Documentation/memory-barriers.txt: Cross-reference "tools/memory-model/" 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 Acked-by: Peter Zijlstra Cc: Linus Torvalds Cc: Thomas Gleixner Cc: boqun.feng@gmail.com Cc: dhowells@redhat.com Cc: j.alglave@ucl.ac.uk Cc: linux-arch@vger.kernel.org Cc: luc.maranget@inria.fr Cc: nborisov@suse.com Cc: npiggin@gmail.com Cc: stern@rowland.harvard.edu Cc: will.deacon@arm.com Link: http://lkml.kernel.org/r/1519169112-20593-7-git-send-email-paulmck@linux.vnet.ibm.com Signed-off-by: Ingo Molnar --- 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 a863009..a37d3af 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.