powerpc/pseries: Fix kexec on recent firmware versions
commit9ad774d37c07c22629e9444b18e42fba08cecccb
authorAnton Blanchard <anton@samba.org>
Mon, 25 Jul 2011 01:46:32 +0000 (25 01:46 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:42 +0000 (15 18:31 -0700)
treef2bd2d9e95e5f211426f5c1be3aeea8dfb8e4ad1
parent8c9729a2ca6291a80c4d0473ae64f2b7a547cc9e
powerpc/pseries: Fix kexec on recent firmware versions

commit b1301797f30370c430244979671978fc232f4533 upstream.

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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/pseries/dtl.c
arch/powerpc/platforms/pseries/kexec.c
arch/powerpc/platforms/pseries/plpar_wrappers.h