powerpc/pseries/iommu: Remove ddw property when destroying window
authorMilton Miller <miltonm@bga.com>
Wed, 11 May 2011 12:24:58 +0000 (12:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 07:25:27 +0000 (17:25 +1000)
commit2573f6842201a00f139237e4b42ab16711b582af
tree38aeb9991df02560909dae049e1ad791aa02ae61
parent64ac822fb4554fb516bce123a38b35e04e41fff5
powerpc/pseries/iommu: Remove ddw property when destroying window

If we destroy the window, we need to remove the property recording that
we setup the window.  Otherwise the next kernel we kexec will be
confused.

Also we should remove the property if even if we don't find the
ibm,ddw-applicable window or if one of the property sizes is unexpected;
presumably these came from a prior kernel via kexec, and we will not be
maintaining the window with respect to memory hotplug.

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