Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp73764imm; Wed, 29 Aug 2018 14:18:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7llIoiPULyUbiu+58L3Lqp8Cdk626Uvq6yIzN8BnwIgdPUSo24Fus+NuMyHRXiQPVAyUM X-Received: by 2002:a17:902:28eb:: with SMTP id f98-v6mr7391826plb.149.1535577539264; Wed, 29 Aug 2018 14:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535577539; cv=none; d=google.com; s=arc-20160816; b=0k5G/cAKVG+YI3S+hvAyw1fca4TZdqD7RWczCKS/y1aKB6tvXZXEJWsP4qLWBxQMuZ yW5rZqN4hyO9JyM5UpCv56HIEr76scB3/gvn7dCfGFE89lfcJd7rAUgU6+eI/InXASF2 cJJ5d/MFciv/iSl3USYn4ln3B0BF1vx9OL8jcYC6c0SuRLUhGy7A82za3Z9p/Q0812qE lIB1kS3WuE9cy/YHwPY2sBNWsLomiLZmm/xTBa08gVww79WT39uc4j14yxXvibSEyV1k eDb86FJ1un7YN59/IHBND93bjgyXUFHOneAQRstTeYx5HdKofItpMSNCikqtjIKmA6f4 K+YQ== 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=+5CgFfAQoEPEDDIndARqQXrDXo+KHVJsAo5eExUHwUY=; b=nHjUynegoYaG+20hNYRU5qDVIjJUbqYFl3ZnoOnrRCIgmNEKXD7b0c5DK8v36Qn7oz zf/HQj1FbM8tmONd/feCa6P8JhPlBByHKd+TneeCG5Y4dPPHXYhN4poAZi6X0OWhoQ2+ SgLhHJT3vA9wu5V/KMX/HmPGEVcNk7mWDwlV7H6xmlPSGkO2NYhhHtGYZX1ZlZWHhgUB qiTkv6BXlcW3clV0QbSOLaV349a4IrnQqjWY5cEf6XZVJR3pkzkESB1d5pL2RR0SoLaX ezK1DQy+GUCughk3ZLvLIiOCuISetjPhkKDaaMqxDy3QOyqemDckbE6cXhBSeQ2/aXrP R4mQ== 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 d2-v6si4731190pfb.262.2018.08.29.14.18.44; Wed, 29 Aug 2018 14:18:59 -0700 (PDT) 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 S1729091AbeH3BQP (ORCPT + 99 others); Wed, 29 Aug 2018 21:16:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55962 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728699AbeH3BQN (ORCPT ); Wed, 29 Aug 2018 21:16:13 -0400 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 w7TL8n7A055931 for ; Wed, 29 Aug 2018 17:17:30 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2m61jbuy02-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 Aug 2018 17:17:29 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Aug 2018 17:17:29 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 29 Aug 2018 17:17:24 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w7TLHNMY24445172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Aug 2018 21:17:23 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 614A5B206B; Wed, 29 Aug 2018 17:16:19 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41022B2065; Wed, 29 Aug 2018 17:16:19 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.159]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 29 Aug 2018 17:16:19 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 991FE16C3063; Wed, 29 Aug 2018 14:17:23 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 1/6] doc: Add design documentation on interruption of NMI handlers Date: Wed, 29 Aug 2018 14:17:17 -0700 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180829211637.GA20980@linux.vnet.ibm.com> References: <20180829211637.GA20980@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18082921-0072-0000-0000-000003996243 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009636; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01080717; UDB=6.00557481; IPR=6.00860703; MB=3.00023001; MTD=3.00000008; XFM=3.00000015; UTC=2018-08-29 21:17:27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18082921-0073-0000-0000-0000493E8E1C Message-Id: <20180829211722.21694-1-paulmck@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-29_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=882 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808290206 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make Requirements.html talk about how NMI handlers can take what appear to RCU to be normal interrupts. Signed-off-by: Paul E. McKenney --- .../RCU/Design/Requirements/Requirements.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/RCU/Design/Requirements/Requirements.html b/Documentation/RCU/Design/Requirements/Requirements.html index 49690228b1c6..089a8e8faac1 100644 --- a/Documentation/RCU/Design/Requirements/Requirements.html +++ b/Documentation/RCU/Design/Requirements/Requirements.html @@ -2275,6 +2275,17 @@ he also kindly surprised me with an algorithm that meets this requirement. +

+Furthermore, NMI handlers can be interrupted by what appear to RCU +to be normal interrupts. +One way that this can happen is for code that directly invokes +rcu_irq_enter() and rcu_irq_exit() to be called +from an NMI handler. +This astonishing fact of life prompted the current code structure, +which has rcu_irq_enter() invoking rcu_nmi_enter() +and rcu_irq_exit() invoking rcu_nmi_exit(). +And yes, I also learned of this requirement the hard way. +

Loadable Modules

-- 2.17.1