Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6291041ybv; Tue, 18 Feb 2020 13:54:10 -0800 (PST) X-Google-Smtp-Source: APXvYqy+MMaeDy2LVnoHYBA9ovzNeDaWq17tYEQUBrodjVkx8asLDFT1n/mwBPWsbldeifxJ9CKI X-Received: by 2002:aca:503:: with SMTP id 3mr2697882oif.106.1582062850204; Tue, 18 Feb 2020 13:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582062850; cv=none; d=google.com; s=arc-20160816; b=SkkrsyWAIRwSKOXI3hyb9Rto4y0LbPf9k3K7LQslrA2mE7vU17CF3hgeFLFUizzAvj MJJT5sg1tyX+byhCuLMq+h7FsfXVYAuQfNybO9N+W1QEnzJnNaqT1yOIoGXSvt25o2Aa TwGc46TxRyYdaxVpk2RliL9wgqDadf4gzrQWZ+Twwdt92R3jdrLCS3+oaRELoPXolnAi 8h0ck1BdcJHFakRmmKTAR4h7ksiGpsehg1a9UTdBB8ak5Cc/bKDn89KRa2i07z33Rghf JbT0b31nrof2Q4wxtNKLyT8l4LFr8TExpC5uR6rzLEiZM6KHhBU85nf87nFtS+z08+tO rXtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TVHpoS6plyzACu0vk9UnX06s7fnOOIPSB1JSNnBqV2c=; b=LBSkj4uEEEKR+04sRhBibGVIgd0dnaUiO7VAQsFmRuRMzzToWLrsbHL2LzKGAN/PC9 4WONJS/5RMOFhSnpRAxrnknaB+hYqc4rGEslmGPezq6D/1GAcqUkJbHPakFvmPg4EQLZ TeZXm+FBSeWu6pZdmEWaM8myBF9al9np56Lz4a9az5xBaLdmUhiVY2vHS7PZIslpOTz2 0vslXw1ScUBfUxzaGpuLEUKQdVuRPEbOv25mo3xivaz/sf8ahEcuMLuvDUx5yjUdeyjW 6o1uYrbnIJ/kqqDlTKDw69kF4DeaflXcvH6tlvzhNhI2r9VsBcIjY04JaPd5dj1Dk8p1 Xisg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ktybOmcX; 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 l14si31950otk.225.2020.02.18.13.53.58; Tue, 18 Feb 2020 13:54:10 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ktybOmcX; 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 S1727979AbgBRVxf (ORCPT + 99 others); Tue, 18 Feb 2020 16:53:35 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:56846 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgBRVxe (ORCPT ); Tue, 18 Feb 2020 16:53:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TVHpoS6plyzACu0vk9UnX06s7fnOOIPSB1JSNnBqV2c=; b=ktybOmcX5Nbv7T3M2y32Yi1O2c aeb5lBs/jS6U8KGZOGpA7gNbiKbw7FoKrh57K4I9mVBW3Cto/eOt67Q3ld2bFeha1lePKmTOe2z/P AC70cB1jnhGyO9D6ghtog9/XkqUKpHYYgTlORR1Ychoj3uZ9QN86TrmQCgpNk8pOJJctt8kr7LlA+ gm1vn6cBSTzS0U1Z6/j0Su+HPcls7Wts8QrYaI0pK1V/Jw5rsS23ZGD6SJYQMSxbD8PkSWqs9DUXu dZfTjICtCX8XOolh2PHs3UiMOgwwW0zCMLf+cl+aFsa1Ga41MYkycMkv16hWhea9zKrHn2evMHOzj /8i38ggw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4Ao3-0000lt-MR; Tue, 18 Feb 2020 21:53:27 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id B315E98045F; Tue, 18 Feb 2020 22:53:25 +0100 (CET) Date: Tue, 18 Feb 2020 22:53:25 +0100 From: Peter Zijlstra To: "Luck, Tony" Cc: Borislav Petkov , Steven Rostedt , Andy Lutomirski , x86-ml , lkml , paulmck@kernel.org Subject: Re: [RFC] #MC mess Message-ID: <20200218215325.GE11802@worktop.programming.kicks-ass.net> References: <20200218173150.GK14449@zn.tnic> <3908561D78D1C84285E8C5FCA982C28F7F57B937@ORSMSX115.amr.corp.intel.com> <20200218200200.GE11457@worktop.programming.kicks-ass.net> <3908561D78D1C84285E8C5FCA982C28F7F57BDFB@ORSMSX115.amr.corp.intel.com> <20200218203404.GI11457@worktop.programming.kicks-ass.net> <20200218214904.GD11802@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218214904.GD11802@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 10:49:04PM +0100, Peter Zijlstra wrote: > diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h > index da0af631ded5..146332764673 100644 > --- a/include/linux/hardirq.h > +++ b/include/linux/hardirq.h > @@ -71,7 +71,7 @@ extern void irq_exit(void); > printk_nmi_enter(); \ > lockdep_off(); \ > ftrace_nmi_enter(); \ > - BUG_ON(in_nmi()); \ > + BUG_ON(in_nmi() == 0xf); \ That wants to be: BUG_ON(in_nmi() == NMI_MASK); \ > preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \ > rcu_nmi_enter(); \ > trace_hardirq_enter(); \