]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix kexec with dynamic dma windows
authorNishanth Aravamudan <nacc@us.ibm.com>
Fri, 6 May 2011 13:27:30 +0000 (13:27 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:40 +0000 (14:30 +1000)
commiteb30ec7d2662102939c85a3ab4a015b16f7625e8
tree53c6839bef96ec7eb2c587c60665c06b672c5265
parent0cb3ed1ab1365ab96a043cbc305e93835d0f1083
powerpc: Fix kexec with dynamic dma windows

When we kexec we look for a particular property added by the first
kernel, "linux,direct64-ddr-window-info", per-device where we already
have set up dynamic dma windows. The current code, though, wasn't
initializing the size of this property and thus when we kexec'd, we
would find the property but read uninitialized memory resulting in
garbage ddw values for the kexec'd kernel and panics. Fix this by
setting the size at enable_ddw() time and ensuring that the size of the
found property is valid at dupe_ddw_if_kexec() time.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/iommu.c