From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA8F1C388F2 for ; Mon, 2 Nov 2020 16:26:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 777432222B for ; Mon, 2 Nov 2020 16:26:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JLKKHDya"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ids55hsO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 777432222B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5wOcMcxKoDQYeNfw2tqGiJxKqkwyI5PKoUp1WR942DU=; b=JLKKHDya19RC93FggOxNra5a+ iVenuZnGduu5KX3mNrLsdDN4zi5Jks9WyqrrblK8GG6lLPlSLPMd+ziQF8XTzPRReu+fhSzIbTZEF XNl2oRbuxFQ7xbhMdzYTLuhkTZeV+mkI185ROW/+akaCN+Uslzus2maFpAKP0ObQtyRVUN9iCCQZL EGIwJz5GzlYW2HEKTSe5wBLsssUuW3nafNPEnKOJmLdaHcQdzrS3lhCvUrMJJkXrwRHVqEb6A6vPK 5wAszfHX+nIuyqGBBjuxf1eUErr0LVfQs4X/Iems5/5b5BA8aEszzqtCjmO/gtZ/qlcuUSV7+4Kvf +Neycgyhw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcdE-000842-Ld; Mon, 02 Nov 2020 16:24:32 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcY6-0005oR-0L for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 16:19:37 +0000 Received: by mail-qk1-x743.google.com with SMTP id a64so8580188qkc.5 for ; Mon, 02 Nov 2020 08:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0pEoN6nA2G5BwCWY5vt/4u6N5GAY+FHaERnVlmnWlFc=; b=ids55hsOUjO+6VoaZMpKbVpzBQuFZC5w5OP9fvCm26FtQUSlg1oYAQn422GCTSEuEz k8kDHldTdzq9aQ2bVpClvpY66jgz5jY1pmlieeryNEOSlEW3VPi5Kx1lSJGqKm2FAHP6 GRAS04E0lisWteoPc9/HqspO+Z1Zq8hp6donW4pPpuSuEZJ7hSPRkKE+yhum9I0Cowmu U+zVWfYdkANcgFGNrrZIT1rcbbAsiLAyb7wGJpdPF/xy5PkagbT1VNoU+/xrPUBiM/Rm uV0WXNsuDmQvowgnMIl5xFbJQRwhIzdrzVO2cFxad7/+Gu57osydu5/NR9P1nP7dmhfw 3efw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0pEoN6nA2G5BwCWY5vt/4u6N5GAY+FHaERnVlmnWlFc=; b=UZtkRx++eNsr4heeJ2SRNx7qo34k1Q45no/yS6rXRUDjBA7zZSQnC9eMkGNUHj+/Lx 89//NUYRf2BK14zq6RwN2nptGtPe+KNw1W6wqTZCyyvvZnkF6BlBg+8QyYob5A458SOn jdMPo5K9wfd2+AxxWTK8Yf1p2RikwBSLAQYDYb+AwWKqdCK+Bjs0yX7V4T6XUY9nGJ4R pxP84kBHs2XVLwUIHEkgCmRGqEpSEfAM/0JeihYgxDk8KW7v+z214NRE4JtshDkCSk2A hn3H1AgXyUONlatcoPYWK0Ryx1OagEqKvszvVVm8nyGdX19H7HcAMCcNP94j0Vc+bODo 72BA== X-Gm-Message-State: AOAM532p5MhhlUWFpnkE3nXstPFH4xkbDZ/Jqfw3pZj8nGjEYLg3k0YK a+2FatHmMOFo6N7V8no5aA== X-Google-Smtp-Source: ABdhPJw3/h/FxAUapjnE6hrGy28Ybn8PhKKPWyeveHzA/4XbaQbjZSNBF3IMSL5R1XYdsJoz3PG1wA== X-Received: by 2002:a37:7f03:: with SMTP id a3mr15397645qkd.72.1604333951668; Mon, 02 Nov 2020 08:19:11 -0800 (PST) Received: from gabell (209-6-122-159.s2973.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [209.6.122.159]) by smtp.gmail.com with ESMTPSA id r14sm5203206qtu.25.2020.11.02.08.19.10 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Nov 2020 08:19:11 -0800 (PST) Date: Mon, 2 Nov 2020 11:19:08 -0500 From: Masayoshi Mizuma To: Sumit Garg Subject: Re: [PATCH v7 3/7] arm64: smp: Assign and setup an IPI as NMI Message-ID: <20201102161908.ayn7vff7tyduzlj2@gabell> References: <1604317487-14543-1-git-send-email-sumit.garg@linaro.org> <1604317487-14543-4-git-send-email-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1604317487-14543-4-git-send-email-sumit.garg@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_111914_407321_BFDAC810 X-CRM114-Status: GOOD ( 19.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, daniel.thompson@linaro.org, tsbogend@alpha.franken.de, linux-kernel@vger.kernel.org, jason@lakedaemon.net, ito-yuichi@fujitsu.com, maz@kernel.org, x86@kernel.org, linux@armlinux.org.uk, dianders@chromium.org, jason.wessel@windriver.com, mingo@redhat.com, bp@alien8.de, mpe@ellerman.id.au, catalin.marinas@arm.com, kgdb-bugreport@lists.sourceforge.net, tglx@linutronix.de, julien.thierry.kdev@gmail.com, will@kernel.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 02, 2020 at 05:14:43PM +0530, Sumit Garg wrote: > Assign an unused IPI which can be turned as NMI using ipi_nmi framework. > Also, invoke corresponding dynamic IPI setup/teardown APIs. > > Signed-off-by: Sumit Garg > --- > arch/arm64/kernel/smp.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > index 82e75fc..2e118e2 100644 > --- a/arch/arm64/kernel/smp.c > +++ b/arch/arm64/kernel/smp.c > @@ -43,6 +43,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -962,6 +963,8 @@ static void ipi_setup(int cpu) > > for (i = 0; i < nr_ipi; i++) > enable_percpu_irq(ipi_irq_base + i, 0); > + > + dynamic_ipi_setup(cpu); > } > > #ifdef CONFIG_HOTPLUG_CPU > @@ -974,6 +977,8 @@ static void ipi_teardown(int cpu) > > for (i = 0; i < nr_ipi; i++) > disable_percpu_irq(ipi_irq_base + i); > + > + dynamic_ipi_teardown(cpu); > } > #endif > > @@ -995,6 +1000,9 @@ void __init set_smp_ipi_range(int ipi_base, int n) > irq_set_status_flags(ipi_base + i, IRQ_HIDDEN); > } > > + if (n > nr_ipi) > + set_smp_dynamic_ipi(ipi_base + nr_ipi); > + > ipi_irq_base = ipi_base; > > /* Setup the boot CPU immediately */ > -- Looks good to me. Please feel free to add: Reviewed-by: Masayoshi Mizuma Thanks! Masa _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel