powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Thu, 30 Nov 2017 09:05:54 +0000 (14:35 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 18:48:35 +0000 (05:48 +1100)
commit8d81296cfcce89013a714feb8d25004a156f8181
treee61ed554d970e0c464828668f7a9569b3043c71c
parent45baee1416a0086dccaa8a94c70e6721a6906fa2
powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all

radix__flush_tlb_all() is called only in kexec path in real mode and any
tracepoints at this stage will make kexec to fail if enabled.

To verify enable tlbie trace before kexec.

$ echo 1 > /sys/kernel/debug/tracing/events/powerpc/tlbie/enable
== kexec into new kernel and kexec fails.

Fix this by not calling trace_tlbie from radix__flush_tlb_all().

Fixes: 0428491cba92 ("powerpc/mm: Trace tlbie(l) instructions")
Cc: stable@vger.kernel.org # v4.13+
Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb-radix.c