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

2020-10-22 Thread Sumit Garg
On Wed, 21 Oct 2020 at 15:57, Marc Zyngier wrote: > > On 2020-10-20 12:22, Sumit Garg wrote: > > On Tue, 20 Oct 2020 at 15:38, Marc Zyngier wrote: > >> > >> On 2020-10-20 07:43, Sumit Garg wrote: > >> > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > >> > >> [...] > >> > >> >> > +{ > >> >>

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

2020-10-21 Thread Marc Zyngier
On 2020-10-20 12:22, Sumit Garg wrote: On Tue, 20 Oct 2020 at 15:38, Marc Zyngier wrote: On 2020-10-20 07:43, Sumit Garg wrote: > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: [...] >> > +{ >> > + if (!ipi_desc) >> > + return; >> > + >> > + if (is_nmi) { >> > +

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

2020-10-20 Thread Sumit Garg
On Tue, 20 Oct 2020 at 18:02, Marc Zyngier wrote: > > On 2020-10-20 13:25, Daniel Thompson wrote: > > On Tue, Oct 20, 2020 at 04:52:43PM +0530, Sumit Garg wrote: > > [...] > > >> So in general, IPI as a normal IRQ is still useful for debugging but > >> it can't debug a core which is stuck in

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

2020-10-20 Thread Marc Zyngier
On 2020-10-20 13:25, Daniel Thompson wrote: On Tue, Oct 20, 2020 at 04:52:43PM +0530, Sumit Garg wrote: [...] So in general, IPI as a normal IRQ is still useful for debugging but it can't debug a core which is stuck in deadlock with interrupts disabled. And since we choose override default

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

2020-10-20 Thread Daniel Thompson
On Tue, Oct 20, 2020 at 04:52:43PM +0530, Sumit Garg wrote: > On Tue, 20 Oct 2020 at 15:38, Marc Zyngier wrote: > > > > On 2020-10-20 07:43, Sumit Garg wrote: > > > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > > > > [...] > > > > >> > +{ > > >> > + if (!ipi_desc) > > >> > +

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

2020-10-20 Thread Sumit Garg
On Tue, 20 Oct 2020 at 15:38, Marc Zyngier wrote: > > On 2020-10-20 07:43, Sumit Garg wrote: > > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > > [...] > > >> > +{ > >> > + if (!ipi_desc) > >> > + return; > >> > + > >> > + if (is_nmi) { > >> > + if

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

2020-10-20 Thread Marc Zyngier
On 2020-10-20 07:43, Sumit Garg wrote: On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: [...] > +{ > + if (!ipi_desc) > + return; > + > + if (is_nmi) { > + if (!prepare_percpu_nmi(ipi_id)) > + enable_percpu_nmi(ipi_id, IRQ_TYPE_NONE); > +

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

2020-10-20 Thread Sumit Garg
On Mon, 19 Oct 2020 at 17:26, Marc Zyngier wrote: > > 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

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

2020-10-20 Thread Sumit Garg
On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > > 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

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

2020-10-19 Thread Marc Zyngier
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

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

2020-10-19 Thread Marc Zyngier
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

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

2020-10-14 Thread Masayoshi Mizuma
On Wed, Oct 14, 2020 at 04:42:07PM +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 can be >

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

2020-10-14 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