Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp65503pxu; Wed, 14 Oct 2020 20:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDg8j5lmTTOWRS3vFR75tSZQgr487s0+Wk3vHYfjnm4ntmhC94PeDviLPts4ctIx3O9mmP X-Received: by 2002:a17:906:3589:: with SMTP id o9mr2433741ejb.218.1602732546291; Wed, 14 Oct 2020 20:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602732546; cv=none; d=google.com; s=arc-20160816; b=LMqxHxGw4YUgkzB4IK4Dm6W8RZF9o78M3qfEWmW9ltQgvBD1HYzfGvAXJ6r3MEHJeC ZAI00Ns2NAR6fJO9LnwH9CIE0oOWXZ/ajs0jQbp36bkjDabDy7nrQchx0PoAXm9eQbZH xjoNJIKZMjccpkg+ET63dmozYuNZZs1Asao72RXdDAwqVOrajMq39jJz0N4kIodsgn4+ 9EBH7TkzEAcxW6vSXuD/ych73/PJA4hq50cUUebDkRbMMfyYIqBdz5FyvTcsBHRsL1yC BhUK5bkJg6hIyUmogxhSBjfoZWi7LXKRXOOpOIgsdZKKsHZQX481uTUc6HXQ1H637IhE uLkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=f+VQm+GCd77gKfnBI0U0A6ACRKwOlvYFJHxUn4tNp/4=; b=BPNuwAXy4J+TS5cVqgf+kMFJt+M1juPllsWmTH5mqxDT9rj5DknvcTAOB9Wv9xBUVo plX+l0Ut1HFZeOLjirFloRU6j8pkYUjo/dKytsND3dP0W09BCqjDn/CudInStOn1VDrd /qA5DTpyjXxwsmfBhCIp2/ZbHftcOoobCHAKu2bu2ZMiUQlcTGYECjZHstgg56mpOWP7 tBxtvykBNaPrHksR2qDheIalBbFd8iyhkilQ/aVXoIYT/Ged4l7p7HB6MkCUS9TsIOfC 5veksJjWThp11i8GHUI/nbhDWNWo1unA1P1M3gi89Fjp8SRaIlQgT8bWf83/G0Zn0jN3 QeJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P9ulBwKR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si1150871edh.460.2020.10.14.20.28.44; Wed, 14 Oct 2020 20:29:06 -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=@gmail.com header.s=20161025 header.b=P9ulBwKR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbgJOBQm (ORCPT + 99 others); Wed, 14 Oct 2020 21:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727379AbgJOBQm (ORCPT ); Wed, 14 Oct 2020 21:16:42 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE70BC045708 for ; Wed, 14 Oct 2020 18:16:41 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id w17so2210628ilg.8 for ; Wed, 14 Oct 2020 18:16:41 -0700 (PDT) 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=f+VQm+GCd77gKfnBI0U0A6ACRKwOlvYFJHxUn4tNp/4=; b=P9ulBwKRoZlgh0HWFIhUvODejuLfpzxhsEIQzmYOFGtAxJJ4Ux85/rE9uWQNAtDXsA /+PKDXt/tdp3KUU7NvURom0vbscyaZgfGd5GjWTfDxW3hD5wjFiKmFhDs79+qU0H1EpA IEALnopRBia8fscwf2YDtcf1BxEIidP8sWtYEns/ZPafDXuZRGIunQ3f0uJgrpsCKl7g YOyWtHXVm9suoFAoUNzJWcZhRp5k0sl0rvdRWzlbx0cqriecFsho6CQjCrwNyUtu3iRY by3FUBjV9qnpRUJBpZd0jkglfKnZUpmCH8d/0NZsa699HI9GdH4l/qgN1haCjDP4ufRx QgHQ== 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=f+VQm+GCd77gKfnBI0U0A6ACRKwOlvYFJHxUn4tNp/4=; b=Mb6jSU3NhpgH4nePmJNklS++13rsrRMauddsbK2+GkoVWoPtKNedJXBPvxHzaZl8w1 NlTf6901O0nLnaku/eLUapYasLtDirH7OXE7Z7Po4PaIdiMwbVoozmVGPKr8/ZnDjjS/ oJ1ZKTKie38aC9tGF1wUhN7Q4Bfx7PLLbFei2uAdbCYJzBm0J3D5WTJN52jPhkdtJ+pM UQl6ui25fH9P0skguxA469nfa9l7Ba8Hun7zQfYu4E5VEC+jaetI5BgpReo4ojgkPTKa 3UyGp9UJEN46m3jo45R1i9janFcxZDzCYLVeP1zH9wIra4AhOHGss1kEXKISTuCKsiZr HbCg== X-Gm-Message-State: AOAM532O0+Ww6lrvg6qoAUhIHJWWmq0vk1yBj53YgNx49ABC4W19PVHU JkClCFnbCcSBDd7Mp3xemQ== X-Received: by 2002:a05:6e02:1073:: with SMTP id q19mr1411357ilj.55.1602724601411; Wed, 14 Oct 2020 18:16:41 -0700 (PDT) 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 v18sm1079595ilj.12.2020.10.14.18.16.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Oct 2020 18:16:37 -0700 (PDT) Date: Wed, 14 Oct 2020 21:16:34 -0400 From: Masayoshi Mizuma To: Sumit Garg Cc: maz@kernel.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, ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/5] arm64: smp: Allocate and setup IPI as NMI Message-ID: <20201015011634.zz2tnbc7yvhzxddc@gabell> References: <1602673931-28782-1-git-send-email-sumit.garg@linaro.org> <1602673931-28782-4-git-send-email-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1602673931-28782-4-git-send-email-sumit.garg@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 04:42:09PM +0530, Sumit Garg wrote: > Allocate an unused IPI that can be turned as NMI using ipi_nmi framework. > Also, invoke corresponding NMI 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..129ebfb 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); > + > + ipi_nmi_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); > + > + ipi_nmi_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_ipi_nmi(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