Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8632595imu; Thu, 15 Nov 2018 14:58:06 -0800 (PST) X-Google-Smtp-Source: AJdET5fJzE9/NhcRltaU2Q9Zp1SV9su00JZZwDOfYX/GVdpIcyFvVPfV55bpByh81zoPRMKXKLaI X-Received: by 2002:a63:cb4a:: with SMTP id m10mr7307232pgi.105.1542322686214; Thu, 15 Nov 2018 14:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542322686; cv=none; d=google.com; s=arc-20160816; b=QUBD1RgYBWKCUYfwOiPkaw82dg+MXjIcT5O5nl57Wa20b+MSDVaRvK/wkOfO295ubF vj+Ot25pD1KyxSpjADy+GopAMZ+PTF4CaEptbcSapu91yGO7PscPNat4J+dwwmi9pjQF fKmG10nlAFUSsNVW404jeCfHCQ78ELojvcUn4lrrqtVw4VwJIHFgWArHOZZLcSuiBIDT IOE302A36K/ws7nOSy/Fz3jFNQ+2HKHsJpD2OH4jQfOQFwKBGzJ+ABdX5DKJFaOApSFF 4bn2GxBEQTpjE4JGVDYuTUAnqX/Jn1VS/etkY6MStDPUBD7BKZs33aMpKWHEjPVK0Vd/ +8vg== 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:content-disposition :mime-version:reply-to:subject:cc:to:from:date; bh=zxsimaha00kIaKdqVrsrogLIUAcrLz/P8M/Dd0hCX8Y=; b=WULZoEdYzG9izNFboZ8dN271FI4RaJjnOaZNFP/jo2T5R78rae5p+aNWtkc9/beFDh +nJKn3p4qu7gV8ALz0qBMfG1oi+3v8nAV7joqLx18O5YgGOEgaVl+q1BPunmj12jKcqK n09V1v9TYM/hTi1k2FMV08jXiNHe5ZiYH0FCDMALpZgoJoZirMVYAY46En1b5y/Oe+Gh LRIAsbNIq70canxr2+tX4VXXYZuiab5htwOh7RhPPFPA1x3ZJfMmYWvhx4gW0Uq8pqoT UIiDQzgDBjPtzU2wXTQA1RHT59aCufHBHiiySgdv6AwbjR8Ta+WenJVB+gf63rsQ6J+W /yzQ== 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 c15si25337878pgg.446.2018.11.15.14.57.51; Thu, 15 Nov 2018 14:58: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbeKPJG3 (ORCPT + 99 others); Fri, 16 Nov 2018 04:06:29 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53912 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbeKPJG3 (ORCPT ); Fri, 16 Nov 2018 04:06:29 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAFMtODF008107 for ; Thu, 15 Nov 2018 17:56:40 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 2nsfewyq7e-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 15 Nov 2018 17:56:39 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Nov 2018 22:56:37 -0000 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 15 Nov 2018 22:56:32 -0000 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 wAFMuV9Z44171400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Nov 2018 22:56:31 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EFAC3B206C; Thu, 15 Nov 2018 22:56:30 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BEEC6B2064; Thu, 15 Nov 2018 22:56:30 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.168.9]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 15 Nov 2018 22:56:30 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 40B0216C373E; Thu, 15 Nov 2018 14:56:30 -0800 (PST) Date: Thu, 15 Nov 2018 14:56:30 -0800 From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org Cc: 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 Subject: Q&A from "Concurrency with tools/memory-model" Reply-To: paulmck@linux.ibm.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18111522-0040-0000-0000-0000049333FE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010057; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01117993; UDB=6.00577119; IPR=6.00898102; MB=3.00024184; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-15 22:56:35 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111522-0041-0000-0000-0000089C3FE6 Message-Id: <20181115225630.GA30917@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-15_17:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=343 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811150198 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! Good turnout and some good questions here in Vancouver BC, please see below for rough notes. ;-) Thanx, Paul ------------------------------------------------------------------------ "Concurrency with tools/memory-model" Andrea Parri presenting. Rough notes of Q&A. o Want atomic bit operation. o But smp_read_barrier_depends() not there, so how to note pairing? A: Note the dependency as the other end of the pairing. o Speculation barriers, as in Spectre and Meltdown? A: This would require adding timing, not in the immediate future. o What ordering does system calls provide? A: None that we know of. Boqun: Userspace needs to explicitly provide the needed ordering when interacting with the kernel. Some architectures do provide full barriers, but not to be counted on. o Why herd7? A: Based on other formalizations -- note that herd7 had a number of hardware models. Paul: Plus the founder of the LKMM project is a co-author of herd, which might have had some effect. o Why not also model interrupts and NMIs? Promela and spin have been used for this. A: Cannot currently model them. You can emulated them with additional threads and locks, if you wish. Vincent Nimal and Lihao Liang have done some academic work on these topics.