powerpc/pseries: Fix kexec on recent firmware versions
authorAnton Blanchard <anton@samba.org>
Mon, 25 Jul 2011 01:46:32 +0000 (01:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 5 Aug 2011 04:47:57 +0000 (14:47 +1000)
commitb1301797f30370c430244979671978fc232f4533
treed3e03d2023b23f0d7d14c4e52d7c7b1e5613f2cc
parenta149507bdb78d69e0020dbb505f3c55b205b69b3
powerpc/pseries: Fix kexec on recent firmware versions

Recent versions of firmware will fail to unmap the virtual processor
area if we have a dispatch trace log registered. This causes kexec
to fail.

If a trace log is registered this patch unregisters it before the
SLB shadow and virtual processor areas, fixing the problem.

The address argument is ignored by firmware on unregister so we
may as well remove it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/dtl.c
arch/powerpc/platforms/pseries/kexec.c
arch/powerpc/platforms/pseries/plpar_wrappers.h