Received: by 10.223.185.116 with SMTP id b49csp1221375wrg; Wed, 21 Feb 2018 14:27:46 -0800 (PST) X-Google-Smtp-Source: AH8x226yYtpnF4SXL4X6RKC44hH0PiMRvoPJeaxejHnAg1fM2d++aaoeP2DXdSyDhdF4zWeByBeS X-Received: by 2002:a17:902:26a:: with SMTP id 97-v6mr4499667plc.3.1519252066694; Wed, 21 Feb 2018 14:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519252066; cv=none; d=google.com; s=arc-20160816; b=fsShOzU3PVxwNG0hDo9wpvTfa9yFH/bl8R32g1RYkDwyP1Z8LF8v9q67gbGjaPQ6yd S1GzFCg62fS6V803Mw7j/a+Ai7ofRgZnhqTrzmQEDDcFc0QCYyDL5pnULKpjr6wzJqJS XJ1kf8LaBbt9zQxqw2j4m3Hj26YEZR5/++X1gDSmj3CWWcuB+0O0suc6KeeY3FXwDzxM awaKKhVhzl+9KvNUA6jwoA+B5E80rlRP3NPqrqGM8tVjBQ+qv9+/Gx0bAlrwpP5gki3i 4it8qxE4jpt3M9aAtlCULrQvP8PLPr8uZ6th/2IyOC5ZuJF0sS7xxUEBEYsYrUjweRRq xXwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=5kuo+koH5tf2PK6c0bAYspErrTjbm901+91G5Zzroi8=; b=cH+LasEb+vTKBnbEWTLZsxIMFUT2gzEeZ9melUuekkWCHFsOkuTRncRSGSn/GQiP8Z nk9d56bjcEkQYHbtQWAabbeudrazBHBtevPXHOjR7OFRSIbKXyrL6PaZUUJL37YsPIlX yOW37pV1Tqtpvt6UJnVEZA/wAGExsjJ7KPsfZ7vuO70yVBENQntdRC2Odc/2K4TeSLk9 DTC2N8Goa3IhrMHgSuiRj4LGCpycq+vGRRzcl22vohjaPGaNF00jqaeWtvoqlXKkISjq Cy7lwueIpRBR0MNR3i/Dg42XWuWZlz2pvd/2rC3kEiSTGaHKaU1XzeOEdr4t+YpZK/y8 Ob8Q== 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 j8si8081576pfi.159.2018.02.21.14.27.32; Wed, 21 Feb 2018 14:27:46 -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 S1751417AbeBUWZT (ORCPT + 99 others); Wed, 21 Feb 2018 17:25:19 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58838 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750811AbeBUWZQ (ORCPT ); Wed, 21 Feb 2018 17:25:16 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1LMOSRr013135 for ; Wed, 21 Feb 2018 17:25:16 -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 2g9eg86wj4-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 21 Feb 2018 17:25:15 -0500 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Feb 2018 17:25:15 -0500 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 21 Feb 2018 17:25:10 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1LMPArR65142856; Wed, 21 Feb 2018 22:25:10 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 623C1B2058; Wed, 21 Feb 2018 18:27:28 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.85.154.79]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 25761B2050; Wed, 21 Feb 2018 18:27:28 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 17B4016C2DFB; Wed, 21 Feb 2018 14:25:34 -0800 (PST) Date: Wed, 21 Feb 2018 14:25:34 -0800 From: "Paul E. McKenney" To: Alan Stern Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org, 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 Subject: Re: [PATCH RFC tools/lkmm 10/12] tools/memory-model: Add a S lock-based external-view litmus test Reply-To: paulmck@linux.vnet.ibm.com References: <20180221190543.GM3617@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18022122-2213-0000-0000-00000273A45E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008572; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.00993145; UDB=6.00504618; IPR=6.00772489; MB=3.00019678; MTD=3.00000008; XFM=3.00000015; UTC=2018-02-21 22:25:14 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022122-2214-0000-0000-00005931D27C Message-Id: <20180221222534.GP3617@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-21_08:,, 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-1802210268 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 02:27:04PM -0500, Alan Stern wrote: > On Wed, 21 Feb 2018, Paul E. McKenney wrote: > > > > > +ISA2+pooncelock+pooncelock+pombonce.litmus > > > > + Tests whether the ordering provided by a lock-protected S litmus > > > > > > Call it an ISA2 litmus test, not an S litmus test! > > > > Given the structure of the test, the relationship to S is important > > because it helps motivate why anyone might care. But yes, having ISA2 > > only in the filename is a bit obtuse. How about the following? > > > > ISA2+pooncelock+pooncelock+pombonce.litmus > > Tests whether the ordering provided by a lock-protected S > > litmus test is visible to an external process whose accesses are > > separated by smp_mb(). This addition of an external process to > > S is otherwise known as ISA2. > > Okay, that's somewhat better. > > However, I still don't understand why you think of this as a form of S. > In S, the first variable written by P0 is the same as the variable > written by P1. In this test, no variable other than the spinlock gets > written twice. To me that seems like a pretty fundamental difference. There is a chain of processes connected by variables, similar to a snap-together toy. If you "disconnect" S at the end and snap in a process having a pair of reads separated by a full memory barrier, you get ISA2. And yes, this does rename one of S's variables, but that is OK because in this view, each variable is defined by the connection between a given pair of pair of processes. Unconventional perhaps, but then again remember who you are emailing with. ;-) Another (perhaps more conventional) way to think of this is in terms of Andrea's python script that identified equivalent litmus tests. For that script, both the variable names and process numbers are irrelevant. Thanx, Paul