powerpc/powernv: Call OPAL sync before kexec'ing
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Wed, 15 Jan 2014 06:02:04 +0000 (17:02 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 15 Jan 2014 06:21:18 +0000 (17:21 +1100)
commitf7d98d18a01ece2863984d4fb5ae949b18b02715
tree062fe89b801c7c017da5fc6403cab2f473492cb4
parentcb5b242c8c14a4b1dcd358400da28208fde78947
powerpc/powernv: Call OPAL sync before kexec'ing

Its possible that OPAL may be writing to host memory during
kexec (like dump retrieve scenario). In this situation we might
end up corrupting host memory.

This patch makes OPAL sync call to make sure OPAL stops
writing to host memory before kexec'ing.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/powernv/setup.c