]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/kdump: Delay before sending IPI on a system reset
authorAnton Blanchard <anton@samba.org>
Wed, 30 Nov 2011 00:23:16 +0000 (00:23 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Dec 2011 03:02:24 +0000 (14:02 +1100)
commit549e88a134b3b393a4312e8d76628b9260eee57f
tree753fbc597df1b3771e75aa5fa75867c1a0672f45
parent90e8f57cf873188bc5cff445059ddeb72dc51d8c
powerpc/kdump: Delay before sending IPI on a system reset

If we enter the kdump code via system reset, wait a bit before
sending the IPI to capture all secondary CPUs. Without it we race
with the hypervisor that is issuing the system reset to each CPU.
If the IPI gets there first the system reset oops output then shows
the register state of the IPI handler which is not what we want.

I took the opportunity to add defines for all the various delays
we have. There's no need for cpu_relax when we are doing an mdelay,
so remove them too.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/crash.c