Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4603144imu; Tue, 29 Jan 2019 04:31:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Bh4PbeHt9YDtsTkK2fd1Agi5k+00SWIHem7F1bHYiMZlrDg3zaLGyAjRd5h5lQByi5nkI X-Received: by 2002:a17:902:a58c:: with SMTP id az12mr19581229plb.299.1548765119484; Tue, 29 Jan 2019 04:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548765119; cv=none; d=google.com; s=arc-20160816; b=TbMjnmShnhhhYEwai0Fz7C4B/JcQOqG30rs51WzmmFUiOe8LCQTul37MXZS+K80tRZ 42sPVZHKfI1gSIJ0RZAqGf8vR6ENSwX87SBDpTtAt8qP3s+6Gug2oHLf7fN3cJLGuzF4 fBJSrJqlF1h3LsCbB6bbD8+wLX1/j7lB0B1vhQWi4dPLkHEcgla5vl2ID8zNfzhkwig+ QpKkZedEVAz6uR6PgaF/m0Q6vWk4etw6UfgoCPZiutPGpJuOfbrLuAC6jilbBcKNO10e phMcomm9yM90Ij2ytfHNHb2o5ESk+vGmaqQoHEDm6IjvSt+dEB8isI0Y1u5RjcBGfCnN Owzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=mSIStcpUzPawzMgGw37asZb2EyWrLXxXegG2ZXxiS6M=; b=LFwZA8hM1yK05+QWAqEpHovfyT//CvWLwsuMl4BtwH5su2NAzgyKMqr/ySxrmw44/y X77FY++PyCAffcnDC+10YNrQFZcfaHb7Fzld50I58gb7i6lMLY1Aj2qYDBbe8xkN7MuW BTPS2GEtuuhu4fzoaMTNz5wTC3WBV2GfMZYReYL+qwTHEn+XH2mvrxE0HRurtG3fHDJS adCwVs+hM+wGCZQcEJiifJntXMIccYjyFdmoCVxcncRcOoQyVoXNAkvvvgMy/aGOVeOs 5S7fi0n2eWKsY4UTMPIfrVPJJOlWiZ60S1DiYhB1Yo6hRnVh5nfQInaVGOhDK9NfNO6u GuPw== 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 u11si35014157pgo.474.2019.01.29.04.31.43; Tue, 29 Jan 2019 04:31:59 -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 S1729104AbfA2MbC (ORCPT + 99 others); Tue, 29 Jan 2019 07:31:02 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727939AbfA2MbC (ORCPT ); Tue, 29 Jan 2019 07:31:02 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E6B41EBD; Tue, 29 Jan 2019 04:31:01 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.37.186]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 173A93F59C; Tue, 29 Jan 2019 04:30:58 -0800 (PST) Date: Tue, 29 Jan 2019 12:31:00 +0000 Message-ID: <868sz3ve63.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Julien Thierry Cc: , , , , , , , , , Thomas Gleixner , Jason Cooper Subject: Re: [PATCH v9 20/26] irqchip/gic-v3: Handle pseudo-NMIs In-Reply-To: References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-21-git-send-email-julien.thierry@arm.com> <86wompuh5j.wl-marc.zyngier@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jan 2019 11:33:35 +0000, Julien Thierry wrote: > > > > On 28/01/2019 11:59, Marc Zyngier wrote: > > On Mon, 21 Jan 2019 15:33:39 +0000, > > Julien Thierry wrote: > >> > >> Provide a higher priority to be used for pseudo-NMIs. When such an > >> interrupt is received, keep interrupts fully disabled at CPU level to > >> prevent receiving other pseudo-NMIs while handling the current one. > >> > >> Signed-off-by: Julien Thierry > >> Cc: Thomas Gleixner > >> Cc: Jason Cooper > >> Cc: Marc Zyngier > >> --- > >> drivers/irqchip/irq-gic-v3.c | 42 ++++++++++++++++++++++++++++++++++++------ > >> 1 file changed, 36 insertions(+), 6 deletions(-) > >> > >> diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c > >> index 5374b43..4df1e94 100644 > >> --- a/drivers/irqchip/irq-gic-v3.c > >> +++ b/drivers/irqchip/irq-gic-v3.c > >> @@ -41,6 +41,8 @@ > >> > >> #include "irq-gic-common.h" > >> > >> +#define GICD_INT_NMI_PRI (GICD_INT_DEF_PRI & ~0x80) > >> + > >> #define FLAGS_WORKAROUND_GICR_WAKER_MSM8996 (1ULL << 0) > >> > >> struct redist_region { > >> @@ -381,12 +383,45 @@ static u64 gic_mpidr_to_affinity(unsigned long mpidr) > >> return aff; > >> } > >> > >> +static inline void gic_deactivate_unexpected_irq(u32 irqnr) > > > > Same remark as on some other patches: you should be able to drop the > > inline attribute without any ill effect. I'd also like this to be > > renamed "gic_deactivate_spurious", or something similar. > > > > I'm a bit concern about using spurious since it is not related to > GICC_INT_SPURIOUS, we actually read a valid IRQ number, we just don't > know how we should handle it. Well, I'd say that in the case of GICC_INT_SPURIOUS, there is nothing to deactivate, but hey... ;-) > Would "gic_deactivate_unhandled" work? Or "gic_deactivate_bad"? Sure, any will do. M. -- Jazz is not dead, it just smell funny.