Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-12 Thread Masayoshi Mizuma
On Mon, Oct 12, 2020 at 05:49:09PM +0530, Sumit Garg wrote: > Hi Masa, > > On Sat, 10 Oct 2020 at 20:43, Masayoshi Mizuma wrote: > > > > On Sat, Oct 10, 2020 at 10:34:04AM +0100, Marc Zyngier wrote: > > > On Sat, 10 Oct 2020 02:58:55 +0100, > > > Masayoshi Mizuma wrote: > > > > > > [...] > > > >

Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-12 Thread Sumit Garg
On Sat, 10 Oct 2020 at 07:28, Masayoshi Mizuma wrote: > > Hi Sumit, > > On Fri, Sep 11, 2020 at 06:58:40PM +0530, 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.

Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-12 Thread Sumit Garg
Hi Masa, On Sat, 10 Oct 2020 at 20:43, Masayoshi Mizuma wrote: > > On Sat, Oct 10, 2020 at 10:34:04AM +0100, Marc Zyngier wrote: > > On Sat, 10 Oct 2020 02:58:55 +0100, > > Masayoshi Mizuma wrote: > > > > [...] > > > > > > +void ipi_nmi_setup(int cpu) > > > > +{ > > > > + if (!ipi_desc) > > > >

Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-10 Thread Masayoshi Mizuma
On Sat, Oct 10, 2020 at 10:34:04AM +0100, Marc Zyngier wrote: > On Sat, 10 Oct 2020 02:58:55 +0100, > Masayoshi Mizuma wrote: > > [...] > > > > +void ipi_nmi_setup(int cpu) > > > +{ > > > + if (!ipi_desc) > > > + return; > > > > ipi_nmi_setup() may be called twice for CPU0: > > > > s

Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-10 Thread Marc Zyngier
On Sat, 10 Oct 2020 02:58:55 +0100, Masayoshi Mizuma wrote: [...] > > +void ipi_nmi_setup(int cpu) > > +{ > > + if (!ipi_desc) > > + return; > > ipi_nmi_setup() may be called twice for CPU0: > > set_smp_ipi_range => set_smp_ipi_nmi => ipi_nmi_setup > => ipi_se

Re: [PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-10-09 Thread Masayoshi Mizuma
Hi Sumit, On Fri, Sep 11, 2020 at 06:58:40PM +0530, 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 ca

[PATCH v4 1/5] arm64: Add framework to turn IPI as NMI

2020-09-11 Thread Sumit Garg
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 use