OSDN Git Service

powerpc64/kexec: Hard disable ftrace before switching to the new kernel
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 19 Apr 2018 07:04:06 +0000 (12:34 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 May 2018 12:32:27 +0000 (22:32 +1000)
commit88b1a8547f4c00e55d54e081fc15e3980debf5c1
treeef2bec6859a6a8b10db4517ec9d919a119ac7c74
parenta4bc64d305af40446d0ac792bb8a9b2cd20af3d3
powerpc64/kexec: Hard disable ftrace before switching to the new kernel

If function_graph tracer is enabled during kexec, we see the below
exception in the simulator:
root@(none):/# kexec -e
kvm: exiting hardware virtualization
kexec_core: Starting new kernel
[   19.262020070,5] OPAL: Switch to big-endian OS
kexec: Starting switchover sequence.
Interrupt to 0xC000000000004380 from 0xC000000000004380
** Execution stopped: Continuous Interrupt, Instruction caused exception,  **

Now that we have a more effective way to completely disable ftrace on
ppc64, let's also use that before switching to a new kernel during
kexec.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/machine_kexec.c