]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05dd0a36a8bd67a3def807cbcca30349f46b43ed
tree062fe89b801c7c017da5fc6403cab2f473492cb4
parentac9fed22fc6235a413c2e12d36663f856b276d44
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