Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3574916pxu; Mon, 19 Oct 2020 16:00:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU+nrXP7bwY1pqfF5PRiC1GvyxCDh14b9mW4gd5ZmpZKyalGt4MUk1dBFo2M55KCVh89IW X-Received: by 2002:a50:ff10:: with SMTP id a16mr2179411edu.83.1603148418741; Mon, 19 Oct 2020 16:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603148418; cv=none; d=google.com; s=arc-20160816; b=yhKbDb6pXLFsbqA79aPWFybOBLPWdDV4EmzmTQpeZQpCe4lFRA68Sg3dsXeU91z5yb po5D0czfFvFijso6QH1eHDm5hOWEu9j4Hq0C22hnkN2SI8Ec1QQTv2kpGx+bSWvJRiIJ xRfOnwmOQc2AJlm7z+iSgYetOxAJamVeN96r2K+nI5y8Uz6oh1Ka10CTQ8gAsrKcJh7y +Vn6z8IbIY2p2FwxvqaPonblXN2bwSdoeCi6WysAgR70SL3Ci+OM2dOLocr2UaqNscoK Zr3nB5JlX/NmQzYLSKPFvw5mHDGCjr+GOD9lISVCilQDS6HQYJ2FA0mBU/Kil30gXHhm FenQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=Aa/1CgdmdAujxaZr5GZ4f1AwMqv/vbuqBiMEeYZMW2g=; b=PTZq+rYGa88bLpQcNe/QNw6cPtFxYFpBjxmtkY9yiz5w0flkSYMzSW0ACnSnrB8Hb5 dpBHEGq+erWrN5LKU0h+RH9QMoOgvD9YBt07rRiAG9wgd5i+k4txp/WML6GWmcvRoO55 WhscNX4S0dJb+IZC92jgjIn96f1kd/2XczVvoRU+SzBUUW29DzlUpQJ8uFunZix+vYw8 JRXhQ0V/RxUZr28ijIcLiSMin6SxGEyfmq0nyy6tVwXgDu1sC2hkhZybU5MWlkgOq12K cVCfZ2C+q61FEJkcXjDfMIWReyKoI0F71SKfDIMeV9gLJIQ7Emekdc/mOKbqqd7NjRJg f5tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t3odKDxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si972632ejb.619.2020.10.19.15.59.55; Mon, 19 Oct 2020 16:00:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t3odKDxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbgJSL42 (ORCPT + 99 others); Mon, 19 Oct 2020 07:56:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:48436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726249AbgJSL42 (ORCPT ); Mon, 19 Oct 2020 07:56:28 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3FD49221FC; Mon, 19 Oct 2020 11:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603108587; bh=QuduAn6k0rUFR+XlPjYg/pmTJf/ta7vn5SfuOao/njQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=t3odKDxneKRZ/sEMPTz0TQL5M6chluNLskMhfyBO0ZuIYQ3YaEVqxox/KSXnBDm+e WJk11sjxsyrC2c1tXBgd4cpAtFX7sCdeRQD9nM2pCFNE82rXDqbOp8HBCfG2pbU6pd HS8X22ByDu8S+h4Q/EAEjXcDihwG5oaoUvKfcfyI= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kUTm5-002POa-8O; Mon, 19 Oct 2020 12:56:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 19 Oct 2020 12:56:25 +0100 From: Marc Zyngier To: Sumit Garg Cc: catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, mark.rutland@arm.com, julien.thierry.kdev@gmail.com, dianders@chromium.org, daniel.thompson@linaro.org, jason.wessel@windriver.com, msys.mizuma@gmail.com, ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/5] arm64: Add framework to turn IPI as NMI In-Reply-To: <1602673931-28782-2-git-send-email-sumit.garg@linaro.org> References: <1602673931-28782-1-git-send-email-sumit.garg@linaro.org> <1602673931-28782-2-git-send-email-sumit.garg@linaro.org> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: sumit.garg@linaro.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, mark.rutland@arm.com, julien.thierry.kdev@gmail.com, dianders@chromium.org, daniel.thompson@linaro.org, jason.wessel@windriver.com, msys.mizuma@gmail.com, ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-14 12:12, Sumit Garg wrote: > Introduce framework to turn an IPI as NMI using pseudo NMIs. In case a > particular platform doesn't support pseudo NMIs, then request IPI as a > regular IRQ. > > The main motivation for this feature is to have an IPI that can be > leveraged to invoke NMI functions on other CPUs. And current > prospective > users are NMI backtrace and KGDB CPUs round-up whose support is added > via future patches. > > Signed-off-by: Sumit Garg > --- > arch/arm64/include/asm/nmi.h | 16 +++++++++ > arch/arm64/kernel/Makefile | 2 +- > arch/arm64/kernel/ipi_nmi.c | 77 > ++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 94 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/include/asm/nmi.h > create mode 100644 arch/arm64/kernel/ipi_nmi.c [...] > + irq_set_status_flags(ipi, IRQ_HIDDEN); Another thing is this. Why are you hiding this from /proc/interrupts? The only reason the other IPIs are hidden is that displaying them as "normal" interrupts would be a change in userspace ABI. In your case, this is something new that can perfectly appear as a standard interrupt (and I don't see how you'd display the statistics otherwise). M. -- Jazz is not dead. It just smells funny...