Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Michael Ellerman
"Naveen N. Rao" writes: > Michael Ellerman wrote: >> Balbir Singh writes: >> >>> On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar >>> wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear().

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Michael Ellerman
Balbir Singh writes: > On Fri, Nov 24, 2017 at 12:11 AM, Naveen N. Rao > wrote: >> Michael Ellerman wrote: >>> Balbir Singh writes: ... >>> I think the right thing in the longer run might be to do a TRACE_EVENT_CONDITION and have the condition do the right thing, but what you have

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Balbir Singh
On Fri, Nov 24, 2017 at 12:11 AM, Naveen N. Rao wrote: > Michael Ellerman wrote: >> >> Balbir Singh writes: >> >>> On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar >>> wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is >

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Naveen N. Rao
Michael Ellerman wrote: Balbir Singh writes: On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear(). This happens if the running kernel has CONFIG_LOCKDEP ena

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Michael Ellerman
Balbir Singh writes: > On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar > wrote: >> From: Mahesh Salgaonkar >> >> Rebooting into a new kernel with kexec fails in trace_tlbie() which is >> called from native_hpte_clear(). This happens if the running kernel has >> CONFIG_LOCKDEP enabled. With

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Mahesh Jagannath Salgaonkar
On 11/23/2017 04:26 AM, Balbir Singh wrote: > On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar > wrote: >> From: Mahesh Salgaonkar >> >> Rebooting into a new kernel with kexec fails in trace_tlbie() which is >> called from native_hpte_clear(). This happens if the running kernel has >> CONFIG_

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Naveen N. Rao
Mahesh Jagannath Salgaonkar wrote: On 11/23/2017 12:37 AM, Naveen N. Rao wrote: Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear(). This happens if the running kernel has CONFIG_LOCKDEP enab

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-23 Thread Mahesh Jagannath Salgaonkar
On 11/23/2017 12:37 AM, Naveen N. Rao wrote: > Mahesh J Salgaonkar wrote: >> From: Mahesh Salgaonkar >> >> Rebooting into a new kernel with kexec fails in trace_tlbie() which is >> called from native_hpte_clear(). This happens if the running kernel has >> CONFIG_LOCKDEP enabled. With lockdep enabl

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-22 Thread Balbir Singh
On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > Rebooting into a new kernel with kexec fails in trace_tlbie() which is > called from native_hpte_clear(). This happens if the running kernel has > CONFIG_LOCKDEP enabled. With lockdep enabled, the tracepoint

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-22 Thread Naveen N. Rao
Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear(). This happens if the running kernel has CONFIG_LOCKDEP enabled. With lockdep enabled, the tracepoints always execute few RCU checks regardles